Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 19af7c17

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

  • ID 19af7c17e0055ad9cd28e2c92681bfee6db45c93
  • Vorgänger 7fa4e6d4
  • Nachfolger b8b8653d

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

Unterschiede anzeigen:

templates/webpages/cp/form_footer.html
1
  <tr>
2
    <td><hr size=3 noshade></td>
3
  </tr>
4
</table>
5 1
[% USE T8 %]
6 2
[% USE HTML %]
7 3

  
8 4
<input type=hidden name=rowcount value="[% rowcount | html %]">
9
 </form>
5
</form>
templates/webpages/cp/form_header.html
4 4
[% USE LxERP %]
5 5
[% USE P %]
6 6

  
7
<h1>[% is_receipt ? LxERP.t8('Receipt') : LxERP.t8('Payment') %]</h1>
8

  
7 9
<form method="post" action="cp.pl" id="form">
8 10

  
9 11
[% SET vc_id = vc _ '_id'
......
18 20
[% L.hidden_tag('ARAP', ARAP) %]
19 21
[% L.hidden_tag('openinvoices', openinvoices) %]
20 22

  
21
<h1>[% is_receipt ? LxERP.t8('Receipt') : LxERP.t8('Payment') %]</h1>
22 23

  
23
<table>
24
  <tr valign=top>
25
    <td>
26
      <table>
27
        <tr>
28
          <th align=right>[% is_customer ? LxERP.t8('Customer') : LxERP.t8('Vendor') %]</th>
29
          <td>
30
           [% P.customer_vendor.picker(vc_id, $vc_id, type=vc, class="initial_focus", style=style) %]
31
           [% P.hidden_tag("previous_" _ vc_id, $vc_id) %]
32
          </td>
33
        </tr>
34
        <tr>
35
          <th align=right>[% 'Invoice Number' | $T8 %]</th>
36
          <td><input name="invnumber" size="35"></td>
37
        </tr>
38
        <tr valign=top>
39
          <th align=right nowrap>[% 'Address' | $T8 %]</th>
40
          <td colspan=2>
41
            <table>
42
              <tr>
43
                <td>[% street | html %][% L.hidden_tag('street', street) %]</td>
44
              </tr>
45
              <tr>
46
                <td>[% zipcode | html %][% L.hidden_tag('zipcode', zipcode) %]</td>
47
              </tr>
48
              <tr>
49
                <td>[% city | html %][% L.hidden_tag('city', city) %]</td>
50
              </tr>
51
              <tr>
52
                <td>[% country | html %][% L.hidden_tag('country', country) %]</td>
53
              </tr>
54
            </table>
55
          </td>
56
        </tr>
57
        <tr>
58
          <th align=right>[% 'Memo' | $T8 %]</th>
59
          <td colspan=2><input name="memo" size=30 value="[% memo | html %]"></td>
60
        </tr>
61
      </table>
62
    </td>
63
    <td align=right>
64
      <table>
65
        <tr>
66
          <th align=right nowrap>[% 'Account' | $T8 %]</th>
67
          <td colspan=3><select name=account>[% selectaccount %]</select>
68
          <input type=hidden name=selectaccount value="[% selectaccount | html %]">
69
          </td>
70
        </tr>
71
        <tr>
72
          <th align=right nowrap>[% 'Date' | $T8 %]</th>
73
          <td>[% L.date_tag('datepaid', datepaid) %]</td>
74
        </tr>
75
        <tr>
76
          <th align=right nowrap>[% 'Currency' | $T8 %]</th>
77
          <td><select name=currency>[% selectcurrency %]</select></td>
78
          <input type=hidden name=selectcurrency value="[% selectcurrency | html %]">
79
          <input type=hidden name=oldcurrency value="[% oldcurrency | html %]">
80
        </tr>
81
[% IF currency != defaultcurrency %]
82
        <tr>
83
          <th align=right nowrap>[% 'Exchangerate' | $T8 %]</th>
84
[% IF forex %]
85
          <td colspan=3>[% LxERP.format_amount(exchangerate) %][% L.hidden_tag('exchangerate', LxERP.format_amount(exchangerate)) %]</td>
86
[%- ELSE %]
87
          <td colspan=3>[% L.input_tag('exchangerate', LxERP.format_amount(exchangerate), size=10) %]</td>
88
[%- END %]
89
        </tr>
90
[% END %]
91
        <tr>
92
          <th align=right nowrap>[% 'Source' | $T8 %]</th>
93
          <td colspan=3><input name=source value="[% source | html %]" size=10></td>
94
        </tr>
95
        <tr>
96
          <th align="right" nowrap>[% 'Amount' | $T8 %]</th>
97
          <td colspan="3">[% LxERP.format_amount(amount, 2) %]</td>
98
        </tr>
99
      </table>
100
    </td>
101
  </tr>
24
<div class="wrapper">
25

  
26
<table class="tbl-horizontal">
27
  <colgroup><col class="wi-small"><col class="wi-verywide"></colgroup>
28
  <tbody>
29
    <tr>
30
      <th>[% is_customer ? LxERP.t8('Customer') : LxERP.t8('Vendor') %]</th>
31
      <td>
32
        [% P.customer_vendor.picker(vc_id, $vc_id, type=vc, class="initial_focus wi-wide") %]
33
        [% P.hidden_tag("previous_" _ vc_id, $vc_id) %]
34
      </td>
35
    </tr>
36
    <tr>
37
      <th>[% 'Address' | $T8 %]</th>
38
      <td>
39
        [% IF street || zipcode || city || country %]
40
          [% IF street %]<span class="data wi-wide below">[% street | html %]</span>[% END %]
41
          [% L.hidden_tag('street', street) %]
42
          [% IF zipcode || city %]<span class="data wi-wide below">[% zipcode | html %] [% city | html %]</span>[% END %]
43
          [% L.hidden_tag('zipcode', zipcode) %][% L.hidden_tag('city', city) %]
44
          [% IF country %]<span class="data wi-wide below">[% country | html %]</span>[% END %]
45
          [% L.hidden_tag('country', country) %]
46
        [% ELSE %]
47
          <span class="data wi-wide">&nbsp;</span>
48
        [% END %]
49
      </td>
50
    </tr>
51
    <tr>
52
      <th>[% 'Memo' | $T8 %]</th>
53
      <td><input type="text" name="memo" class="wi-wide" value="[% memo | html %]"></td>
54
    </tr>
55
    <tr>
56
      <th>[% 'Invoice Number' | $T8 %]</th>
57
      <td><input type="text" name="invnumber" class="wi-normal"></td>
58
    </tr>
59
    <tr>
60
      <th>[% 'Account' | $T8 %]</th>
61
      <td>
62
        <select name="account" class="wi-verywide">[% selectaccount %]</select>
63
        <input type=hidden name="selectaccount" value="[% selectaccount | html %]">
64
      </td>
65
    </tr>
66
    <tr>
67
      <th>[% 'Date' | $T8 %]</th>
68
      <td><span class="wi-date">[% L.date_tag('datepaid', datepaid) %]</span></td>
69
    </tr>
70
    <tr>
71
      <th>[% 'Currency' | $T8 %]</th>
72
      <td>
73
        <select name="currency" class="wi-small">[% selectcurrency %]</select>
74
        <input type=hidden name="selectcurrency" value="[% selectcurrency | html %]">
75
        <input type=hidden name="oldcurrency" value="[% oldcurrency | html %]">
76
      </td>
77
    </tr>
78
    [% IF currency != defaultcurrency %]
79
      <tr>
80
        <th>[% 'Exchangerate' | $T8 %]</th>
81
        [% IF forex %]
82
          <td><span class="plain-data wi-small">[% LxERP.format_amount(exchangerate) %]</span>[% L.hidden_tag('exchangerate', LxERP.format_amount(exchangerate)) %]</td>
83
        [% ELSE %]
84
          <td>[% L.input_tag('exchangerate', LxERP.format_amount(exchangerate), class='wi-small') %]</td>
85
        [% END %]
86
      </tr>
87
    [% END %]
88
    <tr>
89
      <th>[% 'Source' | $T8 %]</th>
90
      <td><input type="text" name="source" value="[% source | html %]" class="wi-small">
91
      </td>
92
    </tr>
93
    <tr>
94
      <th>[% 'Amount' | $T8 %]</th>
95
      <td><span class="data wi-small numeric">[% LxERP.format_amount(amount, 2) %]</span></td>
96
    </tr>
97
  </tbody>
102 98
</table>
103 99

  
104 100
[% IF openinvoices_other_currencies %]
105 101
  <input type="hidden" name="openinvoices_other_currencies" value="[% openinvoices_other_currencies | html %]">
106
   <b>[% 'Note' | $T8 %]:
107
 [%- IF is_customer %]
108
     [% LxERP.t8('There are #1 more open invoices for this customer with other currencies.', openinvoices_other_currencies) %]
109
 [%- ELSE %]
110
     [% LxERP.t8('There are #1 more open invoices from this vendor with other currencies.',  openinvoices_other_currencies) %]
111
 [%- END %]</b>
102
  <p class="message message_info"><b>[% 'Note' | $T8 %]:</b><br>
103
    [% IF is_customer %]
104
      [% LxERP.t8('There are #1 more open invoices for this customer with other currencies.', openinvoices_other_currencies) %]
105
    [% ELSE %]
106
      [% LxERP.t8('There are #1 more open invoices from this vendor with other currencies.',  openinvoices_other_currencies) %]
107
    [% END %]
108
  </p>
112 109
[% END %]
110
</div>
templates/webpages/cp/invoices.html
1
<table width=100%>
2
  <tr>
3
    <th class=listheading colspan="7">[% 'Invoices' | $T8 %]</th>
4
  </tr>
5
  <tr>
6
   <th nowrap class=listheading>[% 'Row number' | $T8 %]</th>
7
   <th nowrap class=listheading>[% 'Invoice' | $T8 %]</th>
8
   <th nowrap class=listheading width="15%">[% 'Date' | $T8 %]</th>
9
   <th nowrap class=listheading width="15%">[% 'Amount' | $T8 %]</th>
10
   <th nowrap class=listheading width="15%">[% 'Due' | $T8 %]</th>
11
   <th nowrap class=listheading width="10%">[% 'Select' | $T8 %]</th>
12
   <th nowrap class=listheading width="15%">[% 'Amount' | $T8 %]</th>
13
  </tr>
14
[%- FOREACH row = invoices %]
15
  <tr class="listrow[% loop.count % 2 %]">
16
    <td>[% loop.count %]</td>
17
    <td>[% row.invnumber | html %][% L.hidden_tag('invnumber_' _ loop.count, row.invnumber); L.hidden_tag('id_' _ loop.count, row.id) %]</td>
18
    <td>[% row.transdate | html %][% L.hidden_tag('transdate_' _ loop.count, row.transdate) %]</td>
19
    <td class="numeric">[% LxERP.format_amount(row.amount, 2) %][% L.hidden_tag('amount_' _ loop.count, LxERP.format_amount(row.amount, 2)) %]</td>
20
    <td class="numeric">[% LxERP.format_amount(row.due, 2) %][% L.hidden_tag('due_' _ loop.count, LxERP.format_amount(row.due, 2)) %]</td>
21
    <td align="center">[% L.checkbox_tag('checked_' _ loop.count, checked=row.checked) %]</td>
22
    <td class="numeric">[% L.input_tag('paid_' _ loop.count, LxERP.format_amount(row.paid, 2), size=10) %]</td>
23
  </tr>
24
[%- END %]
25
  <tr class='tisttotal'>
26
   <td class="listtotal">&nbsp;</td>
27
   <td class="listtotal">&nbsp;</td>
28
   <td class="listtotal">&nbsp;</td>
29
   <td class="listtotal" align="right">[% LxERP.format_amount(totals.amount, 2) %]</td>
30
   <td class="listtotal" align="right">[% LxERP.format_amount(totals.due, 2) %]</td>
31
   <td class="listtotal">&nbsp;</td>
32
   <td class="listtotal" align="right">[% LxERP.format_amount(totals.paid, 2) %]</td>
33
  </tr>
34 1
[% USE T8 %]
35 2
[% USE HTML %]
36 3
[% USE L %]
37 4
[% USE LxERP %]
38 5

  
6
<div class="wrapper">
7
<table class="tbl-list wi-moderate">
8
  <caption>[% 'Invoices' | $T8 %]</caption>
9
  <thead>
10
    <tr>
11
      <th>[% 'Row number' | $T8 %]</th>
12
      <th>[% 'Invoice' | $T8 %]</th>
13
      <th>[% 'Date' | $T8 %]</th>
14
      <th>[% 'Amount' | $T8 %]</th>
15
      <th>[% 'Due' | $T8 %]</th>
16
      <th>[% 'Select' | $T8 %]</th>
17
      <th>[% 'Amount' | $T8 %]</th>
18
    </tr>
19
  </thead>
20
  <tbody>
21
    [% FOREACH row = invoices %]
22
    <tr>
23
      <td>[% loop.count %]</td>
24
      <td>[% row.invnumber | html %][% L.hidden_tag('invnumber_' _ loop.count, row.invnumber); L.hidden_tag('id_' _ loop.count, row.id) %]</td>
25
      <td>[% row.transdate | html %][% L.hidden_tag('transdate_' _ loop.count, row.transdate) %]</td>
26
      <td class="numeric">[% LxERP.format_amount(row.amount, 2) %][% L.hidden_tag('amount_' _ loop.count, LxERP.format_amount(row.amount, 2)) %]</td>
27
      <td class="numeric">[% LxERP.format_amount(row.due, 2) %][% L.hidden_tag('due_' _ loop.count, LxERP.format_amount(row.due, 2)) %]</td>
28
      <td>[% L.checkbox_tag('checked_' _ loop.count, checked=row.checked) %]</td>
29
      <td class="numeric">[% L.input_tag('paid_' _ loop.count, LxERP.format_amount(row.paid, 2), size=10) %]</td>
30
    </tr>
31
    [% END %]
32
  </tbody>
33
  <tfoot>
34
    <tr>
35
      <td></td>
36
      <td></td>
37
      <td></td>
38
      <td class="numeric">[% LxERP.format_amount(totals.amount, 2) %]</td>
39
      <td class="numeric">[% LxERP.format_amount(totals.due, 2) %]</td>
40
      <td></td>
41
      <td class="numeric">[% LxERP.format_amount(totals.paid, 2) %]</td>
42
    </tr>
43
  </tfoot>
39 44
</table>
45
</div>
46

  

Auch abrufbar als: Unified diff