Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 99621954

Von Hans Peter Schlaepfer vor mehr als 5 Jahren hinzugefügt

  • ID 996219548d95794fcbf984085362907aa9e659bf
  • Vorgänger 1d695e20
  • Nachfolger 5b8ff438

Neues kivitendo Design Aenderungen in templates/webpages/customer_vendor/..

Unterschiede anzeigen:

templates/webpages/customer_vendor/form.html
1
[%- USE T8 %]
2
[%- USE HTML %]
3
[%- USE LxERP %]
4
[%- USE L %]
5
[%- USE Dumper %]
1
[% USE T8 %]
2
[% USE HTML %]
3
[% USE LxERP %]
4
[% USE L %]
5
[% USE Dumper %]
6 6
<h1>[% FORM.title %] [% IF SELF.cv.id %] - [% HTML.escape(SELF.cv.displayable_name) %][% END %]</h1>
7 7
[% L.hidden_tag('_cti_enabled', !!LXCONFIG.cti.dial_command) %]
8 8

  
......
14 14
  [% L.hidden_tag('callback', FORM.callback) %]
15 15
  [% L.hidden_tag('cv.id', SELF.cv.id) %]
16 16

  
17
  [%- INCLUDE 'common/flash.html' %]
17
  [% INCLUDE 'common/flash.html' %]
18 18

  
19 19
  <div class="tabwidget" id="customer_vendor_tabs">
20
    <ul>
20
    <ul class="ui-tabs">
21 21
      <li><a href="#billing">[% 'Billing Address' | $T8 %]</a></li>
22 22
      <li><a href="#bank">[% 'Bank account' | $T8 %]</a></li>
23 23
      <li><a href="#shipto">[% 'Shipping Address' | $T8 %]</a></li>
24 24
      <li><a href="#contacts">[% 'Contacts' | $T8 %]</a></li>
25 25
      [% IF ( SELF.cv.id && AUTH.assert('sales_all_edit', 1) ) %]
26 26
        <li><a href="#deliveries">[% 'Supplies' | $T8 %]</a></li>
27
[%- IF INSTANCE_CONF.get_doc_storage %]
28
      <li><a href="controller.pl?action=File/list&file_type=attachment&object_type=[% FORM.db == 'vendor' ? 'vendor' : 'customer' %]&object_id=[% SELF.cv.id %]">[% 'Attachments' | $T8 %]</a></li>
29
[%- END %]
27
        [% IF INSTANCE_CONF.get_doc_storage %]
28
        <li><a href="controller.pl?action=File/list&file_type=attachment&object_type=[% FORM.db == 'vendor' ? 'vendor' : 'customer' %]&object_id=[% SELF.cv.id %]">[% 'Attachments' | $T8 %]</a></li>
29
        [% END %]
30 30
      [% END %]
31 31
      <li><a href="#vcnotes">[% 'Notes' | $T8 %]</a></li>
32 32

  
......
69 69
  </div>
70 70
</form>
71 71

  
72
<script type="text/javascript">
73
<!--
72
<script type="text/javascript"><!--
74 73
  function submitInputButton(action)
75 74
  {
76 75
    var $hidden = $("<input type='hidden' name='action' value='CustomerVendor/" + action + "'>"),
......
87 86
    }
88 87
    return true;
89 88
  }
90
-->
91
</script>
89
--></script>
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 -%]
35
              <td>[% HTML.escape(row.transdate)   || '&nbsp;' %]</td>
36
              <td>[% HTML.escape(row.description) || '&nbsp;' %]</td>
37
              <td>[% HTML.escape(row.qty)         || '&nbsp;' %]</td>
38
              <td>[% HTML.escape(row.unit)        || '&nbsp;' %]</td>
39
              <td>[% LxERP.format_amount(row.sellprice, 2) || '&nbsp;' %]</td>
40
            </tr>
41
          [% END %]
42

  
43
        </table>
42
            [% END %]
43
          [% HTML.escape(row.ordnumber)   || '&nbsp;' %]
44
          [% IF row.oe_id %]</a>[% END %]
45
        </td>
46
        <td>[% HTML.escape(row.transdate)   || '&nbsp;' %]</td>
47
        <td>[% HTML.escape(row.description) || '&nbsp;' %]</td>
48
        <td>[% HTML.escape(row.qty)         || '&nbsp;' %]</td>
