Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 4700486d

Von Hans P. Schlaepfer vor etwa 4 Jahren hinzugefügt

  • ID 4700486dbe1ce5d41597fd1f60a661085e6852a3
  • Vorgänger 840fb76b
  • Nachfolger 9adf4656

Neues Design 2019 Standard-Code templates/webpages/drafts/form.html

Unterschiede anzeigen:

templates/webpages/drafts/form.html
5 5

  
6 6
[% INCLUDE 'common/flash.html' %]
7 7

  
8
[%- IF FORM.id %]
8
[% IF FORM.id %]
9 9
<h3>[% 'Update this draft.' | $T8 %]</h3>
10
[%- ELSE %]
10
[% ELSE %]
11 11
<h3>[% 'Save as a new draft.' | $T8 %]</h3>
12
[%- END %]
12
[% END %]
13 13

  
14 14
[% L.hidden_tag('', FORM.id, id='new_draft_id') %]
15 15
[% 'Description' | $T8 %]: [% L.input_tag('new_draft_description', FORM.description) %]
16 16
[% L.button_tag('kivi.Draft.save("' _ HTML.escape(SELF.module) _ '", "' _ HTML.escape(SELF.submodule) _ '")', LxERP.t8('Save draft')) %]
17 17

  
18
[%- IF drafts_list.size %]
18
[% IF drafts_list.size %]
19 19
<h3>[% 'Load an existing draft' | $T8 %]</h3>
20 20

  
21 21
<p>[% 'Warning! Loading a draft will discard unsaved data!' | $T8 %]</p>
22 22

  
23 23
<table>
24
 <tr class="listheading">
24
 <tr>
25 25
  <th>[% 'Date' | $T8 %]</th>
26 26
  <th>[% 'Description' | $T8 %]</th>
27 27
 </tr>
......
30 30
 <tr class="listrow">
31 31
  <td>[% row.date | html %]</td>
32 32
  <td>
33
  [%- IF row.id == FORM.id %]
33
  [% IF row.id == FORM.id %]
34 34
   <b>[% row.description | html %]</b>
35
  [%- ELSE %]
35
  [% ELSE %]
36 36
   [% L.link(SELF.url_for(action='load',id=row.id), row.description) %]
37
  [%- END %]
37
  [% END %]
38 38
  </td>
39 39
  <td>[% L.html_tag('span', LxERP.t8('Delete'), class='cursor-pointer interact', onclick="kivi.Draft.delete('" _ row.id _ "')") %]</a></td>
40 40
 </tr>
41 41
[% END %]
42 42
</table>
43
[%- END %]
43
[% END %]

Auch abrufbar als: Unified diff