[%# META title = 'Moongate' %] [%# WRAPPER layouts/main.tt # doesn't work - footer appears before content css = [ 'bootstrap-fileupload.css', 'flatpickr.min.css' ]; END %]

Moongate

[%# USE DataPrinter; DataPrinter.dump_html(params) %] [% IF vars.input_error # after 'forward' %] [% ELSIF deferred.input_success # after 'redirect' %] [% END %] [% IF params.search AND NOT records.size # no records found %] [% END %]
[% label %]
[% BLOCK document_block %]
Description
Comment
Date
File [% IF vars.is_edit; IF params.replace_file %] [% ELSE %] [% END %] [% ELSIF entry.size # display only, with a href (use .size in case no file) %] [% IF entry.filename %] [% entry.filename | uri %] [% END %] [% ELSE # new entry %] [% END %]
[% END # document_block %]
[% IF records.size; SET link = vars.is_edit ? uri_for_section.moongate.update : uri_for_section.moongate.edit; FOREACH entry IN records %]
[% PROCESS document_block %]
[% END # foreach entry in records %] [% ELSE # not records %]
[% PROCESS document_block %]
[% END %]