[%# This template can be passed the following variables: session_info => { username, session_id, superuser, fullname, etc } list => { name, listadd, approved, id } editor => 1 or undef or 0 editor_thislist => 1 or undef or 0 descriptions => { Issues => { A1 => blah, A2 => ... }, Constit => { A2 => blah } } page => "change" %] [% username = session_info.username %] [% superuser = session_info.superuser %] [%# There is an issue with getting the list.id. I need to have the database return this when I insert a new list. Until then, I can't use this value. item = list_old.id %] CALF | [% "Submit Successful" IF page == 'createnew' %] [% "Item Approved" IF page == 'approve' %] [% "Changes Successful" IF page == 'change' %] | [% list.name %] [% IF page == 'approve' %] [% END %] [% INCLUDE groupshead %] [% INCLUDE colorbar color = "ff0000" height = "8" percent = "98%" %] [% INCLUDE editorsmenu IF editor.defined %] [% IF editor_thislist.defined and page == 'change'; INCLUDE editorslistmenu; END; %]

[% IF page == 'approve' %] You've successfully approved "[% list.name %]" and an email notification has been sent to the person who submitted it!

You'll be taken back to your editors' home automagically in a moment. [% ELSIF page == 'change' %] You've successfully modified "[% list.name %]"! [% ELSE %] You've successfully submitted "[% list.name %]" to CALF! [% "This item will have to be approved by a responsible editor. Please check back in a day or two and the item should be shown in the categories you picked." UNLESS editor_thislist.defined or superuser; %] [% END %]

Here is how this entry will appear:

[% PROCESS displaylistinfo %] Click here to return to the CALF homepage.

[% INCLUDE footer %]