49
        <td>[% HTML.escape(row.unit)        || '&nbsp;' %]</td>
50
        <td>[% LxERP.format_amount(row.sellprice, 2) || '&nbsp;' %]</td>
51
      </tr>
52
    [% END %]
53
   </tbody>
54
   
55
  </table>
44 56

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

  
49
      </td>
50
    </tr>
51
  </table>
52 61
</div>
templates/webpages/customer_vendor/tabs/bank.html
1
[%- USE T8 %]
2
[%- USE HTML %]
3
[%- USE LxERP %]
4
[%- USE L %]
1
[% USE T8 %]
2
[% USE HTML %]
3
[% USE LxERP %]
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
1
[%- USE T8 %]
2
[%- USE HTML %]
3
[%- USE LxERP %]
4
[%- USE L %]
5
[%- USE JavaScript -%]
1
[% USE T8 %]
2
[% USE HTML %]
3
[% USE LxERP %]
4
[% USE L %]
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>
60
    </tr>
61

  
62
    <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

  
71
      <td>
72
        [% L.input_tag('cv.name', SELF.cv.name) %]
73
      </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>
74 24
    </tr>
75

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

  
26
      <th>[% 'Department' | $T8 %]</th>
79 27
      <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) %]
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>
82 31
      </td>
83 32
    </tr>
84

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

  
34
      <th>[% 'Street' | $T8 %]</th>
88 35
      <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>
172

  
173 91
    <tr>
174
      <th align="right" nowrap>
175
        [% IF SELF.cv.homepage %]
176
          <a href="[% HTML.escape(SELF.cv.homepage) %]" title="[% 'Open this Website' | $T8 %]" target="_blank">[% 'Homepage' | $T8 %]</a>
177
        [% ELSE %]
178
          [% 'Homepage' | $T8 %]
179
        [% END %]
180
      </th>
181

  
182
      <td>
183
        [% L.input_tag('cv.homepage', SELF.cv.homepage, size = 45, title = LxERP.t8('Example: http://kivitendo.de')) %]
184
      </td>
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>
185 98
    </tr>
99
  </tbody>
100
</table>
186 101

  
102
<table class="tbl-horizontal">
103
  <caption>[% IF ( SELF.is_vendor() ) %][% 'Vendor' | $T8 %][% ELSE %][% 'Customer' | $T8 %][% END %] [% 'Info & Status' | $T8 %]</caption>
104
  <colgroup> <col class="wi-small"><col class="wi-lightwide"> </colgroup>
105
  <tbody>
106
    [% IF ( INSTANCE_CONF.get_vertreter ) %]
107
      <tr>
108
        <th>[% IF SELF.is_vendor() %] [% 'Type of Vendor' | $T8 %] [% ELSE %] [% 'Type of Customer' | $T8 %] [% END %]</th>
109
        <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>
110
      </tr>
111
      <tr>
112
        <th>[% 'Representative' | $T8 %]</th>
113
        <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>
114
      </tr>
115
    [% END %]
116
    <!-- PENDENT: zweimal das gleiche Feld aber nicht wirklich angezeigt? Anschauen!!!!!! -->
117
    [% IF ( !INSTANCE_CONF.get_vertreter ) %]
118
      <tr>
119
        <th>[% IF ( SELF.is_vendor() ) %][% 'Type of Vendor' | $T8 %][% ELSE %][% 'Type of Customer' | $T8 %][% END %]</th>
120
        <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>
121
      </tr>
122
    [% END %]
187 123
    <tr>
188
      <th align="right" nowrap>[% 'Username' | $T8 %]</th>
189

  
190
      <td>
191
        [% L.input_tag('cv.username', SELF.cv.username, size = 45) %]
192
      </td>
124
      <th>[% 'Language' | $T8 %]</th>
125
      <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>
193 126
    </tr>
194

  
195 127
    <tr>
196
      <th align="right" nowrap>[% 'Password' | $T8 %]</th>
197

  
198
      <td>
199
        [% L.input_tag('cv.user_password', SELF.cv.user_password, size = 45) %]
200
      </td>
128
      <th><label for="cv_obsolete">[% 'Obsolete' | $T8 %]</label> </th>
129
      <td>[% L.checkbox_tag('cv.obsolete', checked = SELF.cv.obsolete, for_submit=1) %]</td>
201 130
    </tr>
202
  </table>
