Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision ff4c165c

Von Hans P. Schlaepfer vor fast 5 Jahren hinzugefügt

  • ID ff4c165c6cb88afb9ce6dadd942ece366e9184a8
  • Vorgänger b3a07c06
  • Nachfolger 7722d352

Neues Design 2019 Standard-Code templates/webpages/letter/

Unterschiede anzeigen:

templates/webpages/letter/load_drafts.html
14 14
    <td>
15 15
     <table>
16 16
      <tr>
17
       <th class="listheading">&nbsp;</th>
18
       <th class="listheading">[% 'Date' | $T8 %]</th>
19
       <th class="listheading">[% 'Subject' | $T8 %]</th>
20
[%- IF SELF.is_sales %]
21
       <th class="listheading">[% 'Customer' | $T8 %]</th>
22
[%- ELSE %]
23
       <th class="listheading">[% 'Vendor' | $T8 %]</th>
24
[%- END %]
17
       <th>&nbsp;</th>
18
       <th>[% 'Date' | $T8 %]</th>
19
       <th>[% 'Subject' | $T8 %]</th>
20
[% IF SELF.is_sales %]
21
       <th>[% 'Customer' | $T8 %]</th>
22
[% ELSE %]
23
       <th>[% 'Vendor' | $T8 %]</th>
24
[% END %]
25 25
      </tr>
26 26

  
27 27
      [% FOREACH row = LETTER_DRAFTS %]
......
29 29
        <td>[% L.checkbox_tag("ids[+]", value=row.id) %]</td>
30 30
        <td>[% row.date.to_kivitendo | html %]</td>
31 31
        <td><a href="[% SELF.url_for(action='edit', 'draft.id'=row.id) %]">[% row.subject | html %]</a></td>
32
[%- IF SELF.is_sales %]
32
[% IF SELF.is_sales %]
33 33
        <td>[% row.customer.displayable_name | html %]</td>
34
[%- ELSE %]
34
[% ELSE %]
35 35
        <td>[% row.vendor.displayable_name | html %]</td>
36
[%- END %]
36
[% END %]
37 37
       </tr>
38 38
      [% END %]
39 39
     </table>
templates/webpages/letter/report_bottom.html
1 1
[% USE HTML%]
2
 [% L.paginate_controls(models=SELF.models) %]
3
 <input type="hidden" name="rowcount" value="[% HTML.escape(rowcount) %]">
4
 [%- FOREACH item = HIDDEN %]
5
 <input type="hidden" name="[% HTML.escape(item.key) %]" value="[% HTML.escape(item.value) %]">
6
 [%- END %]
7 2
[% USE T8 %]
8 3
[% USE L %]
9 4
[% USE LxERP %]
10 5

  
6
[% L.paginate_controls(models=SELF.models) %]
7
</div><!-- /.wrapper -->
8
<input type="hidden" name="rowcount" value="[% HTML.escape(rowcount) %]">
9
[% FOREACH item = HIDDEN %]
10
  <input type="hidden" name="[% HTML.escape(item.key) %]" value="[% HTML.escape(item.value) %]">
11
[% END %]
12

  
11 13
</form>
templates/webpages/letter/report_top.html
1
[%- PROCESS 'letter/search.html' filter=SELF.models.filtered.laundered %]
2
<hr>
1
[% PROCESS 'letter/search.html' filter=SELF.models.filtered.laundered %]
2
<div class="wrapper">
templates/webpages/letter/search.html
3 3
[% USE L %]
4 4
[% USE P %]
5 5
[% USE LxERP %]
6
<form action="controller.pl" method="post" name="Form" id="search_form">
7

  
8
<div class='filter_toggle'>
9
<a href='#' onClick='javascript:$(".filter_toggle").toggle()'>[% 'Show Filter' | $T8 %]</a>
10
  [% SELF.filter_summary | html %]
11
</div>
12
<div class='filter_toggle' style='display:none'>
13
<a href='#' onClick='javascript:$(".filter_toggle").toggle()'>[% 'Hide Filter' | $T8 %]</a>
14 6

  
7
<form action="controller.pl" method="post" name="Form" id="search_form">
8
<div class="wrapper">
15 9

  
16
 <table id='filter_table'>
17
  <tr>
18
   <th align='right'>[% 'Letternumber' | $T8 %]</th>
19
   <td>[% L.input_tag('filter.letternumber:substr::ilike', filter.letternumber_substr__ilike, style='width:250px') %]</th>
20
  </tr>
21
[%- IF SELF.is_sales %]
22
  <tr>
23
   <td align="right">[% 'Customer' | $T8 %]</td>
24
   <td>[% P.customer_vendor.picker('filter.customer_id', filter.customer_id, type='customer', style='width:250px') %]</td>
