Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 228ca445

Von Hans Peter Schlaepfer vor fast 5 Jahren hinzugefügt

  • ID 228ca4458d8a75b85bc5c614e1eb12d242e6d664
  • Vorgänger e5fb3201
  • Nachfolger 89753406

Design 4.0: Aenderungen in templates/webpages/customer_vendor/..

Unterschiede anzeigen:

templates/webpages/customer_vendor/form.html
18 18

  
19 19
  [%- SET show_deliveries = ( SELF.cv.id && ((SELF.is_customer && AUTH.assert('sales_all_edit', 1)) || (SELF.is_vendor && AUTH.assert('purchase_all_edit', 1))) ) -%]
20 20
  <div class="tabwidget" id="customer_vendor_tabs">
21
    <ul>
21
    <ul class="ui-tabs">
22 22
      <li><a href="#billing">[% 'Billing Address' | $T8 %]</a></li>
23 23
      <li><a href="#bank">[% 'Bank account' | $T8 %]</a></li>
24 24
      <li><a href="#shipto">[% 'Shipping Address' | $T8 %]</a></li>
templates/webpages/customer_vendor/get_delivery.html
1 1
[% USE T8 %]
2 2
[% USE HTML %]
3 3
[% USE LxERP %]
4
<div id="delivery">
5
  <table width="100%">
6
    <tr>
7
      <td>
8
        <table width="100%">
9
          <tr class="listheading">
10
            <th class="listheading">[% 'Shipping Address' | $T8 %]</th>
11
            <th class="listheading">[% 'Invoice' | $T8 %]</th>
12
            <th class="listheading">[% 'Order' | $T8 %]</th>
13
            <th class="listheading">[% 'Invdate' | $T8 %]</th>
14
            <th class="listheading">[% 'Description' | $T8 %]</th>
15
            <th class="listheading">[% 'Qty' | $T8 %]</th>
16
            <th class="listheading">[% 'Unit' | $T8 %]</th>
17
            [% IF ( SELF.is_customer() ) %]
18
              <th class="listheading">[% 'Sell Price' | $T8 %]</th>
19
            [% ELSE %]
20
              <th class="listheading">[% 'Last Cost' | $T8 %]</th>
21
            [%- END %]
22
          </tr>
23 4

  
5
<div id="delivery">
24 6

  
25
          [% FOREACH row = SELF.delivery %]
26
            [% row.script = SELF.is_vendor() ? ( row.invoice ? 'ir' : 'ap' ) : ( row.invoice ? 'is' : 'ar' ) %]
27
            <tr class="listrow[% loop.count % 2 %]">
28
              <td>[% HTML.escape(row.shiptoname) UNLESS loop.prev.shiptoname == row.shiptoname %]&nbsp;</td>
29
              <td>[% IF row.id %]<a href='[% row.script %].pl?action=edit&id=[% HTML.escape(row.id) %]'>[% END %][% HTML.escape(row.invnumber)   || '&nbsp;' %][% IF row.id %]</a>[% END %]</td>
7
  <table>
8
    <thead>
9
    <tr>
10
      <th>[% 'Shipping Address' | $T8 %]</th>
11
      <th>[% 'Invoice' | $T8 %]</th>
12
      <th>[% 'Order' | $T8 %]</th>
13
      <th>[% 'Invdate' | $T8 %]</th>
14
      <th>[% 'Description' | $T8 %]</th>
15
      <th>[% 'Qty' | $T8 %]</th>
16
      <th>[% 'Unit' | $T8 %]</th>
17
      [% IF ( SELF.is_customer() ) %]
18
        <th>[% 'Sell Price' | $T8 %]</th>
19
      [% ELSE %]
20
        <th>[% 'Last Cost' | $T8 %]</th>
21
      [%- END %]
22
    </tr>
23
    </thead>
24
    <tbody>
25
    [% FOREACH row = SELF.delivery %]
26
      [% row.script = SELF.is_vendor() ? ( row.invoice ? 'ir' : 'ap' ) : ( row.invoice ? 'is' : 'ar' ) %]
27
      <tr>
28
        <td>[% HTML.escape(row.shiptoname) UNLESS loop.prev.shiptoname == row.shiptoname %]&nbsp;</td>
29
        <td>
30
          [% IF row.id %]
31
            <a href="[% row.script %].pl?action=edit&id=[% HTML.escape(row.id) %]">
32
          [% END %]
33
          [% HTML.escape(row.invnumber)   || '&nbsp;' %]
34
          [% IF row.id %]</a>[% END %]
35
        </td>
36
        <td>[% IF row.oe_id %]
30 37
              [%- IF INSTANCE_CONF.get_feature_experimental_order -%]
31
                <td>[% IF row.oe_id %]<a href='controller.pl?action=Order/edit&type=[% IF SELF.is_customer %]sales_order[% ELSE %]purchase_order[% END %]&id=[% HTML.escape(row.oe_id) %]'>[% END %][% HTML.escape(row.ordnumber)   || '&nbsp;' %][% IF row.oe_id %]</a>[% END %]</td>
38
                <a href='controller.pl?action=Order/edit&type=[% IF SELF.is_customer %]sales_order[% ELSE %]purchase_order[% END %]&id=[% HTML.escape(row.oe_id) %]'>
32 39
              [%- ELSE -%]
33
                <td>[% IF row.oe_id %]<a href='oe.pl?action=edit&type=[% IF SELF.is_customer %]sales_order[% ELSE %]purchase_order[% END %]&vc=customer&id=[% HTML.escape(row.oe_id) %]'>[% END %][% HTML.escape(row.ordnumber)   || '&nbsp;' %][% IF row.oe_id %]</a>[% END %]</td>
40
                <a href='oe.pl?action=edit&type=[% IF SELF.is_customer %]sales_order[% ELSE %]purchase_order[% END %]&vc=customer&id=[% HTML.escape(row.oe_id) %]'>
34 41
              [%- END -%]
42
            [% END %]
43
          [% HTML.escape(row.ordnumber)   || '&nbsp;' %]
44
          [% IF row.oe_id %]</a>[% END %]
45
        </td>
35 46
        <td>[% HTML.escape(row.transdate)   || '&nbsp;' %]</td>
36 47
        <td>[% HTML.escape(row.description) || '&nbsp;' %]</td>
37 48
        <td>[% HTML.escape(row.qty)         || '&nbsp;' %]</td>
......
39 50
        <td>[% LxERP.format_amount(row.sellprice, 2) || '&nbsp;' %]</td>
40 51
      </tr>
41 52
    [% END %]
53
   </tbody>
42 54
   
43 55
  </table>
44 56

  
......
46 58
    <p>[% 'This list is capped at 15 items to keep it fast. If you need a full list, please use reports.' | $T8 %]</p>
47 59
  [% END %]
48 60

  
49
      </td>
50
    </tr>
51
  </table>
52 61
</div>
templates/webpages/customer_vendor/tabs/bank.html
4 4
[% USE L %] 
5 5

  
6 6
<div id="bank">
7
  <table>
8
    <tr>
9
      <th align="right">[% 'Owner of account' | $T8 %]</th>
10

  
11
      <td>
12
        [% L.input_tag('cv.depositor', SELF.cv.depositor, size = 20) %]
13
      </td>
14

  
15
    [%- IF ( SELF.is_customer ) %]
16
      <th align="right">[% 'Mandator ID' | $T8 %]</th>
17
      <td>
18
        [% L.input_tag('cv.mandator_id', SELF.cv.mandator_id, size = 20) %]
19
      </td>
20

  
21
      <th align="right">[% 'Mandate Date of Signature' | $T8 %]</th>
22
      <td>
23
        [% L.date_tag('cv.mandate_date_of_signature', SELF.cv.mandate_date_of_signature) %]
24
      </td>
25
    [%- END %]
26
    </tr>
27

  
28
    <tr>
29
      <th align="right">[% 'IBAN' | $T8 %]</th>
30

  
31
      <td>
32
        [% L.input_tag('cv.iban', SELF.cv.iban, size = 34) %]
33
      </td>
34

  
35

  
36
      <th align="right">[% 'BIC' | $T8 %]</th>
37
      <td>
38
        [% L.input_tag('cv.bic', SELF.cv.bic, size = 20) %]
39
      </td>
40

  
41
      <th align="right">[% 'Bank' | $T8 %]</th>
42

  
43
      <td>
44
        [% L.input_tag('cv.bank', SELF.cv.bank, size = 20) %]
45
      </td>
46
    </tr>
47

  
48
    <tr>
49
      <th align="right">[% 'Account Number' | $T8 %]</th>
50

  
51
      <td>
52
        [% L.input_tag('cv.account_number', SELF.cv.account_number, size = 20) %]
53
      </td>
54

  
55

  
56
      <th align="right">[% 'Bank Code Number' | $T8 %]</th>