203

  
204

  
205
  <table>
206

  
207 131
    <tr>
208
      <th align="right">[% 'Credit Limit' | $T8 %]</th>
209

  
210
      <td>
211
        [% L.input_tag('cv.creditlimit_as_number', SELF.cv.creditlimit_as_number, size = 9) %]
212
      </td>
213

  
214

  
215
      <th align="right">[% 'Payment Terms' | $T8 %]</th>
132
      <th colspan="2">
133
        <span class="label above">[% 'Internal Notes' | $T8 %]</span>
134
        [% L.textarea_tag('cv.notes', SELF.cv.notes, rows=6, class='wi-small-lightwide') %]
135
    </th>
136
    </tr>
137
  </tbody>
138
</table>
216 139

  
217
      <td>
218
        [% L.select_tag('cv.payment_id', SELF.all_payment_terms, value_key = 'id', title_key = 'description', default = SELF.cv.payment_id, with_empty = 1) %]
219
      </td>
140
</div><!-- /.wrapper -->
220 141

  
142
<div class="wrapper">
221 143

  
222
      <th align="right">[% 'Discount' | $T8 %]</th>
144
<div class="col">
223 145

  
224
      <td>
225
        [% L.input_tag('cv.discount_as_percent', SELF.cv.discount_as_percent, size = 4) %]%
226
      </td>
146
<table class="tbl-horizontal">
147
  <caption>[% 'IDs & Numbers' | $T8 %]</caption>
148
  <colgroup><col class="wi-small"><col class="wi-lightwide"></colgroup>
149
  <tbody>
150
    <tr>
151
      [% IF SELF.is_vendor() %]
152
        <th>[% 'Vendor No.' | $T8 %]</th>
153
        <td>[% L.input_tag('cv.vendornumber', SELF.cv.vendornumber, class='wi-normal') %]</td>
154
      [% ELSE %]
155
        <th>[% 'Customer No.' | $T8 %]</th>
156
        <td>[% L.input_tag('cv.customernumber', SELF.cv.customernumber, class='wi-normal') %]</td>
157
      [% END %]
227 158
    </tr>
228

  
229 159
    <tr>
230
      <th align="right">[% 'Tax Number / SSN' | $T8 %]</th>
231

  
232
      <td>
233
        [% L.input_tag('cv.taxnumber', SELF.cv.taxnumber, size = 20) %]
234
      </td>
235

  
236

  
237
      <!-- 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 -->
238
      <th align="right">[% 'sales tax identification number' | $T8 %]</th>
239

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

  
244

  
245
      [%- IF ( SELF.is_vendor() ) %]
246
        <th align="right">[% 'Customer Number' | $T8 %]</th>
247
        <td>
248
          [% L.input_tag('cv.v_customer_id', SELF.cv.v_customer_id, size = 10) %]
249
        </td>
250
      [%- ELSE %]
251
        <th align="right">[% 'our vendor number at customer' | $T8 %]</th>
252
        <td>
253
          [% L.input_tag('cv.c_vendor_id', SELF.cv.c_vendor_id, size = 10) %]
254
        </td>
255
      [%- END %]
160
      <th>[% 'Tax Number / SSN' | $T8 %]</th>
161
      <td>[% L.input_tag('cv.taxnumber', SELF.cv.taxnumber, class='wi-normal') %]</td>
256 162
    </tr>
257

  
258
  [% IF ( SELF.all_currencies.size ) %]
259 163
    <tr>
260
        <th align="right">[% 'Currency' | $T8 %]</th>
261

  
262
        <td>
263
          [% L.select_tag('cv.currency_id', SELF.all_currencies, title_key = 'name', value_key = 'id', default = SELF.cv.currency_id) %]
264
        </td>
164
<!--
165
  PENDENT: Ist diese Anmerkung noch gueltig?:
166
  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
167
-->
168
      <th>[% 'sales tax identification number' | $T8 %]</th>
169
      <td>[% L.input_tag('cv.ustid', SELF.cv.ustid, class='wi-normal' ) %]</td>
265 170
    </tr>
266
  [% END %]
267

  
268 171
    <tr>
269
      [% IF ( !INSTANCE_CONF.get_vertreter ) %]
270
        <th align="right">
271
          [% IF ( SELF.is_vendor() ) %]
272
            [% 'Type of Vendor' | $T8 %]
