[%# Three variables are passed: session_info => { username, session_id, superuser, fullname, etc } unapproved_lists => [ {listname, listadd, etc }, {more...}, etc ] rec_approved_lists => [ {listname, listadd, etc }, {more...}, etc ] descriptions => { camp => { A1 => blah, A2 => ... }, constit => { A2 => blah } } editor_for => { camp => [ A1, A2 ], etc } %] [% superuser = session_info.superuser %] [% username = session_info.username %] [% fullname = session_info.fullname %] [% undefined = "undefined" %] [% editor = 1 %] [% editor_thislist = 1 %] [% none = 'none' %] CALF Editor's Page | [% username %] | Home [% INCLUDE groupshead %] [% INCLUDE colorbar color = "ff0000" height = "8" percent = "98%" %]

[% fullname %]'s Editor Homepage

[% IF superuser == 1 %] You are logged in with superuser privileges. This means you are listed as an editor for every group in the database.

[% ELSE %] [% IF editor_for.camp.keys.size > 0 %] You are the editor for the following Camp:
[% END %] [% IF editor_for.constit.keys.size > 0 %] You are the editor for the following Constituencies:
[% END %] [% END %] Until you log out, additional options will be available to you on all pages of CALF except the home page.
Editor Links

[% INCLUDE colorbar color = "ff0000" height = "8" percent = "98%" %]

Items Awaiting Approval

[% IF unapproved_lists.size < 1 %] You have no lists pending administrative approval. [% ELSIF unapproved_lists.size <= 10 %]

You are an editor for [% unapproved_lists.size %] items that are currently awaiting approval:

[% FOREACH list = unapproved_lists %]

Awaiting Approval: [% list.listname %]
Submitted By: [% list.contactname %] ([% list.contactemail %])

[% INCLUDE displaylistinfo list= list descriptions = descriptions %]

[% INCLUDE colorbar color = "ff0000" height = "3" percent = "80%" UNLESS loop.size == loop.count %] [% END %] [% ELSE %] You are an editor for [% unapproved_lists.size %] items that are currently awaiting approval: [% FOREACH list = unapproved_lists %] [% END %]
List Name Description Camp Constituencies
[% list.listname or undefined %] [% list.description %] [% none IF list.camp.size == 0 %] [% FOREACH camp = list.camp %] [% descriptions.camp.$camp %] [% "|" UNLESS loop.count == loop.size %] [% END %] [% none IF list.constit.size == 0 %] [% FOREACH constit = list.constit %] [% descriptions.constit.$constit %] [% "|" UNLESS loop.count == loop.size %] [% END %]
[% END %]

[% INCLUDE colorbar color = "ff0000" height = "8" percent = "98%" %]

Recent changes to items in your categories

[% IF rec_changed_lists.size < 1 %] There are no changes to your items currently on record in the database. [% ELSE %] [% FOREACH list = rec_changed_lists %] [% IF loop.count == 8 %] [% toomany = 1 %] [% LAST %] [% END %] [% END %]
Last Change Item Name Camps Constit Time Changed Changed By
[% list.lastchange %] [% list.name %] [% none IF list.camp.size == 0 %] [% FOREACH camp = list.camp %] [% descriptions.camp.$camp %] [% "|" UNLESS loop.count == loop.size %] [% END %] [% none IF list.constit.size == 0 %] [% FOREACH constit = list.constit %] [% descriptions.constit.$constit %] [% "|" UNLESS loop.count == loop.size %] [% END %] [% list.updated %] [% list.lasteditor or " " %]

[% END %] [% IF toomany == 1 %]

Click here to see all changes from the last three weeks.

[% END %] [% INCLUDE colorbar color = "ff0000" height = "8" percent = "98%" %]

[% INCLUDE footer %]