57

  
58
      <td>
59
        [% L.input_tag('cv.bank_code', SELF.cv.bank_code, size = 20) %]
60
      </td>
61
    </tr>
62
  </table>
7
  <div class="wrapper">
8
    <table class="tbl-horizontal">
9
      <caption> [% 'Bank Account' | $T8 %] </caption>
10
      <tbody>
11
        <tr>
12
          <th>[% 'Owner of account' | $T8 %]</th>
13
          <td>[% L.input_tag('cv.depositor', SELF.cv.depositor, class="wi-wide") %]</td>
14
        </tr>
15
        <tr>
16
          <th>[% 'IBAN' | $T8 %]</th>
17
          <td>[% L.input_tag('cv.iban', SELF.cv.iban, class="wi-wide") %]</td>
18
        </tr>
19
        <tr>
20
          <th>[% 'Account Number' | $T8 %]</th>
21
          <td>[% L.input_tag('cv.account_number', SELF.cv.account_number, class="wi-wide") %]</td>
22
        </tr>
23
      </tbody>
24
    </table>
25
    <table class="tbl-horizontal">
26
      <caption> [% 'Bank' | $T8 %] </caption>
27
      <tbody>
28
        <tr>
29
          <th>[% 'Bank' | $T8 %]</th>
30
          <td>[% L.input_tag('cv.bank', SELF.cv.bank, class="wi-normal") %]</td>
31
        </tr>
32
        <tr>
33
          <th>[% 'BIC' | $T8 %]</th>
34
          <td>[% L.input_tag('cv.bic', SELF.cv.bic, class="wi-normal") %]</td>
35
        </tr>
36
        <tr>
37
          <th>[% 'Bank Code Number' | $T8 %]</th>
38
          <td>[% L.input_tag('cv.bank_code', SELF.cv.bank_code, class="wi-normal") %]</td>
39
        </tr>
40
      </tbody>
41
    </table>
42
    [% IF ( SELF.is_customer ) %] 
43
    <table class="tbl-horizontal">
44
      <caption> [% 'Mandator' | $T8 %] </caption>
45
      <tbody>
46
        <tr>
47
          <th>[% 'Mandator ID' | $T8 %]</th>
48
          <td>[% L.input_tag('cv.mandator_id', SELF.cv.mandator_id, class="wi-normal") %]</td>
49
        </tr>
50
        <tr>
51
          <th>[% 'Mandate Date of Signature' | $T8 %]</th>
52
          <td>[% L.date_tag('cv.mandate_date_of_signature', SELF.cv.mandate_date_of_signature, class="wi-date") %]</td>
53
        </tr>
54
      </tbody>
55
    </table>
56
    [% END %] 
57
  </div>
63 58
</div>
templates/webpages/customer_vendor/tabs/billing.html
5 5
[% USE JavaScript %]
6 6

  
7 7
<div id="billing">
8
  <table width="100%">
9 8

  
10
    <tr height="5"></tr>
9
<div class="wrapper">
11 10

  
12
    [% IF ( INSTANCE_CONF.get_vertreter ) %]
13
      <tr>
14
        <th align="right">
15
          [% IF SELF.is_vendor() %]
16
            [% 'Type of Vendor' | $T8 %]
17
          [% ELSE %]
18
            [% 'Type of Customer' | $T8 %]
19
          [% END %]
20
        </th>
21

  
22
        <td>
23
          [% L.select_tag('cv.business_id', SELF.all_business, value_key = 'id', title_key = 'description', default = SELF.cv.business_id, with_empty = 1) %]
24
        </td>
25
      </tr>
26

  
27
      <tr>
28
        <th align="right">
29
          [% 'Representative' | $T8 %]
30
        </th>
31

  
32
        <td>
33
          [% L.select_tag('cv.salesman_id', SELF.all_salesman_customers, default = SELF.cv.salesman_id, value_key = 'id', title_key = 'name', with_empty = 1) %]
34
        </td>
35
      </tr>
36

  
37
    [%- END %]
38

  
39
    <tr>
40
      [% IF SELF.is_vendor() %]
41
        <th align="right" nowrap>[% 'Vendor Number' | $T8 %]</th>
42
        <td>
43
          [% L.input_tag('cv.vendornumber', SELF.cv.vendornumber) %]
44
        </td>
45
      [%- ELSE %]
46
        <th align="right" nowrap>[% 'Customer Number' | $T8 %]</th>
47
        <td>
48
          [% L.input_tag('cv.customernumber', SELF.cv.customernumber) %]
49
        </td>
50
      [%- END %]
51
    </tr>
11
[% IF SELF.cv.name %]
12
<h2 class="record-title" title="[% IF SELF.is_vendor() %][% 'Vendor Name' | $T8 %][% ELSE %][% 'Customer Name' | $T8 %][% END %]">
13
  [% SELF.cv.name %] <small>[% IF SELF.cv.city; IF SELF.cv.name !=""; ", "; END ; SELF.cv.city ; END; %]</small>
14
</h2>
15
[% END %]
52 16

  
17
<table class="tbl-horizontal">
18
  <caption>[% 'Name and Address' | $T8 %]</caption>
19
  <colgroup><col class="wi-small"><col class="wi-lightwide"></colgroup>
20
  <tbody>
53 21
    <tr>
54
      <th align="right" nowrap>[% 'Greeting' | $T8 %]</th>
55

  
56
      <td>
57
        [% L.input_tag('cv.greeting', SELF.cv.greeting) %]
58
        [% L.select_tag('cv_greeting_select', SELF.all_greetings, default = SELF.cv.greeting, with_empty = 1, onchange = '$("#cv_greeting").val(this.value);') %]
59
      </td>
22
      <th>[% IF SELF.is_vendor() %] [% 'Vendor Name' | $T8 %] [% ELSE %] [% 'Customer Name' | $T8 %] [% END %]</th>
23
      <td>[% L.input_tag('cv.name', SELF.cv.name, type='text', class='wi-lightwide') %]</td>
60 24
    </tr>
61

  
62 25
    <tr>
63
      <th align="right" nowrap>
64
        [% IF SELF.is_vendor() %]
65
          [% 'Vendor Name' | $T8 %]
66
        [%- ELSE %]
67
          [% 'Customer Name' | $T8 %]
68
        [%- END %]
69
      </th>
70

  
26
      <th>[% 'Department' | $T8 %]</th>
71 27
      <td>
72
        [% L.input_tag('cv.name', SELF.cv.name) %]
28
        [% L.input_tag('cv.department_1', SELF.cv.department_1, class='wi-lightwide') %]<br>
29
        [% L.input_tag('cv.department_2', SELF.cv.department_2, class='wi-lightwide addition') %]
30
      <br>
73 31
      </td>
74 32
    </tr>
75

  
76 33
    <tr>
77
      <th align="right" nowrap>[% 'Department' | $T8 %]</th>
78

  
34
      <th>[% 'Street' | $T8 %]</th>
79 35
      <td>
80
        [% L.input_tag('cv.department_1', SELF.cv.department_1, size = 16) %]
81
        [% L.input_tag('cv.department_2', SELF.cv.department_2, size = 16) %]
82
      </td>
83
    </tr>
84

  
85
    <tr>
86
      <th align="right" nowrap>[% 'Street' | $T8 %]</th>
87

  
88
      <td>
89
        [% L.input_tag('cv.street', SELF.cv.street, size = 35) %]
90
        <span id="billing_map"></span>
36
        [% L.input_tag('cv.street', SELF.cv.street, class='wi-lightwide') %]<button id="billing_map" type="button" class="icon"></button>
91 37
        <script type="text/javascript">
92 38
          billingMapWidget = new kivi.CustomerVendor.MapWidget('cv_', '[% JavaScript.escape(SELF.home_address_for_google_maps) %]');