273
          [% ELSE %]
274
            [% 'Type of Customer' | $T8 %]
275
          [% END %]
276
        </th>
277

  
278
        <td>
279
          [% L.select_tag('cv.business_id', SELF.all_business, default = SELF.cv.business_id, value_key = 'id', title_key = 'description', with_empty = 1) %]
280
        </td>
172
      [% IF ( SELF.is_vendor() ) %]
173
        <th>[% 'Customer Number' | $T8 %]</th>
174
        <td>[% L.input_tag('cv.v_customer_id', SELF.cv.v_customer_id, class='wi-normal') %]</td>
175
      [% ELSE %]
176
        <th>[% 'our vendor number at customer' | $T8 %]</th>
177
        <td>[% L.input_tag('cv.c_vendor_id', SELF.cv.c_vendor_id, class='wi-normal') %]</td>
281 178
      [% END %]
282

  
283

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

  
286
      <td>
287
        [% L.select_tag('cv.language_id', SELF.all_languages, default = SELF.cv.language_id, value_key = 'id', title_key = 'description', with_empty = 1) %]
288
      </td>
289

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

  
292
      <td>
293
        [% 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) %]
294
      </td>
295

  
296 179
    </tr>
297

  
180
<!-- </tbody> -->
181
<!-- </table> -->
182
<!--
183
<table class="tbl-horizontal">
184
  <colgroup><col class="wi-small"><col class="wi-lightwide"></colgroup>
185
  <caption>[% #'Login details' | $T8 %]</caption>
186
  <tbody>
187
-->
188
  </tbody>
189
</table>
190

  
191
<table class="tbl-horizontal">
192
  <caption>[% 'Login details' | $T8 %]</caption>
193
  <colgroup> <col class="wi-small"><col class="wi-lightwide"> </colgroup>
194
  <tbody>
195
<!--
298 196
    <tr>
299
      <td align="right">
300
        <label for="cv_obsolete">[% 'Obsolete' | $T8 %]</label>
301
      </td>
302

  
303
      <td>
304
        [% L.checkbox_tag('cv.obsolete', checked = SELF.cv.obsolete, for_submit=1) %]
305
      </td>
306

  
307

  
308
      <td align="right">
309
        <label for="cv_direct_debit">[% 'direct debit' | $T8 %]</label>
310
      </td>
311

  
312
      <td>
313
        [% L.checkbox_tag('cv.direct_debit', checked = SELF.cv.direct_debit, for_submit=1) %]
314
      </td>
315

  
316
      [% IF ( SELF.is_customer() ) %]
317
        <th align="right">[% 'Price group' | $T8 %]</th>
318

  
319
        <td>
320
          [% L.select_tag('cv.pricegroup_id', SELF.all_pricegroups, default = SELF.cv.pricegroup_id, value_key = 'id', title_key = 'pricegroup', with_empty = 1) %]
321
        </td>
322
      [% END  %]
323

  
197
      <th class="caption" colspan="2">[% 'Login details' | $T8 %]</th>
324 198
    </tr>
325

  
199
 -->
326 200
    <tr>
327
      <th align="right">[% 'Tax rate' | $T8 %]</th>
328

  
329
      <td>
330
        [% L.select_tag('cv.taxzone_id', SELF.all_taxzones, default = SELF.cv.taxzone_id, value_key = 'id', title_key = 'description') %]
331
      </td>
201
      <th>[% 'Username' | $T8 %]</th>
202
      <td>[% L.input_tag('cv.username', SELF.cv.username, class='wi-normal') %]</td>
203
    </tr>
204
    <tr>
205
      <th>[% 'Password' | $T8 %]</th>
206
      <td>[% L.input_tag('cv.user_password', SELF.cv.user_password, class='wi-normal') %]</td>
207
    </tr>
208
  </tbody>
209
</table>
332 210

  
211
</div><!-- /.col -->
333 212

  
334
      [% IF ( SELF.is_customer() && !INSTANCE_CONF.get_vertreter ) %]
335
        <th align="right">[% 'Salesman' | $T8 %]</th>
336 213

  
337
        <td>
338
          [% L.select_tag('cv.salesman_id', SELF.all_salesmen, default = SELF.cv.salesman_id, value_key = 'id', title_key = 'safe_name', with_empty = 1) %]
339
        </td>
340
      [%- END %]
341 214

  
342
      [% IF ( SELF.is_customer() ) %]
343
        <td>[% 'taxincluded checked' | $T8 %]</td>
215
<table class="tbl-horizontal">
216
  <caption>[% 'Currency, Prices & Taxes' | $T8 %]</caption>
217
  <colgroup><col class="wi-small"><col class="wi-lightwide"></colgroup>
218
  <tbody>
219
    [% IF ( SELF.all_currencies.size ) %]
220
      <tr>
221
        <th>[% 'Currency' | $T8 %]</th>
222
        <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>
223
      </tr>
224
    [% END %]
225
    [% IF ( SELF.is_customer() ) %]
226
      <tr>
227
        <th>[% 'Price group' | $T8 %]</th>
228
        <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>
229
      </tr>
230
    [% END %]
231
    <tr>
232
      <th>[% 'Tax rate' | $T8 %]</th>
233
      <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>
234
    </tr>
235
    <tr>
236
    [% IF ( SELF.is_customer() ) %]
237
      <th>[% 'taxincluded checked' | $T8 %]</th>
238
      <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>
239
    [% END %]
240
    </tr>
241
    <tr>
242
      <th>[% 'Discount' | $T8 %]</th>
243
      <td>[% L.input_tag('cv.discount_as_percent', SELF.cv.discount_as_percent, class='wi-small numeric') %]% </td>
244
    </tr>
245
    [% IF ( SELF.is_customer() ) %]
246
      <tr>
247
        <th>[%- LxERP.t8("Hourly rate") %]</th>
248
        <td>[% L.input_tag("cv.hourly_rate_as_number", SELF.cv.hourly_rate_as_number, class='wi-small numeric') %]</td>
249
      </tr>
250
    [% END %]
251
  </tbody>
252
</table>
344 253

  
345
        <td>
346
          [% 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) %]
