[%# The following variables are passed to this template: session_info => { username, session_id, superuser, fullname, etc } req_error => undef or 1, 2, 3 errors => undef, 2, 3, 4, etc fields => [ { name => state, value => WA, type => select, selectoptions => options_state, etc }, { name => "issues", title => "Issues", type => "categorization", dbtable => "Issues", size => 14 }, { name => "approved", title => "Approved List", type => "radio", size => 1, choices => { yes => 1, no => 0 }, editoronly => 1 }, { name => "msgsperweek", title => "Traffic (msgs/wk)", type => "text", size => 10 } ] list_old => { name, listadd, approved, id } descriptions => { Issues => { A1 => blah, A2 => ... }, Constit => { A2 => blah } } page => "change" %] [% username = session_info.username %] [% item = list_old.id %] [% name = list_old.listname %] [% undefined = 'undefined' %]
[%# THIS NEEDS WORK %] [% UNLESS page == 'commitnew' %] Old Item Values For: [% list_old.name %]
[% INCLUDE displaylistinfo list = list_old descriptions = descriptions %] [% END %] [% IF req_error.defined %] At least one required field (*) is missing or incomplete. You will not be able Submit this item until this problem is fixed.
[% END %] [% IF errors.defined %] Errors were detected in the [% errors %] fields marked in red. [%#If the marked fields are required (*), you will need to fill them in before confirming this entry. %] Even if the errors are in non-required fields, it is still a good idea to check them before clicking on Confirm.
[% END %]
[% PROCESS submit_selectoptions %]
[% INCLUDE footer %]