93 39
          $(function() {
......
96 42
        </script>
97 43
      </td>
98 44
    </tr>
99

  
100 45
    <tr>
101
      <th align="right" nowrap>[% 'Zipcode' | $T8 %]/[% 'City' | $T8 %]</th>
102

  
103
      <td>
104
        [% L.input_tag('cv.zipcode', SELF.cv.zipcode, size = 5) %]
105
        [% L.input_tag('cv.city', SELF.cv.city, size = 30) %]
106
      </td>
46
      <th>[% 'Zipcode' | $T8 %]/[% 'City' | $T8 %]</th>
47
      <td>[% L.input_tag('cv.zipcode', SELF.cv.zipcode, class='wi-verysmall') %][% L.input_tag('cv.city', SELF.cv.city, class='wi-small', class='wi-lightwide--verysmall') %]</td>
107 48
    </tr>
108

  
109 49
    <tr>
110
      <th align="right" nowrap>[% 'Country' | $T8 %]</th>
111

  
112
      <td>
113
        [% L.input_tag('cv.country', SELF.cv.country, size = 30) %]
114
      </td>
50
      <th>[% 'Country' | $T8 %]</th>
51
      <td>[% L.input_tag('cv.country', SELF.cv.country, class='wi-lightwide') %]</td>
115 52
    </tr>
116

  
117 53
    <tr>
118
      <th align="right" nowrap>[% 'GLN' | $T8 %]</th>
119

  
120
      <td>
121
        [% L.input_tag('cv.gln', SELF.cv.gln, size = 30) %]
122
      </td>
54
      <th>[% 'GLN' | $T8 %]</th>
55
      <td>[% L.input_tag('cv.gln', SELF.cv.gln, class='wi-lightwide') %]</td>
123 56
    </tr>
124

  
125 57
    <tr>
126
      <th align="right" nowrap>[% 'Contact' | $T8 %]</th>
127

  
58
      <th>[% 'Greeting' | $T8 %]</th>
128 59
      <td>
129
        [% L.input_tag('cv.contact', SELF.cv.contact, size = 28) %]
60
        [% L.input_tag('cv.greeting', SELF.cv.greeting, class='wi-lightwide') %]<br>
61
        [% L.select_tag('cv_greeting_select', SELF.all_greetings, default=SELF.cv.greeting, with_empty=1, onchange = '$("#cv_greeting").val(this.value);', class='wi-lightwide addition') %]
130 62
      </td>
131 63
    </tr>
64
  </tbody>
65
</table>
132 66

  
67
<table class="tbl-horizontal">
68
  <caption>[% 'Communication' | $T8 %]</caption>
69
  <colgroup><col class="wi-small"><col class="wi-lightwide"></colgroup>
70
  <tbody>
133 71
    <tr>
134
      <th align="right" nowrap>[% 'Phone' | $T8 %]</th>
135

  
136
      <td>
137
        [% L.input_tag('cv.phone', SELF.cv.phone, size = 30) %]
138
      </td>
72
      <th>[% 'Contact' | $T8 %]</th>
73
      <td>[% L.input_tag('cv.contact', SELF.cv.contact, class='wi-lightwide') %]</td>
139 74
    </tr>
140

  
141 75
    <tr>
142
      <th align="right" nowrap>[% 'Fax' | $T8 %]</th>
143

  
144
      <td>
145
        [% L.input_tag('cv.fax', SELF.cv.fax, size = 30) %]
146
      </td>
76
      <th>[% 'Phone' | $T8 %]</th>
77
      <td>[% L.input_tag('cv.phone', SELF.cv.phone, class='wi-lightwide') %]</td>
147 78
    </tr>
148

  
149 79
    <tr>
150
      <th align="right" nowrap>[% 'E-mail' | $T8 %]</th>
151

  
152
      <td>
153
        [% L.input_tag('cv.email', SELF.cv.email, size = 45) %]
154
      </td>
80
      <th>[% 'Fax' | $T8 %]</th>
81
      <td>[% L.input_tag('cv.fax', SELF.cv.fax, class='wi-lightwide') %]</td>
155 82
    </tr>
156

  
157 83
    <tr>
158
      <th align="right">[% 'Cc E-mail' | $T8 %]</th>
159

  
160
      <td>
161
        [% L.input_tag('cv.cc', SELF.cv.cc, size = 45) %]
162
      </td>
84
      <th>[% IF SELF.cv.email %]<a href="mailto:[% SELF.cv.email %]">[% END %][% 'E-mail' | $T8 %][% IF SELF.cv.email %]</a>[% END %]</th>
85
      <td>[% L.input_tag('cv.email', SELF.cv.email, class='wi-lightwide') %]</td>
163 86
    </tr>
164

  
165 87
    <tr>
166
      <th align="right">[% 'Bcc E-mail' | $T8 %]</th>
167

  
168
      <td>
169
        [% L.input_tag('cv.bcc', SELF.cv.bcc, size = 45) %]
170
      </td>
88
      <th>[% IF SELF.cv.cc %]<a href="mailto:[% SELF.cv.cc %]">[% END %][% 'Cc E-mail' | $T8 %][% IF SELF.cv.cc %]</a>[% END %]</th>
89
      <td>[% L.input_tag('cv.cc', SELF.cv.cc, class='wi-lightwide') %]</td>
171 90
    </tr>
91
    <tr>
92
      <th>[% IF SELF.cv.bcc %]<a href="mailto:[% SELF.cv.bcc %]">[% END %][% 'Bcc E-mail' | $T8 %][% IF SELF.cv.bcc %]</a>[% END %]</th>
93
      <td>[% L.input_tag('cv.bcc', SELF.cv.bcc, class='wi-lightwide') %]</td>
94
    </tr>
95
    <tr><!-- PENDENT: Funktion der Link-Erzeugung verbessern, z.B. falls z.B. Schema (http:// oder https://) schon angegeben -->
96
      <th>[% IF SELF.cv.homepage %]<a href="http://[% HTML.escape(SELF.cv.homepage) %]" title="[% 'Open this Website in a new window' | $T8 %]" target="_blank">[% 'Homepage' | $T8 %]</a>[% ELSE %][% 'Homepage' | $T8 %][% END %]</th>
97
      <td>[% L.input_tag('cv.homepage', SELF.cv.homepage, class='wi-lightwide', title = LxERP.t8('Example: http://kivitendo.de')) %]</td>
98
    </tr>
99

  
172 100
    [% IF ( SELF.is_customer() ) %]
173 101
    <tr>
174
      <th align="right">[% 'Email of the invoice recipient' | $T8 %]</th>
175
      <td>[% L.input_tag('cv.invoice_mail', SELF.cv.invoice_mail, size = 45) %]</td>
102
      <th>[% 'Email of the invoice recipient' | $T8 %]</th>
103
      <td>[% L.input_tag('cv.invoice_mail', SELF.cv.invoice_mail, class='wi-lightwide') %]</td>
176 104
    </tr>
177 105
    <tr>
178
      <th align="right">[% 'Email of the delivery order recipient' | $T8 %]</th>
179
      <td>[% L.input_tag('cv.delivery_order_mail', SELF.cv.delivery_order_mail, size = 45) %]</td>
106
      <th>[% 'Email of the delivery order recipient' | $T8 %]</th>
107
      <td>[% L.input_tag('cv.delivery_order_mail', SELF.cv.delivery_order_mail, class='wi-lightwide') %]</td>
180 108
    </tr>
181 109
    [% END %]
110
    [% IF ( SELF.is_customer() ) %]
182 111
    <tr>
183
      <th align="right" nowrap>
184
        [% IF SELF.cv.homepage %]
185
          <a href="[% HTML.escape(SELF.cv.homepage) %]" title="[% 'Open this Website' | $T8 %]" target="_blank">[% 'Homepage' | $T8 %]</a>
186
        [% ELSE %]
187
          [% 'Homepage' | $T8 %]
188
        [% END %]
189
      </th>
190

  
191
      <td>
192
        [% L.input_tag('cv.homepage', SELF.cv.homepage, size = 45, title = LxERP.t8('Example: http://kivitendo.de')) %]
193
      </td>
112
      <th>[% 'Origin of personal data' | $T8 %]</th>
113
      <td>[% L.textarea_tag('cv.contact_origin', SELF.cv.contact_origin, rows=6, class='wi-small-lightwide') %]</td>
194 114
    </tr>
195

  
115
    [% END %]
116
    [% IF ( SELF.is_customer() ) %]
196 117
    <tr>
197
      <th align="right" nowrap>[% 'Username' | $T8 %]</th>
198

  
199
      <td>
200
        [% L.input_tag('cv.username', SELF.cv.username, size = 45) %]
201
      </td>
118
      <th>[% 'Commercial court' | $T8 %]</th>
119
      <td>[% L.input_tag('cv.commercial_court', SELF.cv.commercial_court, class='wi-lightwide') %] </td>
202 120
    </tr>
121
    [% END %]
203 122

  
204
    <tr>
205
      <th align="right" nowrap>[% 'Password' | $T8 %]</th>
123
  </tbody>
124
</table>
206 125

  
207
      <td>
208
        [% L.input_tag('cv.user_password', SELF.cv.user_password, size = 45) %]
209
      </td>
126
<table class="tbl-horizontal">
127
  <caption>[% IF ( SELF.is_vendor() ) %][% 'Vendor' | $T8 %][% ELSE %][% 'Customer' | $T8 %][% END %] [% 'Info & Status' | $T8 %]</caption>
128
  <colgroup> <col class="wi-small"><col class="wi-lightwide"> </colgroup>
129
  <tbody>
130
    [% IF ( INSTANCE_CONF.get_vertreter ) %]
131
      <tr>
132
        <th>[% IF SELF.is_vendor() %] [% 'Type of Vendor' | $T8 %] [% ELSE %] [% 'Type of Customer' | $T8 %] [% END %]</th>
133
        <td>[% L.select_tag('cv.business_id', SELF.all_business, value_key = 'id', title_key = 'description', default = SELF.cv.business_id, with_empty=1, class='wi-lightwide') %]</td>
134
      </tr>
135
      <tr>
136
        <th>[% 'Representative' | $T8 %]</th>
137
        <td>[% L.select_tag('cv.salesman_id', SELF.all_salesman_customers, default=SELF.cv.salesman_id, value_key='id', title_key='name', with_empty=1, class='wi-lightwide') %]</td>
138
      </tr>
139
    [% END %]
140
    <!-- PENDENT: zweimal das gleiche Feld aber nicht wirklich angezeigt? Anschauen!!!!!! -->
141
    [% IF ( !INSTANCE_CONF.get_vertreter ) %]
142
      <tr>
143
        <th>[% IF ( SELF.is_vendor() ) %][% 'Type of Vendor' | $T8 %][% ELSE %][% 'Type of Customer' | $T8 %][% END %]</th>
144
        <td>[% L.select_tag('cv.business_id', SELF.all_business, default = SELF.cv.business_id, value_key = 'id', title_key = 'description', with_empty=1, class='wi-lightwide') %]</td>
145
      </tr>
146
    [% END %]
147
    <tr>
148
      <th>[% 'Language' | $T8 %]</th>
149
      <td>[% L.select_tag('cv.language_id', SELF.all_languages, default = SELF.cv.language_id, value_key = 'id', title_key='description', with_empty=1, class='wi-lightwide') %]</td>
210 150
    </tr>
211
  </table>
212

  
213

  
214
  <table>
215

  
216 151
    <tr>
217
      <th align="right">[% 'Credit Limit' | $T8 %]</th>
218

  
219
      <td>
220
        [% L.input_tag('cv.creditlimit_as_number', SELF.cv.creditlimit_as_number, size = 9) %]
221
      </td>
222

  
223

  
224
      <th align="right">[% 'Payment Terms' | $T8 %]</th>
225

  
226
      <td>
227
        [% L.select_tag('cv.payment_id', SELF.all_payment_terms, value_key = 'id', title_key = 'description', default = SELF.cv.payment_id, with_empty = 1) %]
228
      </td>
229

  
230

  
231
      <th align="right">[% 'Discount' | $T8 %]</th>
232

  
233
      <td>
234
        [% L.input_tag('cv.discount_as_percent', SELF.cv.discount_as_percent, size = 4) %]%
235
      </td>
152
      <th><label for="cv_obsolete">[% 'Obsolete' | $T8 %]</label> </th>
153
      <td>[% L.checkbox_tag('cv.obsolete', checked = SELF.cv.obsolete, for_submit=1) %]</td>
236 154
    </tr>
237

  
238 155
    <tr>
239
      <th align="right">[% 'Tax Number / SSN' | $T8 %]</th>
240

  
241
      <td>
242
        [% L.input_tag('cv.taxnumber', SELF.cv.taxnumber, size = 20) %]
243
      </td>
244

  
245

  
246
      <!-- Anm.: R&B 15.11.2008     VAT Reg No ist Ust-ID in GB, aber generell sollte es laut Richardson die sales tax id sein -->
247
      <th align="right">[% 'sales tax identification number' | $T8 %]</th>
156
      <th colspan="2">
157
        <span class="label above">[% 'Internal Notes' | $T8 %]</span>
158
        [% L.textarea_tag('cv.notes', SELF.cv.notes, rows=6, class='wi-small-lightwide') %]
159
    </th>
160
    </tr>
161
  </tbody>
162
</table>
248 163

  
249
      <td>
250
        [% L.input_tag('cv.ustid', SELF.cv.ustid, size = 20 ) %]
251
      </td>
164
</div><!-- /.wrapper -->
252 165

  
166
<div class="wrapper">
253 167

  
254
      [%- IF ( SELF.is_vendor() ) %]
255
        <th align="right">[% 'Customer Number' | $T8 %]</th>
256
        <td>
257
          [% L.input_tag('cv.v_customer_id', SELF.cv.v_customer_id, size = 10) %]
258
        </td>
259
      [%- ELSE %]
260
        <th align="right">[% 'our vendor number at customer' | $T8 %]</th>
261
        <td>
262
          [% L.input_tag('cv.c_vendor_id', SELF.cv.c_vendor_id, size = 10) %]
263
        </td>
264
      [%- END %]
265
    </tr>
168
<div class="col">
266 169

  
170
<table class="tbl-horizontal">
171
  <caption>[% 'IDs & Numbers' | $T8 %]</caption>
172
  <colgroup><col class="wi-small"><col class="wi-lightwide"></colgroup>
173
  <tbody>
267 174
    <tr>
268
      [% IF ( SELF.is_customer() ) %]
269
        <th align="right">[% 'Commercial court' | $T8 %]</th>
270
        <td>
271
          [% L.input_tag('cv.commercial_court', SELF.cv.commercial_court, size = 20) %]
272
        </td>
273
      [% END %]
274
      [% IF ( SELF.all_currencies.size ) %]
275
        <th align="right">[% 'Currency' | $T8 %]</th>
276
        <td>
277
          [% L.select_tag('cv.currency_id', SELF.all_currencies, title_key = 'name', value_key = 'id', default = SELF.cv.currency_id) %]
278
        </td>
175
      [% IF SELF.is_vendor() %]
176
        <th>[% 'Vendor No.' | $T8 %]</th>
177
        <td>[% L.input_tag('cv.vendornumber', SELF.cv.vendornumber, class='wi-normal') %]</td>
178
      [% ELSE %]
179
        <th>[% 'Customer No.' | $T8 %]</th>
180
        <td>[% L.input_tag('cv.customernumber', SELF.cv.customernumber, class='wi-normal') %]</td>
279 181
      [% END %]
280 182
    </tr>
281 183
    <tr>
282
      [% IF ( !INSTANCE_CONF.get_vertreter ) %]
283
        <th align="right">
284
          [% IF ( SELF.is_vendor() ) %]
285
            [% 'Type of Vendor' | $T8 %]
286
          [% ELSE %]
287
            [% 'Type of Customer' | $T8 %]
288
          [% END %]
289
        </th>
290

  
291
        <td>
292
          [% L.select_tag('cv.business_id', SELF.all_business, default = SELF.cv.business_id, value_key = 'id', title_key = 'description', with_empty = 1) %]
293
        </td>
184
      <th>[% 'Tax Number / SSN' | $T8 %]</th>
185
      <td>[% L.input_tag('cv.taxnumber', SELF.cv.taxnumber, class='wi-normal') %]</td>
186
    </tr>
187
    <tr>
188
<!--
189
  PENDENT: Ist diese Anmerkung noch gueltig?:
190
  Anm.: R&B 15.11.2008     VAT Reg No ist Ust-ID in GB, aber generell sollte es laut Richardson die sales tax id sein
191
-->
192
      <th>[% 'sales tax identification number' | $T8 %]</th>
193
      <td>[% L.input_tag('cv.ustid', SELF.cv.ustid, class='wi-normal' ) %]</td>
194
    </tr>
195
    <tr>
196
      [% IF ( SELF.is_vendor() ) %]
197
        <th>[% 'Customer Number' | $T8 %]</th>
198
        <td>[% L.input_tag('cv.v_customer_id', SELF.cv.v_customer_id, class='wi-normal') %]</td>
199
      [% ELSE %]
200
        <th>[% 'our vendor number at customer' | $T8 %]</th>
201
        <td>[% L.input_tag('cv.c_vendor_id', SELF.cv.c_vendor_id, class='wi-normal') %]</td>
294 202
      [% END %]
295

  
296

  
297
      <th align="right">[% 'Language' | $T8 %]</th>
298

  
299
      <td>
300
        [% L.select_tag('cv.language_id', SELF.all_languages, default = SELF.cv.language_id, value_key = 'id', title_key = 'description', with_empty = 1) %]
301
      </td>
302

  
303
      <th align="right">[% 'Delivery Terms' | $T8 %]</th>
304

  
305
      <td>
306
        [% L.select_tag('cv.delivery_term_id', SELF.all_delivery_terms, default = SELF.cv.delivery_term_id, value_key = 'id', title_key = 'description', with_empty = 1) %]
307
      </td>
308

  
309 203
    </tr>
310

  
204
<!-- </tbody> -->
205
<!-- </table> -->
206
<!--
207
<table class="tbl-horizontal">
208
  <colgroup><col class="wi-small"><col class="wi-lightwide"></colgroup>
209
  <caption>[% #'Login details' | $T8 %]</caption>
210
  <tbody>
211
-->
212
  </tbody>
213
</table>
214

  
215
<table class="tbl-horizontal">
216
  <caption>[% 'Login details' | $T8 %]</caption>
217
  <colgroup> <col class="wi-small"><col class="wi-lightwide"> </colgroup>
218
  <tbody>
219
<!--
311 220
    <tr>
312
      <td align="right">
313
        <label for="cv_obsolete">[% 'Obsolete' | $T8 %]</label>
314
      </td>
315

  
316
      <td>
317
        [% L.checkbox_tag('cv.obsolete', checked = SELF.cv.obsolete, for_submit=1) %]
318
      </td>
319

  
320

  
321
      <td align="right">
322
        <label for="cv_direct_debit">[% 'direct debit' | $T8 %]</label>
323
      </td>
324

  
325
      <td>
326
        [% L.checkbox_tag('cv.direct_debit', checked = SELF.cv.direct_debit, for_submit=1) %]
327
      </td>
328

  
329
      [% IF ( SELF.is_customer() ) %]
330
        <th align="right">[% 'Price group' | $T8 %]</th>
331

  
332
        <td>
333
          [% L.select_tag('cv.pricegroup_id', SELF.all_pricegroups, default = SELF.cv.pricegroup_id, value_key = 'id', title_key = 'pricegroup', with_empty = 1) %]
334
        </td>
335
      [% END  %]
336

  
221
      <th class="caption" colspan="2">[% 'Login details' | $T8 %]</th>
337 222
    </tr>
338

  
223
 -->
339 224
    <tr>
340
      <th align="right">[% 'Tax rate' | $T8 %]</th>
341

  
342
      <td>
343
        [% L.select_tag('cv.taxzone_id', SELF.all_taxzones, default = SELF.cv.taxzone_id, value_key = 'id', title_key = 'description') %]
344
      </td>
345

  
346

  
347
      [% IF ( SELF.is_customer() && !INSTANCE_CONF.get_vertreter ) %]
348
        <th align="right">[% 'Salesman' | $T8 %]</th>
349

  
350
        <td>
351
          [% L.select_tag('cv.salesman_id', SELF.all_salesmen, default = SELF.cv.salesman_id, value_key = 'id', title_key = 'safe_name', with_empty = 1) %]
352
        </td>
353
      [%- END %]
225
      <th>[% 'Username' | $T8 %]</th>
226
      <td>[% L.input_tag('cv.username', SELF.cv.username, class='wi-normal') %]</td>
227
    </tr>
228
    <tr>
229
      <th>[% 'Password' | $T8 %]</th>
230
      <td>[% L.input_tag('cv.user_password', SELF.cv.user_password, class='wi-normal') %]</td>
231
    </tr>
232
  </tbody>
233
</table>
354 234

  
355
      [% IF ( SELF.is_customer() ) %]
356
        <td>[% 'taxincluded checked' | $T8 %]</td>
235
</div><!-- /.col -->
357 236

  
358
        <td>
359
          [% L.select_tag('cv.taxincluded_checked', [[undef, LxERP.t8('use user config')], ['1', LxERP.t8('Yes')], ['0', LxERP.t8('No')]], default = SELF.cv.taxincluded_checked) %]
360
        </td>
361
      [% END %]
362 237

  
363
    </tr>
364 238

  
239
<table class="tbl-horizontal">
240
  <caption>[% 'Currency, Prices & Taxes' | $T8 %]</caption>
241
  <colgroup><col class="wi-small"><col class="wi-lightwide"></colgroup>
242
  <tbody>
243
    [% IF ( SELF.all_currencies.size ) %]
244
      <tr>
245
        <th>[% 'Currency' | $T8 %]</th>
246
        <td>[% L.select_tag('cv.currency_id', SELF.all_currencies, title_key = 'name', value_key = 'id', default = SELF.cv.currency_id, class='wi-small') %]</td>
247
      </tr>
248
    [% END %]
365 249
    [% IF ( SELF.is_customer() ) %]
366
     <tr>
367
      <th align="right">[%- LxERP.t8("Hourly rate") %]</th>
368
      <td>[% L.input_tag("cv.hourly_rate_as_number", SELF.cv.hourly_rate_as_number) %]</td>
369
      <th align="right" valign="top" nowrap>[% 'Shoporderlock' | $T8 %]</th>
370
      <td>
371
        [% L.checkbox_tag('cv.order_lock', checked = SELF.cv.order_lock, for_submit=1) %]
372
      </td>
373
     </tr>
250
      <tr>
251
        <th>[% 'Price group' | $T8 %]</th>
252
        <td>[% L.select_tag('cv.pricegroup_id', SELF.all_pricegroups, default = SELF.cv.pricegroup_id, value_key = 'id', title_key = 'pricegroup', with_empty = 1, class='wi-lightwide') %]</td>
253
      </tr>
374 254
    [% END %]
375
  </table>
376

  
377
  <table>
378 255
    <tr>
379
      <th align="left" nowrap>[% 'Internal Notes' | $T8 %]</th>
256
      <th>[% 'Tax rate' | $T8 %]</th>
257
      <td>[% L.select_tag('cv.taxzone_id', SELF.all_taxzones, default = SELF.cv.taxzone_id, value_key = 'id', title_key = 'description', class='wi-lightwide') %]</td>
258
    </tr>
259
    <tr>
380 260
    [% IF ( SELF.is_customer() ) %]
381
      <th align="left">[% 'Origin of personal data' | $T8 %]</th>
261
      <th>[% 'taxincluded checked' | $T8 %]</th>
262
      <td>[% L.select_tag('cv.taxincluded_checked', [[undef, LxERP.t8('use user config')], ['1', LxERP.t8('Yes')], ['0', LxERP.t8('No')]], default = SELF.cv.taxincluded_checked, class='wi-lightwide') %]</td>
382 263
    [% END %]
383 264
    </tr>
384 265
    <tr>
385
      <td>
386
        [% L.textarea_tag('cv.notes', SELF.cv.notes, rows = 3 cols = 60 wrap = soft) %]
387
      </td>
266
      <th>[% 'Discount' | $T8 %]</th>
267
      <td>[% L.input_tag('cv.discount_as_percent', SELF.cv.discount_as_percent, class='wi-small numeric') %]% </td>
268
    </tr>
388 269
    [% IF ( SELF.is_customer() ) %]
389
      <td>
390
        [% L.textarea_tag('cv.contact_origin', SELF.cv.contact_origin,  rows = 3 cols = 60 wrap = soft) %]
391
      </td>
270
      <tr>
271
        <th>[%- LxERP.t8("Hourly rate") %]</th>
272
        <td>[% L.input_tag("cv.hourly_rate_as_number", SELF.cv.hourly_rate_as_number, class='wi-small numeric') %]</td>
273
      </tr>
392 274
    [% END %]
275
  </tbody>
276
</table>
277

  
278

  
279
<table class="tbl-horizontal">
280
  <caption>[% 'Conditions' | $T8 %]</caption>
281
  <colgroup><col class="wi-small"><col class="wi-lightwide"></colgroup>
282
  <tbody>
283
    <tr>
284
      <th>[% 'Credit Limit' | $T8 %]</th>
285
      <td>[% L.input_tag('cv.creditlimit_as_number', SELF.cv.creditlimit_as_number, class='wi-small numeric') %]</td>
393 286
    </tr>
394
  </table>
287
    [% IF ( SELF.is_customer() ) %]
288
      <tr>
289
        <th><label for="cv_order_lock">[% 'Shoporderlock' | $T8 %]</label></th>
290
        <td>[% L.checkbox_tag('cv.order_lock', checked = SELF.cv.order_lock, for_submit=1) %]</td>
291
      </tr>
292
    [% END %]
293
    <tr>
294
      <th><label for="cv_direct_debit">[% 'direct debit' | $T8 %]</label></th>
295
      <td>[% L.checkbox_tag('cv.direct_debit', checked = SELF.cv.direct_debit, for_submit=1) %]</td>
296
    </tr>
297
    <tr>
298
      <td colspan="2">
299
        <span class="label above">[% 'Payment Terms' | $T8 %]</span>
300
        [% L.select_tag('cv.payment_id', SELF.all_payment_terms, value_key = 'id', title_key = 'description', default = SELF.cv.payment_id, with_empty = 1, class='wi-small-lightwide') %]</td>
301
    </tr>
302
    <tr>
303
      <td colspan="2">
304
        <span class="label above">[% 'Delivery Terms' | $T8 %]</span>
305
        [% L.select_tag('cv.delivery_term_id', SELF.all_delivery_terms, default = SELF.cv.delivery_term_id, value_key = 'id', title_key = 'description', with_empty = 1, class='wi-small-lightwide') %]</td>
306
    </tr>
307
  </tbody>
308
</table>
309

  
310

  
311
</div><!-- /.wrapper -->
395 312
</div>
templates/webpages/customer_vendor/tabs/contacts.html
4 4
[% USE L %]
5 5

  
6 6
<div id="contacts">
7
  <table>
8
    <tr>
9
      <th align="right">[% 'Contacts' | $T8 %]</th>
10 7

  
11
      <td>
12
        [%
13
          L.select_tag(
14
            'contact.cp_id',
15
            SELF.contacts,
16
            default = SELF.contact.cp_id,
17
            with_empty = 1,
18
            empty_title = LxERP.t8('New contact'),
19
            value_key = 'cp_id',
20
            title_key = 'full_name',
21
            onchange = "kivi.CustomerVendor.selectContact({onFormSet: function(){ contactsMapWidget.testInputs(); kivi.reinit_widgets(); }});",
22
          )
23
        %]
24
      </td>
25
    </tr>
26
    <tr>
27
      <th align="right" nowrap>[% 'Main Contact Person' | $T8 %]</th>
28
      <td>[% L.yes_no_tag('contact.cp_main', SELF.contact.cp_main) %]</td>
29
    </tr>
30
    <tr>
31
      <th align="right" nowrap>[% 'Gender' | $T8 %]</th>
8
<div class="select-item control-panel">
9
[% 'Select contacts' | $T8 %][%
10
  L.select_tag(
11
    'contact.cp_id',
12
    SELF.contacts,
13
    default = SELF.contact.cp_id,
14
    with_empty = 1,
15
    empty_title = LxERP.t8('New contact'),
16
    value_key = 'cp_id',
17
    title_key = 'full_name',
18
    onchange = "kivi.CustomerVendor.selectContact({onFormSet: function(){ contactsMapWidget.testInputs(); kivi.reinit_widgets(); }});",
19
  )%]
20
</div>
32 21

  
33
      <td>
34
        [%
35
          L.select_tag(
36
            'contact.cp_gender',
37
            [['m', LxERP.t8('male')], ['f', LxERP.t8('female')]],
38
            default = SELF.contact.cp_gender
39
          )
40
        %]
41
      </td>
42
    </tr>
22
<div class="wrapper">
43 23

  
24
<table class="tbl-horizontal">
25
  <caption>[% 'Personal details' | $T8 %]</caption>
26
  <tbody>
44 27
    <tr>
45
      <th align="right" nowrap>[% 'Title' | $T8 %]</th>
46

  
47
      <td>
48
        [% L.input_tag('contact.cp_title', SELF.contact.cp_title, size = 40) %]
49
        [% L.select_tag('contact_cp_title_select', SELF.all_titles, with_empty = 1, onchange = '$("#contact_cp_title").val(this.value);') %]
50
      </td>
28
      <th>[% 'Given Name' | $T8 %]</th>
29
      <td>[% L.input_tag('contact.cp_givenname', SELF.contact.cp_givenname, class="wi-wide") %]</td>
51 30
    </tr>
52

  
53 31
    <tr>
54
      <th align="right" nowrap>[% 'Department' | $T8 %]</th>
55

  
56
      <td>
57
        [% L.input_tag('contact.cp_abteilung', SELF.contact.cp_abteilung, size = 40) %]
58
        [% L.select_tag('contact_cp_abteilung_select', SELF.all_departments, default = SELF.contact.cp_abteilung,  with_empty = 1, onchange = '$("#contact_cp_abteilung").val(this.value);') %]
59
      </td>
32
      <th>[% 'Surname' | $T8 %]</th>
33
      <td>[% L.input_tag('contact.cp_name', SELF.contact.cp_name, class="wi-wide") %]</td>
60 34
    </tr>
61

  
62 35
    <tr>
63
      <th align="right" nowrap>[% 'Function/position' | $T8 %]</th>
64

  
65
      <td>
66
        [% L.input_tag('contact.cp_position', SELF.contact.cp_position, size = 40) %]
67
      </td>
36
      <th[% 'Main Contact Person' | $T8 %]</th>
37
      <td>[% L.yes_no_tag('contact.cp_main', SELF.contact.cp_main) %]</td>
68 38
    </tr>
69

  
70 39
    <tr>
71
      <th align="right" nowrap>[% 'Given Name' | $T8 %]</th>
72

  
40
      <th>[% 'Gender' | $T8 %]</th>
73 41
      <td>
74
        [% L.input_tag('contact.cp_givenname', SELF.contact.cp_givenname, size = 40) %]
42
        [% L.select_tag(
43
          'contact.cp_gender',
44
          [['m', LxERP.t8('male')], ['f', LxERP.t8('female')]],
45
          default = SELF.contact.cp_gender,
46
          class = 'wi-normal',
47
        ) %]
75 48
      </td>
76 49
    </tr>
77

  
78 50
    <tr>
79
      <th align="right" nowrap>[% 'Surname' | $T8 %]</th>
80

  
81
      <td>
82
        [% L.input_tag('contact.cp_name', SELF.contact.cp_name, size = 40) %]
83
      </td>
51
      <th>[% 'Birthday' | $T8 %]</th>
52
      <td>[% L.date_tag('contact.cp_birthday', SELF.contact.cp_birthday, class='wi-date') %]</td>
84 53
    </tr>
85

  
86 54
    <tr>
87
      <th align="right" nowrap>[% 'E-mail' | $T8 %]</th>
88

  
55
      <th>[% 'Title' | $T8 %]</th>
89 56
      <td>
90
        [% L.input_tag('contact.cp_email', SELF.contact.cp_email, size = 40) %]
57
        [% L.select_tag('contact_cp_title_select', SELF.all_titles, with_empty = 1, onchange = '$("#contact_cp_title").val(this.value);', class="wi-wide helper") %] <br>
58
        [% L.input_tag('contact.cp_title', SELF.contact.cp_title, class="wi-wide addition") %]
91 59
      </td>
92 60
    </tr>
93

  
94 61
    <tr>
95
      <th align="right" nowrap>[% 'Phone1' | $T8 %]</th>
96

  
97
      <td>
98
        [% L.input_tag('contact.cp_phone1', SELF.contact.cp_phone1, size = 40) %]
99
      </td>
62
      <th>[% 'Project' | $T8 %]</th>
63
      <td>[% L.input_tag('contact.cp_project', SELF.contact.cp_project, class="wi-wide") %]</td>
100 64
    </tr>
101

  
102 65
    <tr>
103
      <th align="right" nowrap>[% 'Phone2' | $T8 %]</th>
104

  
105
      <td>
106
        [% L.input_tag('contact.cp_phone2', SELF.contact.cp_phone2, size = 40) %]
107
      </td>
66
      <th class="caption" colspan="2">[% 'Department & Function' | $T8 %]</th>
108 67
    </tr>
109

  
110 68
    <tr>
111
      <th align="right" nowrap>[% 'Fax' | $T8 %]</th>
112

  
69
      <th>[% 'Department' | $T8 %]</th>
113 70
      <td>
114
        [% L.input_tag('contact.cp_fax', SELF.contact.cp_fax, size = 40) %]
71
        [% L.select_tag(
72
          'contact_cp_abteilung_select',
73
          SELF.all_departments,
74
          default = SELF.contact.cp_abteilung,
75
          with_empty = 1,
76
          onchange = '$("#contact_cp_abteilung").val(this.value);',
77
          class='wi-wide helper'
78
        ) %]<br>
79
        [% L.input_tag('contact.cp_abteilung', SELF.contact.cp_abteilung, class="wi-wide addition") %]
115 80
      </td>
116 81
    </tr>
117

  
118 82
    <tr>
119
      <th align="right" nowrap>[% 'Mobile1' | $T8 %]</th>
120

  
121
      <td>
122
        [% L.input_tag('contact.cp_mobile1', SELF.contact.cp_mobile1, size = 40) %]
123
      </td>
124
    </tr>
125

  
126
    <tr>
127
      <th align="right" nowrap>[% 'Mobile2' | $T8 %]</th>
128

  
129
      <td>
130
        [% L.input_tag('contact.cp_mobile2', SELF.contact.cp_mobile2, size = 40) %]
131
      </td>
83
      <th>[% 'Function/position' | $T8 %]</th>
84
      <td>[% L.input_tag('contact.cp_position', SELF.contact.cp_position, class="wi-wide") %]</td>
132 85
    </tr>
133

  
134 86
    <tr>
135
      <th align="right" nowrap>[% 'Sat. Phone' | $T8 %]</th>
136

  
137
      <td>
138
        [% L.input_tag('contact.cp_satphone', SELF.contact.cp_satphone, size = 40) %]
139
      </td>
87
      <th class="caption" colspan="2">[% 'Address' | $T8 %]</th>
140 88
    </tr>
141

  
142 89
    <tr>
143
      <th align="right" nowrap>[% 'Sat. Fax' | $T8 %]</th>
144

  
90
      <th>[% 'Street' | $T8 %]</th>
145 91
      <td>
146
        [% L.input_tag('contact.cp_satfax', SELF.contact.cp_satfax, size = 40) %]
147
      </td>
148
    </tr>
149

  
150
    <tr>
151
      <th align="right" nowrap>[% 'Project' | $T8 %]</th>
152

  
153
      <td>
154
        [% L.input_tag('contact.cp_project', SELF.contact.cp_project, size = 40) %]
155
      </td>
156
    </tr>
157

  
158
    <tr>
159
      <th align="right" nowrap>[% 'Street' | $T8 %]</th>
160

  
161
      <td>
162
        [% L.input_tag('contact.cp_street', SELF.contact.cp_street, size = 40) %]
92
        [% L.input_tag('contact.cp_street', SELF.contact.cp_street, class="wi-wide") %]
163 93
        <span id="contact_map"></span>
164 94
        <script type="text/javascript">
165 95
          var contactsMapWidget = new kivi.CustomerVendor.MapWidget('contact_cp_');
......
169 99
        </script>
170 100
      </td>
171 101
    </tr>
172

  
173
    <tr>
174
      <th align="right" nowrap>[% 'Zip, City' | $T8 %]</th>
175

  
176
      <td>
177
        [% L.input_tag('contact.cp_zipcode', SELF.contact.cp_zipcode, size = 5) %]
178
        [% L.input_tag('contact.cp_city', SELF.contact.cp_city, size = 25) %]
179
      </td>
180
    </tr>
181

  
182
    <tr>
183
      <th align="right" nowrap>[% 'Private Phone' | $T8 %]</th>
184

  
185
      <td>
186
        [% L.input_tag('contact.cp_privatphone', SELF.contact.cp_privatphone, size = 40) %]
187
      </td>
188
    </tr>
189

  
190
    <tr>
191
      <th align="right" nowrap>[% 'Private E-mail' | $T8 %]</th>
192

  
193
      <td>
194
        [% L.input_tag('contact.cp_privatemail', SELF.contact.cp_privatemail, size = 40) %]
195
      </td>
196
    </tr>
197

  
198 102
    <tr>
199
      <th align="right" nowrap>[% 'Birthday' | $T8 %]</th>
200

  
103
      <th>[% 'Zip, City' | $T8 %]</th>
201 104
      <td>
202
        [% L.date_tag('contact.cp_birthday', SELF.contact.cp_birthday) %]
105
        [% L.input_tag('contact.cp_zipcode', SELF.contact.cp_zipcode, class="wi-verysmall") %][% L.input_tag('contact.cp_city', SELF.contact.cp_city, class="wi-wide--verysmall") %]
203 106
      </td>
204 107
    </tr>
205

  
206 108
    [% contact_cvars = SELF.contact.cvars_by_config %]
207

  
208 109
    [% IF ( contact_cvars.size ) %]
209
      <tr>
210
        <td colspan="2">
211
          <hr>
212
        </td>
213
      </tr>
214

  
110
      <!-- PENDENT: Horizontal Rule -->
215 111
      [% FOREACH var = contact_cvars %]
216 112
        <tr>
217
          <th align="right" valign="top" nowrap>[% var.config.description | html %]</th>
218

  
219
          <td valign="top">
113
          <th>[% var.config.description | html %]</th>
114
          <td>
220 115
            [% INCLUDE 'common/render_cvar_input.html'
221 116
                       cvar_name_prefix = 'contact_cvars.'
222 117
            %]
......
224 119
        </tr>
225 120
      [% END %]
226 121
    [% END %]
122
  </tbody>
123
</table>
227 124

  
228
  </table>
125
<table class="tbl-horizontal">
126
  <caption>[% 'Communication' | $T8 %]</caption>
127
  <tbody>
128
    <tr>
129
      <th>[% 'E-mail' | $T8 %]</th>
130
      <td>[% L.input_tag('contact.cp_email', SELF.contact.cp_email, class="wi-wide") %]</td>
131
    </tr>
132
    <tr>
133
      <th>[% 'Phone1' | $T8 %]</th>
134
      <td>[% L.input_tag('contact.cp_phone1', SELF.contact.cp_phone1, class="wi-wide") %]</td>
135
    </tr>
136
    <tr>
137
      <th>[% 'Phone2' | $T8 %]</th>
138
      <td>[% L.input_tag('contact.cp_phone2', SELF.contact.cp_phone2, class="wi-wide") %]</td>
139
    </tr>
140
    <tr>
141
      <th>[% 'Fax' | $T8 %]</th>
142
      <td>[% L.input_tag('contact.cp_fax', SELF.contact.cp_fax, class="wi-wide") %]</td>
143
    </tr>
144
    <tr>
145
      <th>[% 'Mobile1' | $T8 %]</th>
146
      <td>[% L.input_tag('contact.cp_mobile1', SELF.contact.cp_mobile1, class="wi-wide") %]</td>
147
    </tr>
148
    <tr>
149
      <th>[% 'Mobile2' | $T8 %]</th>
150
      <td>[% L.input_tag('contact.cp_mobile2', SELF.contact.cp_mobile2, class="wi-wide") %]</td>
151
    </tr>
152
    <tr>
153
      <th>[% 'Sat. Phone' | $T8 %]</th>
154
      <td>[% L.input_tag('contact.cp_satphone', SELF.contact.cp_satphone, class="wi-wide") %]</td>
155
    </tr>
156
    <tr>
157
      <th>[% 'Sat. Fax' | $T8 %]</th>
158
      <td>[% L.input_tag('contact.cp_satfax', SELF.contact.cp_satfax, class="wi-wide") %]</td>
159
    </tr>
160
    <tr>
161
      <th>[% 'Private Phone' | $T8 %]</th>
162
      <td>[% L.input_tag('contact.cp_privatphone', SELF.contact.cp_privatphone, class="wi-wide") %]</td>
163
    </tr>
164
    <tr>
165
      <th>[% 'Private E-mail' | $T8 %]</th>
166
      <td>[% L.input_tag('contact.cp_privatemail', SELF.contact.cp_privatemail, class="wi-wide") %]</td>
167
    </tr>
168
  </tbody>
169
</table>
170

  
171
<div class="buttons">
172
  [% L.button_tag('submitInputButton("delete_contact");', LxERP.t8('Delete Contact'),) %]
229 173

  
230
  [% L.button_tag('submitInputButton("delete_contact");', LxERP.t8('Delete Contact'), class = 'submit') %]
231 174
  [% IF ( !SELF.contact.cp_id ) %]
232 175
  <script type="text/javascript">
233 176
    $('#action_delete_contact').hide();
234 177
  </script>
235 178
  [% END %]
236 179
</div>
180

  
181
</div><!-- /.cols -->
182

  
183
</div><!-- /#contacts -->
templates/webpages/customer_vendor/tabs/custom_variables.html
1 1
[% USE HTML %]
2
[% USE T8 %]
2 3

  
3 4
<div id="custom_variables">
4
  <p>
5
    <table>
6
      [% FOREACH var = SELF.cv.cvars_by_config %]
7
        <tr>
8
          <th align="right" valign="top" nowrap>[% var.config.description | html %]</th>
9

  
10
          <td valign="top">
11
            [% INCLUDE 'common/render_cvar_input.html'
12
                        cvar_name_prefix = 'cv_cvars.'
13
                        var_name = ''
14
            %]
15
          </td>
16
        </tr>
17
      [% END %]
5
  <div class="wrapper">
6
    <table class="tbl-horizontal">
7
      <caption>[% 'Custom variables' | $T8 %]</caption>
8
      <tbody>
9
        [% FOREACH var = SELF.cv.cvars_by_config %]
10
          <tr>
11
            <th>[% var.config.description | html %]</th>
12
            <td>[% INCLUDE 'common/render_cvar_input.html', cvar_name_prefix = 'cv_cvars.', var_name = '' %]</td>
13
          </tr>
14
        [% END %]
15
      </tbody>
18 16
    </table>
19
  </p>
17
  </div>
20 18
</div>
templates/webpages/customer_vendor/tabs/deliveries.html
1 1
[% USE T8 %]
2 2
[% USE LxERP %]
3 3
[% USE L %]
4

  
4
<!-- PENDENT: Element-Klassen neu definieren  -->
5 5
<div id="deliveries">
6
  <table>
7
    <tr>
8
      <th align="right">[% 'Shipping Address' | $T8 %]</th>
9
      <td colspan="3">
10
        [% temp = [{shipto_id = 'all', displayable_id = LxERP.t8('All')}] %]
11
        [% temp = temp.merge(SELF.shiptos) %]
12
        [%
13
          L.select_tag(
14
            'delivery_id',
15
            temp,
16
            value_key = 'shipto_id',
17
            title_key = 'displayable_id',
18
            with_empty = 1,
19
            onchange = "kivi.CustomerVendor.selectDelivery();"
20
          )
21
        %]
22
      </td>
23
    </tr>
24

  
25
    <tr>
26
      <th align="right" nowrap>[% 'From' | $T8 %]</th>
27

  
28
      <td>
29
        [%
30
          L.date_tag(
31
            'delivery_from',
32
            FORM.delivery_from,
33
            onchange => "kivi.CustomerVendor.selectDelivery(this.form.delivery_from.value, this.form.delivery_to.value);"
34
          )
35
        %]
36
      </td>
37 6

  
7
  <div class="select-item control-panel">
8
    <span class="formelement">
9
      [% temp = [{shipto_id = 'all', displayable_id = LxERP.t8('All')}] %]
10
      [% temp = temp.merge(SELF.shiptos) %]
11
      [% 'Select Deliveries' | $T8 %] [%
12
        L.select_tag(
13
          'delivery_id',
14
          temp,
15
          value_key = 'shipto_id',
16
          title_key = 'displayable_id',
17
          with_empty = 1,
18
          onchange = "kivi.CustomerVendor.selectDelivery();",
19
          class='wi-lightwide',
20
          id='delivery_id'
21
        )
22
      %]
23
    </span>
24
    <span class="formelement">
25
      [% 'From' | $T8 %] [%
26
        L.date_tag(
27
          'delivery_from',
28
          FORM.delivery_from,
29
          onchange => "kivi.CustomerVendor.selectDelivery(this.form.delivery_from.value, this.form.delivery_to.value);",
30
          class='wi-date'
31
        )
32
      %]
33
    </span>
34
    <span class="formelement">
35
      &nbsp; [% 'To (time)' | $T8 %] [%
36
        L.date_tag(
37
          'delivery_to',
38
          FORM.delivery_to,
39
          onchange => "kivi.CustomerVendor.selectDelivery(this.form.delivery_from.value, this.form.delivery_to.value);",
40
          class='wi-date'
41
        )
42
      %]
43
    </span>
44
  </div>
45
  <!-- PENDENT: ein No-Result-Feature wuerde sich hier noch gut machen -->
46
  <div class="wrapper">
47
    <div id="delivery">[% 'Please wait!' | $T8 %]</div>
48
  </div>
38 49

  
39
      <th align="right" nowrap>[% 'To (time)' | $T8 %]</th>
40

  
41
      <td>
42
        [%
43
          L.date_tag(
44
            'delivery_to',
45
            FORM.delivery_to,
46
            onchange => "kivi.CustomerVendor.selectDelivery(this.form.delivery_from.value, this.form.delivery_to.value);"
47
          )
48
        %]
49
      </td>
50
    </tr>
51

  
52
    <tr>
53
      <td colspan="4">
54
        <div id="delivery"></div>
55
      </td>
56
    </tr>
57
  </table>
58 50
</div>
51

  
52
<script type="text/javascript">
53
  $('#delivery_id option[value=all]').attr('selected','selected');
54
  kivi.CustomerVendor.selectDelivery();
55
</script>
templates/webpages/customer_vendor/tabs/price_rules.html
3 3
[% USE L %]
4 4

  
5 5
<div id="price_rules">
6
<div class="wrapper">
6 7
  <div id='price_rules_customer_report'></div>
7 8
  <div id='price_rules_vendor_report'></div>
8

  
9 9
  <script type='text/javascript'>
10 10
    $(function() {
11 11
      window.setTimeout(function(){
......
26 26
      }, 200);
27 27
    })
28 28
  </script>
29
</div>
30

  
29
</div><!-- /.wrapper -->
30
</div><!-- /#price_rules -->
templates/webpages/customer_vendor/tabs/shipto.html
3 3
[% USE L %]
4 4

  
5 5
<div id="shipto">
6
  <table width="100%" id="shipto_table">
7
    <tr>
8
      <th align="right">[% 'Shipping Address' | $T8 %]</th>
9

  
10
      <td>
11
        [% L.select_tag(
12
             'shipto.shipto_id',
13
             SELF.shiptos,
14
             default = SELF.shipto.shipto_id,
15
             value_key = 'shipto_id',
16
             title_key = 'displayable_id',
17
             with_empty = 1,
18
             empty_title = LxERP.t8('New shipto'),
19
             onchange = "kivi.CustomerVendor.selectShipto({onFormSet: function(){ shiptoMapWidget.testInputs(); kivi.reinit_widgets(); }});",
20
           )
21
        %]
22
      </td>
23
    </tr>
24

  
25
    <tr>
26
      <th align="right" nowrap>[% 'Name' | $T8 %]</th>
27

  
28
      <td>
29
        [% L.input_tag('shipto.shiptoname', SELF.shipto.shiptoname,  size = 35) %]
30
      </td>
31
    </tr>
32

  
33
    <tr>
34
      <th align="right" nowrap>[% 'Department' | $T8 %]</th>
35

  
36
      <td>
37
        [% L.input_tag('shipto.shiptodepartment_1', SELF.shipto.shiptodepartment_1,  size = 16) %]
38
        [% L.input_tag('shipto.shiptodepartment_2', SELF.shipto.shiptodepartment_2,  size = 16) %]
39
      </td>
40
    </tr>
41

  
42
    <tr>
43
      <th align="right" nowrap>[% 'Street' | $T8 %]</th>
44

  
45
      <td>
46
        [% L.input_tag('shipto.shiptostreet', SELF.shipto.shiptostreet,  size = 35) %]
47

  
48
        <span id="shipto_map"></span>
49
        <script type="text/javascript">
50
          shiptoMapWidget = new kivi.CustomerVendor.MapWidget('shipto_shipto');
51
          $(function() {
52
            shiptoMapWidget.render($('#shipto_map'));
53
          });
54
        </script>
55
      </td>
56
    </tr>
57

  
58
    <tr>
59
      <th align="right" nowrap>[% 'Zipcode' | $T8 %]/[% 'City' | $T8 %]</th>
60

  
61
      <td>
62
        [% L.input_tag('shipto.shiptozipcode', SELF.shipto.shiptozipcode,  size = 5) %]
63
        [% L.input_tag('shipto.shiptocity', SELF.shipto.shiptocity,  size = 30) %]
64
      </td>
65
    </tr>
66

  
67
    <tr>
68
      <th align="right" nowrap>[% 'Country' | $T8 %]</th>
69

  
70
      <td>
71
        [% L.input_tag('shipto.shiptocountry', SELF.shipto.shiptocountry,  size = 35) %]
72
      </td>
73
    </tr>
74

  
75
    <tr>
76
      <th align="right" nowrap>[% 'GLN' | $T8 %]</th>
77

  
78
      <td>
79
        [% L.input_tag('shipto.shiptogln', SELF.shipto.shiptogln,  size = 35) %]
80
      </td>
81
    </tr>
82

  
83
    <tr>
84
      <th align="right" nowrap>[% 'Contact' | $T8 %]</th>
85

  
86
      <td>
87
        [% L.input_tag('shipto.shiptocontact', SELF.shipto.shiptocontact,  size = 30) %]
88
      </td>
89
    </tr>
90

  
91
    <tr>
92
      <th align="right" nowrap>[% 'Phone' | $T8 %]</th>
93

  
94
      <td>
95
        [% L.input_tag('shipto.shiptophone', SELF.shipto.shiptophone,  size = 30) %]
96
      </td>
97
    </tr>
98

  
99
    <tr>
100
      <th align="right" nowrap>[% 'Fax' | $T8 %]</th>
101

  
102
      <td>
103
        [% L.input_tag('shipto.shiptofax', SELF.shipto.shiptofax,  size = 30) %]
104
      </td>
105
    </tr>
106

  
107
    <tr>
108
      <th align="right" nowrap>[% 'E-mail' | $T8 %]</th>
6
<div class="select-item control-panel">
7
  [% 'Select Shipping Address' | $T8 %]
8
  [% L.select_tag(
9
    'shipto.shipto_id',
10
    SELF.shiptos,
11
    default = SELF.shipto.shipto_id,
12
    value_key = 'shipto_id',
13
    title_key = 'displayable_id',
14
    with_empty = 1,
15
    empty_title = LxERP.t8('New shipto'),
16
    onchange = "kivi.CustomerVendor.selectShipto({onFormSet: function(){ shiptoMapWidget.testInputs(); kivi.reinit_widgets(); }});",
17
  )
18
  %]
19
</div>
109 20

  
110
      <td>
111
        [% L.input_tag('shipto.shiptoemail', SELF.shipto.shiptoemail,  size = 45) %]
112
      </td>
113
    </tr>
21
<div class="wrapper">
114 22

  
115
    [% shipto_cvars = SELF.shipto.cvars_by_config %]
23
<div class="item">
116 24

  
... Dieser Diff wurde abgeschnitten, weil er die maximale Anzahl anzuzeigender Zeilen überschreitet.

Auch abrufbar als: Unified diff