347
        </td>
348
      [% END %]
349 254

  
255
<table class="tbl-horizontal">
256
  <caption>[% 'Conditions' | $T8 %]</caption>
257
  <colgroup><col class="wi-small"><col class="wi-lightwide"></colgroup>
258
  <tbody>
259
    <tr>
260
      <th>[% 'Credit Limit' | $T8 %]</th>
261
      <td>[% L.input_tag('cv.creditlimit_as_number', SELF.cv.creditlimit_as_number, class='wi-small numeric') %]</td>
350 262
    </tr>
351

  
352 263
    [% IF ( SELF.is_customer() ) %]
353
     <tr>
354
      <th align="right">[%- LxERP.t8("Hourly rate") %]</th>
355
      <td>[% L.input_tag("cv.hourly_rate_as_number", SELF.cv.hourly_rate_as_number) %]</td>
356
      <th align="right" valign="top" nowrap>[% 'Shoporderlock' | $T8 %]</th>
357
      <td>
358
        [% L.checkbox_tag('cv.order_lock', checked = SELF.cv.order_lock, for_submit=1) %]
359
      </td>
360
     </tr>
264
      <tr>
265
        <th><label for="cv_order_lock">[% 'Shoporderlock' | $T8 %]</label></th>
266
        <td>[% L.checkbox_tag('cv.order_lock', checked = SELF.cv.order_lock, for_submit=1) %]</td>
267
      </tr>
361 268
    [% END %]
362
  </table>
363

  
364
  <table>
365 269
    <tr>
366
      <th align="left" nowrap>[% 'Internal Notes' | $T8 %]</th>
270
      <th><label for="cv_direct_debit">[% 'direct debit' | $T8 %]</label></th>
271
      <td>[% L.checkbox_tag('cv.direct_debit', checked = SELF.cv.direct_debit, for_submit=1) %]</td>
367 272
    </tr>
368

  
369 273
    <tr>
370
      <td>
371
        [% L.textarea_tag('cv.notes', SELF.cv.notes, rows = 3 cols = 60 wrap = soft) %]
372
      </td>
274
      <td colspan="2">
275
        <span class="label above">[% 'Payment Terms' | $T8 %]</span>