25
  </tr>
26
[%- ELSE %]
27
  <tr>
28
   <td align="right">[% 'Vendor' | $T8 %]</td>
29
   <td>[% P.customer_vendor.picker('filter.vendor_id', filter.vendor_id, type='vendor', style='width:250px') %]</td>
30
  </tr>
31
[%- END %]
32
  <tr>
33
   <td align="right">[% 'Contact' | $T8 %]</td>
34
   <td>[% L.input_tag('filter.contact.cp_name:substr::ilike', filter.contact.cp_name_substr__ilike, style='width:250px') %]</th>
35
  </tr>
36

  
37
  <tr>
38
   <td align="right">[% 'Subject' | $T8 %]</td>
39
   <td>[% L.input_tag('filter.subject:substr::ilike', filter.subject_substr__ilike, style='width:250px') %]</th>
40
  </tr>
10
[% BLOCK filter_toggle_panel %]
11
<table id='filter_table' class="tbl-horizontal">
12
  <tbody>
13
    <tr>
14
      <th>[% 'Letternumber' | $T8 %]</th>
15
      <td>[% L.input_tag('filter.letternumber:substr::ilike', filter.letternumber_substr__ilike, class='wi-lightwide') %]</td>
16
    </tr>
17
    [% IF SELF.is_sales %]
18
      <tr>
19
        <th>[% 'Customer' | $T8 %]</th>
20
        <td class="wi-lightwide">[% P.customer_vendor.picker('filter.customer_id', filter.customer_id, type='customer') %]</td>
21
      </tr>
22
    [% ELSE %]
23
      <tr>
24
        <th>[% 'Vendor' | $T8 %]</th>
25
        <td class="wi-lightwide">[% P.customer_vendor.picker('filter.vendor_id', filter.vendor_id, type='vendor') %]</td>
26
      </tr>
27
    [% END %]
28
    <tr>
29
      <th>[% 'Contact' | $T8 %]</th>
30
      <td>[% L.input_tag('filter.contact.cp_name:substr::ilike', filter.contact.cp_name_substr__ilike, class='wi-lightwide') %]</td>
31
    </tr>
32
    <tr>
33
      <th>[% 'Subject' | $T8 %]</th>
34
      <td>[% L.input_tag('filter.subject:substr::ilike', filter.subject_substr__ilike, class='wi-lightwide') %]</td>
35
    </tr>
36
    <tr>
37
      <th>[% 'Body' | $T8 %]</th>
38
      <td>[% L.input_tag('filter.body:substr::ilike', filter.body_substr__ilike, class='wi-lightwide') %]</td>
39
    </tr>
40
    <tr>
41
      <th>[% 'Date' | $T8 %]</th>
42
      <td>[% L.date_tag('filter.date:date::ge', filter.date_date__ge, class='wi-date') %] [% 'To (time)' | $T8 %] [% L.date_tag('filter.date:date::le', filter.date_date__le, class='wi-date') %]</td>
43
    </tr>
44
  </tbody>
45
</table>
41 46

  
42
  <tr>
43
   <td align="right">[% 'Body' | $T8 %]</td>
44
   <td>[% L.input_tag('filter.body:substr::ilike', filter.body_substr__ilike, style='width:250px') %]</th>
45
  </tr>
47
[% L.hidden_tag('is_sales', SELF.is_sales) %]
48
[% L.hidden_tag('sort_by', FORM.sort_by) %]
49
[% L.hidden_tag('sort_dir', FORM.sort_dir) %]
50
[% L.hidden_tag('page', FORM.page) %]
51
<div class="buttons">
52
  [% L.button_tag("\$('#search_form').resetForm()", LxERP.t8("Reset"), class='neutral') %]
53
</div>
54
[% END # /BLOCK filter_toggle_panel %]
46 55

  
47
  <tr>
48
   <td align='right'>[% 'From' | $T8 %]</td>
49
   <td> [% L.date_tag('filter.date:date::ge', filter.date_date__ge) %]
50
        [% 'To (time)' | $T8 %]
51
        [% L.date_tag('filter.date:date::le', filter.date_date__le) %]</td>
52
  </tr>
53
 </table>
56
[% INCLUDE 'common/toggle_panel.html' %]
54 57

  
55
 [% L.hidden_tag('is_sales', SELF.is_sales) %]
56
 [% L.hidden_tag('sort_by', FORM.sort_by) %]
57
 [% L.hidden_tag('sort_dir', FORM.sort_dir) %]
58
 [% L.hidden_tag('page', FORM.page) %]
59
 [% L.button_tag("\$('#search_form').resetForm()", LxERP.t8("Reset")) %]
60 58
</div>
61 59
</form>

Auch abrufbar als: Unified diff