[% PROCESS "user_tags.html" reason = "post" %] [% IF existing_entry.created %]

revise entry

originally created: [% existing_entry.created %]

[% IF existing_entry.created != existing_entry.modified %]

last modified: [% existing_entry.modified %]

[% END %]
delete this entry
[% ELSE %]

new entry

[% END %]
[%# Yup. This is really, really ugly. %] [% FOREACH param = [ "uri", "title", "description", "tags" ] %] [% IF param == "tags" %] [% accessor = "tagstring" %] [% ELSE %] [% accessor = param %] [% END %] [% SET field_value = form.$param.join(" ") OR existing_entry.$accessor.list.join(" "); %] [% IF error.$param %] [% END %] [% END %]
[% param %][% widget.input( name => param, value => field_value, attr => { size => 75 } ) %]
[% error.$param %]
body
[% widget.hidden(name => 'entryid', value => existing_entry.id) %] [% widget.hidden(name => 'then_goto', value => then_goto) %] [% widget.hidden(name => 'when_done', value => when_done) %]