6 [% PROCESS 'common/flash.html' %]
9 <h3>[% 'Update this draft.' | $T8 %]</h3>
11 <h3>[% 'Save as a new draft.' | $T8 %]</h3>
14 [% L.hidden_tag('', FORM.id, id='new_draft_id') %]
15 [% 'Description' | $T8 %]: [% L.input_tag('new_draft_description', FORM.description) %]
16 [% L.button_tag('kivi.Draft.save("' _ HTML.escape(SELF.module) _ '", "' _ HTML.escape(SELF.submodule) _ '")', LxERP.t8('Save draft')) %]
18 [%- IF drafts_list.size %]
19 <h3>[% 'Load an existing draft' | $T8 %]</h3>
21 <p>[% 'Warning! Loading a draft will discard unsaved data!' | $T8 %]</p>
24 <tr class="listheading">
25 <th>[% 'Date' | $T8 %]</th>
26 <th>[% 'Description' | $T8 %]</th>
29 [% FOREACH row = drafts_list %]
31 <td>[% row.date | html %]</td>
33 [%- IF row.id == FORM.id %]
34 <b>[% row.description | html %]</b>
36 [% L.link(SELF.url_for(action='load',id=row.id), row.description) %]
39 <td>[% L.html_tag('span', LxERP.t8('Delete'), class='cursor-pointer interact', onclick="kivi.Draft.delete('" _ row.id _ "')") %]</a></td>