name="csrf_token"
value="${csrf_token}"
/>
- % if db_changed is not None and db_changed is not UNDEFINED:
- <%doc>This is a hack. It should be fixed so that only double-upload
- detecting forms unconditionally generate this element.</%doc>
- <input type="hidden"
- name="db_changed"
- value="${db_changed}"
- />
- % endif
+ ${caller.body()}
</%def>
<%doc> All the *_row() defs take a tab_index and, as a side effect,
<%def name="main_form(tab_index)">
<form action="" enctype="multipart/form-data" method="post">
<div>
- ${self.hidden_vars(csrf_token)}
+ <%self:hidden_vars csrf_token="${csrf_token}" />
% if (report_success or session_expired) and last_key:
<input type="hidden"
name="last_key"