276
        [% 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>
277
    </tr>
278
    <tr>
279
      <td colspan="2">
280
        <span class="label above">[% 'Delivery Terms' | $T8 %]</span>
281
        [% 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>
373 282
    </tr>
374
  </table>
283
  </tbody>
284
</table>
285

  
286

  
287
</div><!-- /.wrapper -->
375 288
</div>
templates/webpages/customer_vendor/tabs/contacts.html
1
[%- USE T8 %]
2
[%- USE HTML %]
3
[%- USE LxERP %]
4
[%- USE L %]
1
[% USE T8 %]
2
[% USE HTML %]
3
[% USE LxERP %]
4
[% USE L %]
5 5

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

  
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

  
27
    <tr>
28
      <th align="right" nowrap>[% 'Gender' | $T8 %]</th>
29

  
30
      <td>
31
        [%
32
          L.select_tag(
33
            'contact.cp_gender',
34
            [['m', LxERP.t8('male')], ['f', LxERP.t8('female')]],
35
            default = SELF.contact.cp_gender
36
          )
37
        %]
38
      </td>
39
    </tr>
40

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

  
44
      <td>
45
        [% L.input_tag('contact.cp_title', SELF.contact.cp_title, size = 40) %]
46
        [% L.select_tag('contact_cp_title_select', SELF.all_titles, with_empty = 1, onchange = '$("#contact_cp_title").val(this.value);') %]
47
      </td>
48
    </tr>
49

  
50
    <tr>
51
      <th align="right" nowrap>[% 'Department' | $T8 %]</th>
52

  
53
      <td>
54
        [% L.input_tag('contact.cp_abteilung', SELF.contact.cp_abteilung, size = 40) %]
55
        [% 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);') %]
56
      </td>
57
    </tr>
58

  
59
    <tr>
60
      <th align="right" nowrap>[% 'Function/position' | $T8 %]</th>
61

  
62
      <td>
63
        [% L.input_tag('contact.cp_position', SELF.contact.cp_position, size = 40) %]
64
      </td>
65
    </tr>
66 7

  
67
    <tr>
68
      <th align="right" nowrap>[% 'Given Name' | $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>
69 21

  
70
      <td>
71
        [% L.input_tag('contact.cp_givenname', SELF.contact.cp_givenname, size = 40) %]
72
      </td>
73
    </tr>
22
<div class="wrapper">
74 23

  
24
<table class="tbl-horizontal">
25
  <caption>[% 'Personal details' | $T8 %]</caption>
26
  <tbody>
75 27
    <tr>
76
      <th align="right" nowrap>[% 'Surname' | $T8 %]</th>
77

  
78
      <td>
79
        [% L.input_tag('contact.cp_name', SELF.contact.cp_name, size = 40) %]
80
      </td>
28
      <th>[% 'Given Name' | $T8 %]</th>
29
      <td>[% L.input_tag('contact.cp_givenname', SELF.contact.cp_givenname, class="wi-wide") %]</td>
81 30
    </tr>
82

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

  
86
      <td>
87
        [% L.input_tag('contact.cp_email', SELF.contact.cp_email, size = 40) %]
88
      </td>
32
      <th>[% 'Surname' | $T8 %]</th>
33
      <td>[% L.input_tag('contact.cp_name', SELF.contact.cp_name, class="wi-wide") %]</td>
89 34
    </tr>
90

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

  
36
      <th>[% 'Gender' | $T8 %]</th>
94 37
      <td>
95
        [% L.input_tag('contact.cp_phone1', SELF.contact.cp_phone1, size = 40) %]
38
        [% L.select_tag(
39
          'contact.cp_gender',
40
          [['m', LxERP.t8('male')], ['f', LxERP.t8('female')]],
41
          default = SELF.contact.cp_gender,
42
          class = 'wi-normal',
43
        ) %]
96 44
      </td>
97 45
    </tr>
98

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

  
102
      <td>
103
        [% L.input_tag('contact.cp_phone2', SELF.contact.cp_phone2, size = 40) %]
104
      </td>
47
      <th>[% 'Birthday' | $T8 %]</th>
48
      <td>[% L.date_tag('contact.cp_birthday', SELF.contact.cp_birthday, class='wi-date') %]</td>
105 49
    </tr>
106

  
107 50
    <tr>
108
      <th align="right" nowrap>[% 'Fax' | $T8 %]</th>
109

  
51
      <th>[% 'Title' | $T8 %]</th>
110 52
      <td>
111
        [% L.input_tag('contact.cp_fax', SELF.contact.cp_fax, size = 40) %]
53
        [% 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>
54
        [% L.input_tag('contact.cp_title', SELF.contact.cp_title, class="wi-wide addition") %]
112 55
      </td>
113 56
    </tr>
114

  
115 57
    <tr>
116
      <th align="right" nowrap>[% 'Mobile1' | $T8 %]</th>
117

  
118
      <td>
119
        [% L.input_tag('contact.cp_mobile1', SELF.contact.cp_mobile1, size = 40) %]
120
      </td>
58
      <th>[% 'Project' | $T8 %]</th>
59
      <td>[% L.input_tag('contact.cp_project', SELF.contact.cp_project, class="wi-wide") %]</td>
121 60
    </tr>
122

  
123 61
    <tr>
124
      <th align="right" nowrap>[% 'Mobile2' | $T8 %]</th>
125

  
126
      <td>
127
        [% L.input_tag('contact.cp_mobile2', SELF.contact.cp_mobile2, size = 40) %]
128
      </td>
62
      <th class="caption" colspan="2">[% 'Department & Function' | $T8 %]</th>
129 63
    </tr>
130

  
131 64
    <tr>
132
      <th align="right" nowrap>[% 'Sat. Phone' | $T8 %]</th>
133

  
65
      <th>[% 'Department' | $T8 %]</th>
134 66
      <td>
135
        [% L.input_tag('contact.cp_satphone', SELF.contact.cp_satphone, size = 40) %]
67
        [% L.select_tag(
68
          'contact_cp_abteilung_select',
69
          SELF.all_departments,
70
          default = SELF.contact.cp_abteilung,
71
          with_empty = 1,
72
          onchange = '$("#contact_cp_abteilung").val(this.value);',
73
          class='wi-wide helper'
74
        ) %]<br>
75
        [% L.input_tag('contact.cp_abteilung', SELF.contact.cp_abteilung, class="wi-wide addition") %]
136 76
      </td>
137 77
    </tr>
138

  
139 78
    <tr>
140
      <th align="right" nowrap>[% 'Sat. Fax' | $T8 %]</th>
141

  
142
      <td>
143
        [% L.input_tag('contact.cp_satfax', SELF.contact.cp_satfax, size = 40) %]
144
      </td>
79
      <th>[% 'Function/position' | $T8 %]</th>
80
      <td>[% L.input_tag('contact.cp_position', SELF.contact.cp_position, class="wi-wide") %]</td>
145 81
    </tr>
146

  
147 82
    <tr>
148
      <th align="right" nowrap>[% 'Project' | $T8 %]</th>
149

  
150
      <td>
151
        [% L.input_tag('contact.cp_project', SELF.contact.cp_project, size = 40) %]
152
      </td>
83
      <th class="caption" colspan="2">[% 'Address' | $T8 %]</th>
153 84
    </tr>
154

  
155 85
    <tr>
156
      <th align="right" nowrap>[% 'Street' | $T8 %]</th>
157

  
86
      <th>[% 'Street' | $T8 %]</th>
158 87
      <td>
159
        [% L.input_tag('contact.cp_street', SELF.contact.cp_street, size = 40) %]
88
        [% L.input_tag('contact.cp_street', SELF.contact.cp_street, class="wi-wide") %]
160 89
        <span id="contact_map"></span>
161 90
        <script type="text/javascript">
162 91
          var contactsMapWidget = new kivi.CustomerVendor.MapWidget('contact_cp_');
......
166 95
        </script>
167 96
      </td>
168 97
    </tr>
169

  
170
    <tr>
171
      <th align="right" nowrap>[% 'Zip, City' | $T8 %]</th>
172

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

  
179
    <tr>
180
      <th align="right" nowrap>[% 'Private Phone' | $T8 %]</th>
181

  
182
      <td>
183
        [% L.input_tag('contact.cp_privatphone', SELF.contact.cp_privatphone, size = 40) %]
184
      </td>
185
    </tr>
186

  
187
    <tr>
188
      <th align="right" nowrap>[% 'Private E-mail' | $T8 %]</th>
189

  
190
      <td>
191
        [% L.input_tag('contact.cp_privatemail', SELF.contact.cp_privatemail, size = 40) %]
192
      </td>
193
    </tr>
194

  
195 98
    <tr>
196
      <th align="right" nowrap>[% 'Birthday' | $T8 %]</th>
197

  
99
      <th>[% 'Zip, City' | $T8 %]</th>
198 100
      <td>
199
        [% L.date_tag('contact.cp_birthday', SELF.contact.cp_birthday) %]
101
        [% 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") %]
200 102
      </td>
201 103
    </tr>
202

  
203 104
    [% contact_cvars = SELF.contact.cvars_by_config %]
204

  
205 105
    [% IF ( contact_cvars.size ) %]
206
      <tr>
207
        <td colspan="2">
208
          <hr>
209
        </td>
210
      </tr>
211

  
106
      <!-- PENDENT: Horizontal Rule -->
212 107
      [% FOREACH var = contact_cvars %]
213 108
        <tr>
214
          <th align="right" valign="top" nowrap>[% var.config.description | html %]</th>
215

  
216
          <td valign="top">
109
          <th>[% var.config.description | html %]</th>
110
          <td>
217 111
            [% INCLUDE 'common/render_cvar_input.html'
218 112
                       cvar_name_prefix = 'contact_cvars.'
219 113
            %]
......
221 115
        </tr>
222 116
      [% END %]
223 117
    [% END %]
118
  </tbody>
119
</table>
224 120

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

  
167
<div class="buttons">
168
  [% L.button_tag('submitInputButton("delete_contact");', LxERP.t8('Delete Contact'),) %]
226 169

  
227
  [% L.button_tag('submitInputButton("delete_contact");', LxERP.t8('Delete Contact'), class = 'submit') %]
228 170
  [% IF ( !SELF.contact.cp_id ) %]
229
    <script type="text/javascript">
230
      $('#action_delete_contact').hide();
231
    </script>
171
  <script type="text/javascript">
172
    $('#action_delete_contact').hide();
173
  </script>
232 174
  [% END %]
233 175
</div>
176

  
177
</div><!-- /.cols -->
178

  
179
</div><!-- /#contacts -->
templates/webpages/customer_vendor/tabs/custom_variables.html
1
[%- USE HTML %]
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
[%- USE T8 %]
2
[%- USE LxERP %]
3
[%- USE L %]
4

  
1
[% USE T8 %]
2
[% USE LxERP %]
3
[% USE L %]
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
1
[%- USE T8 %]
2
[%- USE LxERP %]
3
[%- USE L %]
1
[% USE T8 %]
2
[% USE LxERP %]
3
[% USE L %]
4

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

  
8 9
  <script type='text/javascript'>
9 10
    $(function() {
10 11
      window.setTimeout(function(){
11
[%- IF SELF.is_customer %]
12
        kivi.CustomerVendor.inline_report('#price_rules_customer_report', 'controller.pl', { action: 'PriceRule/list', 'filter.item_type_matches[].customer': [% SELF.cv.id %], 'filter.type': 'customer', inline: 1 });
13
[%- END %]
14
[%- IF SELF.is_vendor %]
15
        kivi.CustomerVendor.inline_report('#price_rules_vendor_report', 'controller.pl', { action: 'PriceRule/list', 'filter.item_type_matches[].vendor': [% SELF.cv.id %], 'filter.type': 'vendor', inline: 1 });
16
[%- END %]
12
      [% IF SELF.is_customer %]
13
        kivi.CustomerVendor.inline_report(
14
          '#price_rules_customer_report', 
15
          'controller.pl', 
16
          { action: 'PriceRule/list', 'filter.item_type_matches[].customer': [% SELF.cv.id %], 'filter.type': 'customer', inline: 1 }
17
        );
18
      [% END %]
19
      [% IF SELF.is_vendor %]
20
        kivi.CustomerVendor.inline_report(
21
          '#price_rules_vendor_report', 
22
          'controller.pl', 
23
          { action: 'PriceRule/list', 'filter.item_type_matches[].vendor': [% SELF.cv.id %], 'filter.type': 'vendor', inline: 1 }
24
        );
25
      [% END %]
17 26
      }, 200);
18 27
    })
19 28
  </script>
20
</div>
21

  
29
</div><!-- /.wrapper -->
30
</div><!-- /#price_rules -->
templates/webpages/customer_vendor/tabs/shipto.html
1
[%- USE T8 %]
2
[%- USE LxERP %]
3
[%- USE L %]
1
[% USE T8 %]
2
[% USE LxERP %]
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>
... Dieser Diff wurde abgeschnitten, weil er die maximale Anzahl anzuzeigender Zeilen überschreitet.

Auch abrufbar als: Unified diff