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

[% title || settings.appname %]

[%# 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 ? request.uri_for('/update/') : request.uri_for('/edit/'); FOREACH entry IN records %]
[% PROCESS document_block %]

[% END # foreach entry in records %] [% ELSE # not records %]
[% PROCESS document_block %]
[% IF NOT entry.size %] [%# PROCESS 'upload.tt' -%] [% END %] [% END %]