[%# 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 %]
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: