Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 7ffa5ab7

Von Hans Peter Schlaepfer vor etwa 4 Jahren hinzugefügt

  • ID 7ffa5ab72600b6d1629acf528e9a08d77bc3b9b4
  • Vorgänger a2dbd385
  • Nachfolger 649e6220

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

Unterschiede anzeigen:

templates/webpages/customer_vendor/form.html
[%- SET show_deliveries = ( SELF.cv.id && ((SELF.is_customer && AUTH.assert('sales_all_edit', 1)) || (SELF.is_vendor && AUTH.assert('purchase_all_edit', 1))) ) -%]
<div class="tabwidget" id="customer_vendor_tabs">
<ul>
<ul class="ui-tabs">
<li><a href="#billing">[% 'Billing Address' | $T8 %]</a></li>
<li><a href="#bank">[% 'Bank account' | $T8 %]</a></li>
<li><a href="#shipto">[% 'Shipping Address' | $T8 %]</a></li>
templates/webpages/customer_vendor/get_delivery.html
[% USE T8 %]
[% USE HTML %]
[% USE LxERP %]
<div id="delivery">
<table width="100%">
<tr>
<td>
<table width="100%">
<tr class="listheading">
<th class="listheading">[% 'Shipping Address' | $T8 %]</th>
<th class="listheading">[% 'Invoice' | $T8 %]</th>
<th class="listheading">[% 'Order' | $T8 %]</th>
<th class="listheading">[% 'Invdate' | $T8 %]</th>
<th class="listheading">[% 'Description' | $T8 %]</th>
<th class="listheading">[% 'Qty' | $T8 %]</th>
<th class="listheading">[% 'Unit' | $T8 %]</th>
[% IF ( SELF.is_customer() ) %]
<th class="listheading">[% 'Sell Price' | $T8 %]</th>
[% ELSE %]
<th class="listheading">[% 'Last Cost' | $T8 %]</th>
[%- END %]
</tr>
<div id="delivery">
[% FOREACH row = SELF.delivery %]
[% row.script = SELF.is_vendor() ? ( row.invoice ? 'ir' : 'ap' ) : ( row.invoice ? 'is' : 'ar' ) %]
<tr class="listrow[% loop.count % 2 %]">
<td>[% HTML.escape(row.shiptoname) UNLESS loop.prev.shiptoname == row.shiptoname %]&nbsp;</td>
<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>
<table>
<thead>
<tr>
<th>[% 'Shipping Address' | $T8 %]</th>
<th>[% 'Invoice' | $T8 %]</th>
<th>[% 'Order' | $T8 %]</th>
<th>[% 'Invdate' | $T8 %]</th>
<th>[% 'Description' | $T8 %]</th>
<th>[% 'Qty' | $T8 %]</th>
<th>[% 'Unit' | $T8 %]</th>
[% IF ( SELF.is_customer() ) %]
<th>[% 'Sell Price' | $T8 %]</th>
[% ELSE %]
<th>[% 'Last Cost' | $T8 %]</th>
[%- END %]
</tr>
</thead>
<tbody>
[% FOREACH row = SELF.delivery %]
[% row.script = SELF.is_vendor() ? ( row.invoice ? 'ir' : 'ap' ) : ( row.invoice ? 'is' : 'ar' ) %]
<tr>
<td>[% HTML.escape(row.shiptoname) UNLESS loop.prev.shiptoname == row.shiptoname %]&nbsp;</td>
<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>
<td>[% IF row.oe_id %]
[%- IF INSTANCE_CONF.get_feature_experimental_order -%]
<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>
<a href='controller.pl?action=Order/edit&type=[% IF SELF.is_customer %]sales_order[% ELSE %]purchase_order[% END %]&id=[% HTML.escape(row.oe_id) %]'>
[%- ELSE -%]
<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>
<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 -%]
[% END %]
[% HTML.escape(row.ordnumber) || '&nbsp;' %]
[% IF row.oe_id %]</a>[% END %]
</td>
<td>[% HTML.escape(row.transdate) || '&nbsp;' %]</td>
<td>[% HTML.escape(row.description) || '&nbsp;' %]</td>
<td>[% HTML.escape(row.qty) || '&nbsp;' %]</td>
......
<td>[% LxERP.format_amount(row.sellprice, 2) || '&nbsp;' %]</td>
</tr>
[% END %]
</tbody>
</table>
......
<p>[% 'This list is capped at 15 items to keep it fast. If you need a full list, please use reports.' | $T8 %]</p>
[% END %]
</td>
</tr>
</table>
</div>
templates/webpages/customer_vendor/tabs/bank.html
[% USE L %]
<div id="bank">
<table>
<tr>
<th align="right">[% 'Owner of account' | $T8 %]</th>
<td>
[% L.input_tag('cv.depositor', SELF.cv.depositor, size = 20) %]
</td>
[%- IF ( SELF.is_customer ) %]
<th align="right">[% 'Mandator ID' | $T8 %]</th>
<td>
[% L.input_tag('cv.mandator_id', SELF.cv.mandator_id, size = 20) %]
</td>
<th align="right">[% 'Mandate Date of Signature' | $T8 %]</th>
<td>
[% L.date_tag('cv.mandate_date_of_signature', SELF.cv.mandate_date_of_signature) %]
</td>
[%- END %]
</tr>
<tr>
<th align="right">[% 'IBAN' | $T8 %]</th>
<td>
[% L.input_tag('cv.iban', SELF.cv.iban, size = 34) %]
</td>
<th align="right">[% 'BIC' | $T8 %]</th>
<td>
[% L.input_tag('cv.bic', SELF.cv.bic, size = 20) %]
</td>
<th align="right">[% 'Bank' | $T8 %]</th>
<td>
[% L.input_tag('cv.bank', SELF.cv.bank, size = 20) %]
</td>
</tr>
<tr>
<th align="right">[% 'Account Number' | $T8 %]</th>
<td>
[% L.input_tag('cv.account_number', SELF.cv.account_number, size = 20) %]
</td>
<th align="right">[% 'Bank Code Number' | $T8 %]</th>
<td>
[% L.input_tag('cv.bank_code', SELF.cv.bank_code, size = 20) %]
</td>
</tr>
</table>
<div class="wrapper">
<table class="tbl-horizontal">
<caption> [% 'Bank Account' | $T8 %] </caption>
<tbody>
<tr>
<th>[% 'Owner of account' | $T8 %]</th>
<td>[% L.input_tag('cv.depositor', SELF.cv.depositor, class="wi-wide") %]</td>
</tr>
<tr>
<th>[% 'IBAN' | $T8 %]</th>
<td>[% L.input_tag('cv.iban', SELF.cv.iban, class="wi-wide") %]</td>
</tr>
<tr>
<th>[% 'Account Number' | $T8 %]</th>
<td>[% L.input_tag('cv.account_number', SELF.cv.account_number, class="wi-wide") %]</td>
</tr>
</tbody>
</table>
<table class="tbl-horizontal">
<caption> [% 'Bank' | $T8 %] </caption>
<tbody>
<tr>
<th>[% 'Bank' | $T8 %]</th>
<td>[% L.input_tag('cv.bank', SELF.cv.bank, class="wi-normal") %]</td>
</tr>
<tr>
<th>[% 'BIC' | $T8 %]</th>
<td>[% L.input_tag('cv.bic', SELF.cv.bic, class="wi-normal") %]</td>
</tr>
<tr>
<th>[% 'Bank Code Number' | $T8 %]</th>
<td>[% L.input_tag('cv.bank_code', SELF.cv.bank_code, class="wi-normal") %]</td>
</tr>
</tbody>
</table>
[% IF ( SELF.is_customer ) %]
<table class="tbl-horizontal">
<caption> [% 'Mandator' | $T8 %] </caption>
<tbody>
<tr>
<th>[% 'Mandator ID' | $T8 %]</th>
<td>[% L.input_tag('cv.mandator_id', SELF.cv.mandator_id, class="wi-normal") %]</td>
</tr>
<tr>
<th>[% 'Mandate Date of Signature' | $T8 %]</th>
<td>[% L.date_tag('cv.mandate_date_of_signature', SELF.cv.mandate_date_of_signature, class="wi-date") %]</td>
</tr>
</tbody>
</table>
[% END %]
</div>
</div>
templates/webpages/customer_vendor/tabs/billing.html
[% USE JavaScript %]
<div id="billing">
<table width="100%">
<tr height="5"></tr>
<div class="wrapper">
[% IF ( INSTANCE_CONF.get_vertreter ) %]
<tr>
<th align="right">
[% IF SELF.is_vendor() %]
[% 'Type of Vendor' | $T8 %]
[% ELSE %]
[% 'Type of Customer' | $T8 %]
[% END %]
</th>
<td>
[% L.select_tag('cv.business_id', SELF.all_business, value_key = 'id', title_key = 'description', default = SELF.cv.business_id, with_empty = 1) %]
</td>
</tr>
<tr>
<th align="right">
[% 'Representative' | $T8 %]
</th>
<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) %]
</td>
</tr>
[%- END %]
[% IF SELF.cv.name %]
<h2 class="record-title" title="[% IF SELF.is_vendor() %][% 'Vendor Name' | $T8 %][% ELSE %][% 'Customer Name' | $T8 %][% END %]">
[% SELF.cv.name %] <small>[% IF SELF.cv.city; IF SELF.cv.name !=""; ", "; END ; SELF.cv.city ; END; %]</small>
</h2>
[% END %]
<table class="tbl-horizontal">
<caption>[% 'Name and Address' | $T8 %]</caption>
<colgroup><col class="wi-small"><col class="wi-lightwide"></colgroup>
<tbody>
<tr>
[% IF SELF.is_vendor() %]
<th align="right" nowrap>[% 'Vendor Number' | $T8 %]</th>
<td>
[% L.input_tag('cv.vendornumber', SELF.cv.vendornumber) %]
</td>
[%- ELSE %]
<th align="right" nowrap>[% 'Customer Number' | $T8 %]</th>
<td>
[% L.input_tag('cv.customernumber', SELF.cv.customernumber) %]
</td>
[%- END %]
<th>[% IF SELF.is_vendor() %] [% 'Vendor Name' | $T8 %] [% ELSE %] [% 'Customer Name' | $T8 %] [% END %]</th>
<td>[% L.input_tag('cv.name', SELF.cv.name, type='text', class='wi-lightwide') %]
<label for="cv_natural_person">[% 'natural person' | $T8 %]</label>
[% L.checkbox_tag('cv.natural_person', checked = SELF.cv.natural_person, for_submit=1) %]</td>
</tr>
<tr>
<th align="right" nowrap>[% 'Greeting' | $T8 %]</th>
<th>[% 'Department' | $T8 %]</th>
<td>
[%- IF INSTANCE_CONF.get_vc_greetings_use_textfield -%]
[% L.input_tag('cv.greeting', SELF.cv.greeting) %]
[% L.select_tag('cv_greeting_select', SELF.all_greetings, default = SELF.cv.greeting, value_key = 'description', title_key = 'description', with_empty = 1, onchange = '$("#cv_greeting").val(this.value);') %]
[%- ELSE -%]
[% L.select_tag('cv.greeting', SELF.all_greetings, default = SELF.cv.greeting, value_key = 'description', title_key = 'description', with_empty = 1) %]
[%- END -%]
[% L.input_tag('cv.department_1', SELF.cv.department_1, class='wi-lightwide') %]<br>
[% L.input_tag('cv.department_2', SELF.cv.department_2, class='wi-lightwide addition') %]
<br>
</td>
</tr>
<tr>
<th align="right" nowrap>
[% IF SELF.is_vendor() %]
[% 'Vendor Name' | $T8 %]
[%- ELSE %]
[% 'Customer Name' | $T8 %]
[%- END %]
</th>
<td>
[% L.input_tag('cv.name', SELF.cv.name) %]
<label for="cv_natural_person">[% 'natural person' | $T8 %]</label>
[% L.checkbox_tag('cv.natural_person', checked = SELF.cv.natural_person, for_submit=1) %]
</td>
</tr>
<tr>
<th align="right" nowrap>[% 'Department' | $T8 %]</th>
<td>
[% L.input_tag('cv.department_1', SELF.cv.department_1, size = 16) %]
[% L.input_tag('cv.department_2', SELF.cv.department_2, size = 16) %]
</td>
</tr>
<tr>
<th align="right" nowrap>[% 'Street' | $T8 %]</th>
<th>[% 'Street' | $T8 %]</th>
<td>
[% L.input_tag('cv.street', SELF.cv.street, size = 35) %]
<span id="billing_map"></span>
[% L.input_tag('cv.street', SELF.cv.street, class='wi-lightwide') %]<button id="billing_map" type="button" class="icon"></button>
<script type="text/javascript">
billingMapWidget = new kivi.CustomerVendor.MapWidget('cv_', '[% JavaScript.escape(SELF.home_address_for_google_maps) %]');
$(function() {
......
</script>
</td>
</tr>
<tr>
<th align="right" nowrap>[% 'Zipcode' | $T8 %]/[% 'City' | $T8 %]</th>
<td>
[% L.input_tag('cv.zipcode', SELF.cv.zipcode, size = 5) %]
[% L.input_tag('cv.city', SELF.cv.city, size = 30) %]
</td>
<th>[% 'Zipcode' | $T8 %]/[% 'City' | $T8 %]</th>
<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>
</tr>
<tr>
<th align="right" nowrap>[% 'Country' | $T8 %]</th>
<td>
[% L.input_tag('cv.country', SELF.cv.country, size = 30) %]
</td>
<th>[% 'Country' | $T8 %]</th>
<td>[% L.input_tag('cv.country', SELF.cv.country, class='wi-lightwide') %]</td>
</tr>
<tr>
<th align="right" nowrap>[% 'GLN' | $T8 %]</th>
<td>
[% L.input_tag('cv.gln', SELF.cv.gln, size = 30) %]
</td>
<th>[% 'GLN' | $T8 %]</th>
<td>[% L.input_tag('cv.gln', SELF.cv.gln, class='wi-lightwide') %]</td>
</tr>
<tr>
<th align="right" nowrap>[% 'Contact' | $T8 %]</th>
<th>[% 'Greeting' | $T8 %]</th>
<td>
[% L.input_tag('cv.contact', SELF.cv.contact, size = 28) %]
</td>
[% IF INSTANCE_CONF.get_vc_greetings_use_textfield %]
[% L.input_tag('cv.greeting', SELF.cv.greeting, class='wi-lightwide') %]<br>
[% L.select_tag('cv_greeting_select', SELF.all_greetings, default = SELF.cv.greeting, value_key = 'description', title_key = 'description', with_empty = 1, onchange = '$("#cv_greeting").val(this.value);', class='wi-lightwide addition') %]
[% ELSE %]
[% L.select_tag('cv.greeting', SELF.all_greetings, default = SELF.cv.greeting, value_key = 'description', title_key = 'description', with_empty = 1, class='wi-lightwide') %]
[% END %]
</tr>
</tbody>
</table>
<table class="tbl-horizontal">
<caption>[% 'Communication' | $T8 %]</caption>
<colgroup><col class="wi-small"><col class="wi-lightwide"></colgroup>
<tbody>
<tr>
<th align="right" nowrap>[% 'Phone' | $T8 %]</th>
<td>
[% L.input_tag('cv.phone', SELF.cv.phone, size = 30) %]
</td>
<th>[% 'Contact' | $T8 %]</th>
<td>[% L.input_tag('cv.contact', SELF.cv.contact, class='wi-lightwide') %]</td>
</tr>
<tr>
<th align="right" nowrap>[% 'Fax' | $T8 %]</th>
<td>
[% L.input_tag('cv.fax', SELF.cv.fax, size = 30) %]
</td>
<th>[% 'Phone' | $T8 %]</th>
<td>[% L.input_tag('cv.phone', SELF.cv.phone, class='wi-lightwide') %]</td>
</tr>
<tr>
<th align="right" nowrap>[% 'E-mail' | $T8 %]</th>
<td>
[% L.input_tag('cv.email', SELF.cv.email, size = 45) %]
</td>
<th>[% 'Fax' | $T8 %]</th>
<td>[% L.input_tag('cv.fax', SELF.cv.fax, class='wi-lightwide') %]</td>
</tr>
<tr>
<th align="right">[% 'Cc E-mail' | $T8 %]</th>
<td>
[% L.input_tag('cv.cc', SELF.cv.cc, size = 45) %]
</td>
<th>[% IF SELF.cv.email %]<a href="mailto:[% SELF.cv.email %]">[% END %][% 'E-mail' | $T8 %][% IF SELF.cv.email %]</a>[% END %]</th>
<td>[% L.input_tag('cv.email', SELF.cv.email, class='wi-lightwide') %]</td>
</tr>
<tr>
<th align="right">[% 'Bcc E-mail' | $T8 %]</th>
<td>
[% L.input_tag('cv.bcc', SELF.cv.bcc, size = 45) %]
</td>
<th>[% IF SELF.cv.cc %]<a href="mailto:[% SELF.cv.cc %]">[% END %][% 'Cc E-mail' | $T8 %][% IF SELF.cv.cc %]</a>[% END %]</th>
<td>[% L.input_tag('cv.cc', SELF.cv.cc, class='wi-lightwide') %]</td>
</tr>
<tr>
<th>[% IF SELF.cv.bcc %]<a href="mailto:[% SELF.cv.bcc %]">[% END %][% 'Bcc E-mail' | $T8 %][% IF SELF.cv.bcc %]</a>[% END %]</th>
<td>[% L.input_tag('cv.bcc', SELF.cv.bcc, class='wi-lightwide') %]</td>
</tr>
<tr><!-- PENDENT: Funktion der Link-Erzeugung verbessern, z.B. falls z.B. Schema (http:// oder https://) schon angegeben -->
<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>
<td>[% L.input_tag('cv.homepage', SELF.cv.homepage, class='wi-lightwide', title = LxERP.t8('Example: http://kivitendo.de')) %]</td>
</tr>
[% IF ( SELF.is_customer() ) %]
<tr>
<th align="right">[% 'Email of the invoice recipient' | $T8 %]</th>
<td>[% L.input_tag('cv.invoice_mail', SELF.cv.invoice_mail, size = 45) %]</td>
<th>[% 'Email of the invoice recipient' | $T8 %]</th>
<td>[% L.input_tag('cv.invoice_mail', SELF.cv.invoice_mail, class='wi-lightwide') %]</td>
</tr>
<tr>
<th align="right">[% 'Email of the delivery order recipient' | $T8 %]</th>
<td>[% L.input_tag('cv.delivery_order_mail', SELF.cv.delivery_order_mail, size = 45) %]</td>
<th>[% 'Email of the delivery order recipient' | $T8 %]</th>
<td>[% L.input_tag('cv.delivery_order_mail', SELF.cv.delivery_order_mail, class='wi-lightwide') %]</td>
</tr>
[% END %]
[% IF ( SELF.is_customer() ) %]
<tr>
<th align="right" nowrap>
[% IF SELF.cv.homepage %]
<a href="[% HTML.escape(SELF.cv.homepage) %]" title="[% 'Open this Website' | $T8 %]" target="_blank">[% 'Homepage' | $T8 %]</a>
[% ELSE %]
[% 'Homepage' | $T8 %]
[% END %]
</th>
<td>
[% L.input_tag('cv.homepage', SELF.cv.homepage, size = 45, title = LxERP.t8('Example: http://kivitendo.de')) %]
</td>
<th>[% 'Origin of personal data' | $T8 %]</th>
<td>[% L.textarea_tag('cv.contact_origin', SELF.cv.contact_origin, rows=6, class='wi-small-lightwide') %]</td>
</tr>
[% END %]
[% IF ( SELF.is_customer() ) %]
<tr>
<th align="right" nowrap>[% 'Username' | $T8 %]</th>
<td>
[% L.input_tag('cv.username', SELF.cv.username, size = 45) %]
</td>
<th>[% 'Commercial court' | $T8 %]</th>
<td>[% L.input_tag('cv.commercial_court', SELF.cv.commercial_court, class='wi-lightwide') %] </td>
</tr>
[% END %]
<tr>
<th align="right" nowrap>[% 'Password' | $T8 %]</th>
</tbody>
</table>
<td>
[% L.input_tag('cv.user_password', SELF.cv.user_password, size = 45) %]
</td>
<table class="tbl-horizontal">
<caption>[% IF ( SELF.is_vendor() ) %][% 'Vendor' | $T8 %][% ELSE %][% 'Customer' | $T8 %][% END %] [% 'Info & Status' | $T8 %]</caption>
<colgroup> <col class="wi-small"><col class="wi-lightwide"> </colgroup>
<tbody>
[% IF ( INSTANCE_CONF.get_vertreter ) %]
<tr>
<th>[% IF SELF.is_vendor() %] [% 'Type of Vendor' | $T8 %] [% ELSE %] [% 'Type of Customer' | $T8 %] [% END %]</th>
<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>
</tr>
<tr>
<th>[% 'Representative' | $T8 %]</th>
<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>
</tr>
[% END %]
<!-- PENDENT: zweimal das gleiche Feld aber nicht wirklich angezeigt? Anschauen!!!!!! -->
[% IF ( !INSTANCE_CONF.get_vertreter ) %]
<tr>
<th>[% IF ( SELF.is_vendor() ) %][% 'Type of Vendor' | $T8 %][% ELSE %][% 'Type of Customer' | $T8 %][% END %]</th>
<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>
</tr>
[% END %]
<tr>
<th>[% 'Language' | $T8 %]</th>
<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>
</tr>
</table>
<table>
<tr>
<th align="right">[% 'Credit Limit' | $T8 %]</th>
<td>
[% L.input_tag('cv.creditlimit_as_number', SELF.cv.creditlimit_as_number, size = 9) %]
</td>
<th align="right">[% 'Payment Terms' | $T8 %]</th>
<td>
[% L.select_tag('cv.payment_id', SELF.all_payment_terms, value_key = 'id', title_key = 'description', default = SELF.cv.payment_id, with_empty = 1) %]
</td>
<th align="right">[% 'Discount' | $T8 %]</th>
<td>
[% L.input_tag('cv.discount_as_percent', SELF.cv.discount_as_percent, size = 4) %]%
</td>
<th><label for="cv_obsolete">[% 'Obsolete' | $T8 %]</label> </th>
<td>[% L.checkbox_tag('cv.obsolete', checked = SELF.cv.obsolete, for_submit=1) %]</td>
</tr>
<tr>
[% IF ( SELF.all_currencies.size ) %]
<th align="right">[% 'Currency' | $T8 %]</th>
<td>
[% L.select_tag('cv.currency_id', SELF.all_currencies, title_key = 'name', value_key = 'id', default = SELF.cv.currency_id) %]
</td>
[% END %]
<th colspan="2">
<span class="label above">[% 'Internal Notes' | $T8 %]</span>
[% L.textarea_tag('cv.notes', SELF.cv.notes, rows=6, class='wi-small-lightwide') %]
</th>
</tr>
</tbody>
</table>
<th align="right">[% 'Tax Number / SSN' | $T8 %]</th>
<td>
[% L.input_tag('cv.taxnumber', SELF.cv.taxnumber, size = 20) %]
</td>
</div><!-- /.wrapper -->
<div class="wrapper">
<!-- 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 -->
<th align="right">[% 'sales tax identification number' | $T8 %]</th>
<div class="col">
<td>
[% L.input_tag('cv.ustid', SELF.cv.ustid, size = 20 ) %]
</td>
<table class="tbl-horizontal">
<caption>[% 'IDs & Numbers' | $T8 %]</caption>
<colgroup><col class="wi-small"><col class="wi-lightwide"></colgroup>
<tbody>
<tr>
[% IF SELF.is_vendor() %]
<th>[% 'Vendor No.' | $T8 %]</th>
<td>[% L.input_tag('cv.vendornumber', SELF.cv.vendornumber, class='wi-normal') %]</td>
[% ELSE %]
<th>[% 'Customer No.' | $T8 %]</th>
<td>[% L.input_tag('cv.customernumber', SELF.cv.customernumber, class='wi-normal') %]</td>
[% END %]
</tr>
<tr>
[% IF ( SELF.is_customer() ) %]
<th align="right">[% 'Commercial court' | $T8 %]</th>
<td>
[% L.input_tag('cv.commercial_court', SELF.cv.commercial_court, size = 20) %]
</td>
<th align="right">[% 'our vendor number at customer' | $T8 %]</th>
<td>
[% L.input_tag('cv.c_vendor_id', SELF.cv.c_vendor_id, size = 20) %]
</td>
<th align="right">[% 'Our routing id at customer' | $T8 %]</th>
<td>
[% L.input_tag('cv.c_vendor_routing_id', SELF.cv.c_vendor_routing_id, size = 20) %]
</td>
[%- ELSE %]
<th align="right">[% 'Customer Number' | $T8 %]</th>
<td>
[% L.input_tag('cv.v_customer_id', SELF.cv.v_customer_id, size = 20) %]
</td>
[%- END %]
</tr>
<tr>
[% IF ( !INSTANCE_CONF.get_vertreter ) %]
<th align="right">
[% IF ( SELF.is_vendor() ) %]
[% 'Type of Vendor' | $T8 %]
[% ELSE %]
[% 'Type of Customer' | $T8 %]
[% END %]
</th>
<td>
[% L.select_tag('cv.business_id', SELF.all_business, default = SELF.cv.business_id, value_key = 'id', title_key = 'description', with_empty = 1) %]
</td>
<th>[% 'Tax Number / SSN' | $T8 %]</th>
<td>[% L.input_tag('cv.taxnumber', SELF.cv.taxnumber, class='wi-normal') %]</td>
</tr>
<tr>
<!--
PENDENT: Ist diese Anmerkung noch gueltig?:
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
-->
<th>[% 'sales tax identification number' | $T8 %]</th>
<td>[% L.input_tag('cv.ustid', SELF.cv.ustid, class='wi-normal' ) %]</td>
</tr>
<tr>
[% IF ( SELF.is_vendor() ) %]
<th>[% 'Customer Number' | $T8 %]</th>
<td>[% L.input_tag('cv.v_customer_id', SELF.cv.v_customer_id, class='wi-normal') %]</td>
[% ELSE %]
<th>[% 'our vendor number at customer' | $T8 %]</th>
<td>[% L.input_tag('cv.c_vendor_id', SELF.cv.c_vendor_id, class='wi-normal') %]</td>
<th>[% 'Our routing id at customer' | $T8 %]</th>
<td>[% L.input_tag('cv.c_vendor_routing_id', SELF.cv.c_vendor_routing_id, size = 20) %]</td>
[% END %]
<th align="right">[% 'Language' | $T8 %]</th>
<td>
[% L.select_tag('cv.language_id', SELF.all_languages, default = SELF.cv.language_id, value_key = 'id', title_key = 'description', with_empty = 1) %]
</td>
<th align="right">[% 'Delivery Terms' | $T8 %]</th>
<td>
[% 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) %]
</td>
</tr>
<!-- </tbody> -->
<!-- </table> -->
<!--
<table class="tbl-horizontal">
<colgroup><col class="wi-small"><col class="wi-lightwide"></colgroup>
<caption>[% #'Login details' | $T8 %]</caption>
<tbody>
-->
</tbody>
</table>
<table class="tbl-horizontal">
<caption>[% 'Login details' | $T8 %]</caption>
<colgroup> <col class="wi-small"><col class="wi-lightwide"> </colgroup>
<tbody>
<!--
<tr>
<td align="right">
<label for="cv_obsolete">[% 'Obsolete' | $T8 %]</label>
</td>
<td>
[% L.checkbox_tag('cv.obsolete', checked = SELF.cv.obsolete, for_submit=1) %]
</td>
<td align="right">
<label for="cv_direct_debit">[% 'direct debit' | $T8 %]</label>
</td>
<td>
[% L.checkbox_tag('cv.direct_debit', checked = SELF.cv.direct_debit, for_submit=1) %]
</td>
[% IF ( SELF.is_customer() ) %]
<th align="right">[% 'Price group' | $T8 %]</th>
<td>
[% L.select_tag('cv.pricegroup_id', SELF.all_pricegroups, default = SELF.cv.pricegroup_id, value_key = 'id', title_key = 'pricegroup', with_empty = 1) %]
</td>
[% END %]
<th class="caption" colspan="2">[% 'Login details' | $T8 %]</th>
</tr>
-->
<tr>
<th align="right">[% 'Tax rate' | $T8 %]</th>
<td>
[% L.select_tag('cv.taxzone_id', SELF.all_taxzones, default = SELF.cv.taxzone_id, value_key = 'id', title_key = 'description') %]
</td>
[% IF ( SELF.is_customer() && !INSTANCE_CONF.get_vertreter ) %]
<th align="right">[% 'Salesman' | $T8 %]</th>
<td>
[% L.select_tag('cv.salesman_id', SELF.all_salesmen, default = SELF.cv.salesman_id, value_key = 'id', title_key = 'safe_name', with_empty = 1) %]
</td>
[%- END %]
<th>[% 'Username' | $T8 %]</th>
<td>[% L.input_tag('cv.username', SELF.cv.username, class='wi-normal') %]</td>
</tr>
<tr>
<th>[% 'Password' | $T8 %]</th>
<td>[% L.input_tag('cv.user_password', SELF.cv.user_password, class='wi-normal') %]</td>
</tr>
</tbody>
</table>
[% IF ( SELF.is_customer() ) %]
<td>[% 'taxincluded checked' | $T8 %]</td>
</div><!-- /.col -->
<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) %]
</td>
[% END %]
</tr>
<table class="tbl-horizontal">
<caption>[% 'Currency, Prices & Taxes' | $T8 %]</caption>
<colgroup><col class="wi-small"><col class="wi-lightwide"></colgroup>
<tbody>
[% IF ( SELF.all_currencies.size ) %]
<tr>
<th>[% 'Currency' | $T8 %]</th>
<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>
</tr>
[% END %]
[% IF ( SELF.is_customer() ) %]
<tr>
<th align="right">[%- LxERP.t8("Hourly rate") %]</th>
<td>[% L.input_tag("cv.hourly_rate_as_number", SELF.cv.hourly_rate_as_number) %]</td>
<th align="right" valign="top" nowrap>[% 'Shoporderlock' | $T8 %]</th>
<td>
[% L.checkbox_tag('cv.order_lock', checked = SELF.cv.order_lock, for_submit=1) %]
</td>
<th align="right">[% LxERP.t8("Create sales invoices with Factur-X/ZUGFeRD data") %]</th>
<td>[% L.select_tag("cv.create_zugferd_invoices", SELF.zugferd_settings, default=SELF.cv.create_zugferd_invoices) %]</td>
</tr>
<tr>
<th>[% 'Price group' | $T8 %]</th>
<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>
</tr>
[% END %]
</table>
<table>
<tr>
<th align="left" nowrap>[% 'Internal Notes' | $T8 %]</th>
<th>[% 'Tax rate' | $T8 %]</th>
<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>
</tr>
<tr>
[% IF ( SELF.is_customer() ) %]
<th align="left">[% 'Origin of personal data' | $T8 %]</th>
<th>[% 'taxincluded checked' | $T8 %]</th>
<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>
[% END %]
</tr>
<tr>
<td>
[% L.textarea_tag('cv.notes', SELF.cv.notes, rows = 3 cols = 60 wrap = soft) %]
</td>
<th>[% 'Discount' | $T8 %]</th>
<td>[% L.input_tag('cv.discount_as_percent', SELF.cv.discount_as_percent, class='wi-small numeric') %]% </td>
</tr>
[% IF ( SELF.is_customer() ) %]
<td>
[% L.textarea_tag('cv.contact_origin', SELF.cv.contact_origin, rows = 3 cols = 60 wrap = soft) %]
</td>
<tr>
<th>[% LxERP.t8("Hourly rate") %]</th>
<td>[% L.input_tag("cv.hourly_rate_as_number", SELF.cv.hourly_rate_as_number, class='wi-small numeric') %]</td>
<tr>
<th>[% LxERP.t8("Create sales invoices with Factur-X/ZUGFeRD data") %]</th>
<td>[% L.select_tag("cv.create_zugferd_invoices", SELF.zugferd_settings, default=SELF.cv.create_zugferd_invoices) %]</td>
</tr>
[% END %]
</tbody>
</table>
<table class="tbl-horizontal">
<caption>[% 'Conditions' | $T8 %]</caption>
<colgroup><col class="wi-small"><col class="wi-lightwide"></colgroup>
<tbody>
<tr>
<th>[% 'Credit Limit' | $T8 %]</th>
<td>[% L.input_tag('cv.creditlimit_as_number', SELF.cv.creditlimit_as_number, class='wi-small numeric') %]</td>
</tr>
[% IF ( SELF.is_customer() ) %]
<tr>
<th><label for="cv_order_lock">[% 'Shoporderlock' | $T8 %]</label></th>
<td>[% L.checkbox_tag('cv.order_lock', checked = SELF.cv.order_lock, for_submit=1) %]</td>
</tr>
[% END %]
<tr>
<th><label for="cv_direct_debit">[% 'direct debit' | $T8 %]</label></th>
<td>[% L.checkbox_tag('cv.direct_debit', checked = SELF.cv.direct_debit, for_submit=1) %]</td>
</tr>
</table>
<tr>
<td colspan="2">
<span class="label above">[% 'Payment Terms' | $T8 %]</span>
[% 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>
</tr>
<tr>
<td colspan="2">
<span class="label above">[% 'Delivery Terms' | $T8 %]</span>
[% 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>
</tr>
</tbody>
</table>
</div><!-- /.wrapper -->
</div>
templates/webpages/customer_vendor/tabs/contacts.html
[% USE L %]
<div id="contacts">
<table>
<tr>
<th align="right">[% 'Contacts' | $T8 %]</th>
<td>
[%
L.select_tag(
'contact.cp_id',
SELF.contacts,
default = SELF.contact.cp_id,
with_empty = 1,
empty_title = LxERP.t8('New contact'),
value_key = 'cp_id',
title_key = 'full_name',
onchange = "kivi.CustomerVendor.selectContact({onFormSet: function(){ contactsMapWidget.testInputs(); kivi.reinit_widgets(); }});",
)
%]
</td>
</tr>
<tr>
<th align="right" nowrap>[% 'Main Contact Person' | $T8 %]</th>
<td>[% L.yes_no_tag('contact.cp_main', SELF.contact.cp_main) %]</td>
</tr>
<tr>
<th align="right" nowrap>[% 'Gender' | $T8 %]</th>
<td>
[%
L.select_tag(
'contact.cp_gender',
[['m', LxERP.t8('male')], ['f', LxERP.t8('female')]],
default = SELF.contact.cp_gender
)
%]
</td>
</tr>
<tr>
<th align="right" nowrap>[% 'Title' | $T8 %]</th>
<td>
[%- IF INSTANCE_CONF.get_contact_titles_use_textfield -%]
[% L.input_tag('contact.cp_title', SELF.contact.cp_title, size = 40) %]
[% L.select_tag('contact_cp_title_select', SELF.all_contact_titles, default = SELF.contact.cp_title, value_key = 'description', title_key = 'description', with_empty = 1, onchange = '$("#contact_cp_title").val(this.value);') %]
[%- ELSE -%]
[% L.select_tag('contact.cp_title', SELF.all_contact_titles, default = SELF.contact.cp_title, value_key = 'description', title_key = 'description', with_empty = 1) %]
[%- END -%]
</td>
</tr>
<tr>
<th align="right" nowrap>[% 'Department' | $T8 %]</th>
<td>
[%- IF INSTANCE_CONF.get_contact_departments_use_textfield -%]
[% L.input_tag('contact.cp_abteilung', SELF.contact.cp_abteilung, size = 40) %]
[% L.select_tag('contact_cp_abteilung_select', SELF.all_contact_departments, default = SELF.contact.cp_abteilung, value_key = 'description', title_key = 'description', with_empty = 1, onchange = '$("#contact_cp_abteilung").val(this.value);') %]
[%- ELSE -%]
[% L.select_tag('contact.cp_abteilung', SELF.all_contact_departments, default = SELF.contact.cp_abteilung, value_key = 'description', title_key = 'description', with_empty = 1) %]
[%- END -%]
</td>
</tr>
<tr>
<th align="right" nowrap>[% 'Function/position' | $T8 %]</th>
<div class="select-item control-panel">
[% 'Select contacts' | $T8 %][%
L.select_tag(
'contact.cp_id',
SELF.contacts,
default = SELF.contact.cp_id,
with_empty = 1,
empty_title = LxERP.t8('New contact'),
value_key = 'cp_id',
title_key = 'full_name',
onchange = "kivi.CustomerVendor.selectContact({onFormSet: function(){ contactsMapWidget.testInputs(); kivi.reinit_widgets(); }});",
)%]
</div>
<td>
[% L.input_tag('contact.cp_position', SELF.contact.cp_position, size = 40) %]
</td>
</tr>
<div class="wrapper">
<table class="tbl-horizontal">
<caption>[% 'Personal details' | $T8 %]</caption>
<tbody>
<tr>
<th align="right" nowrap>[% 'Given Name' | $T8 %]</th>
<td>
[% L.input_tag('contact.cp_givenname', SELF.contact.cp_givenname, size = 40) %]
</td>
<th>[% 'Given Name' | $T8 %]</th>
<td>[% L.input_tag('contact.cp_givenname', SELF.contact.cp_givenname, class="wi-wide") %]</td>
</tr>
<tr>
<th align="right" nowrap>[% 'Surname' | $T8 %]</th>
<td>
[% L.input_tag('contact.cp_name', SELF.contact.cp_name, size = 40) %]
</td>
<th>[% 'Surname' | $T8 %]</th>
<td>[% L.input_tag('contact.cp_name', SELF.contact.cp_name, class="wi-wide") %]</td>
</tr>
<tr>
<th align="right" nowrap>[% 'E-mail' | $T8 %]</th>
<td>
[% L.input_tag('contact.cp_email', SELF.contact.cp_email, size = 40) %]
</td>
<th[% 'Main Contact Person' | $T8 %]</th>
<td>[% L.yes_no_tag('contact.cp_main', SELF.contact.cp_main) %]</td>
</tr>
<tr>
<th align="right" nowrap>[% 'Phone1' | $T8 %]</th>
<th>[% 'Gender' | $T8 %]</th>
<td>
[% L.input_tag('contact.cp_phone1', SELF.contact.cp_phone1, size = 40) %]
[% L.select_tag(
'contact.cp_gender',
[['m', LxERP.t8('male')], ['f', LxERP.t8('female')]],
default = SELF.contact.cp_gender,
class = 'wi-normal',
) %]
</td>
</tr>
<tr>
<th align="right" nowrap>[% 'Phone2' | $T8 %]</th>
<td>
[% L.input_tag('contact.cp_phone2', SELF.contact.cp_phone2, size = 40) %]
</td>
<th>[% 'Birthday' | $T8 %]</th>
<td>[% L.date_tag('contact.cp_birthday', SELF.contact.cp_birthday, class='wi-date') %]</td>
</tr>
<tr>
<th align="right" nowrap>[% 'Fax' | $T8 %]</th>
<th>[% 'Title' | $T8 %]</th>
<td>
[% L.input_tag('contact.cp_fax', SELF.contact.cp_fax, size = 40) %]
[% IF INSTANCE_CONF.get_contact_titles_use_textfield %]
[% L.select_tag('contact_cp_title_select', SELF.all_contact_titles, default = SELF.contact.cp_title, value_key = 'description', title_key = 'description', with_empty = 1, onchange = '$("#contact_cp_title").val(this.value);', class="wi-wide helper") %]
[% L.input_tag('contact.cp_title', SELF.contact.cp_title, size = 40, class="wi-wide addition") %]
[% ELSE %]
[% L.select_tag('contact.cp_title', SELF.all_contact_titles, default = SELF.contact.cp_title, value_key = 'description', title_key = 'description', with_empty = 1, class="wi-wide helper") %]
[% END %]
</td>
</tr>
<tr>
<th align="right" nowrap>[% 'Mobile1' | $T8 %]</th>
<td>
[% L.input_tag('contact.cp_mobile1', SELF.contact.cp_mobile1, size = 40) %]
</td>
<th>[% 'Project' | $T8 %]</th>
<td>[% L.input_tag('contact.cp_project', SELF.contact.cp_project, class="wi-wide") %]</td>
</tr>
<tr>
<th align="right" nowrap>[% 'Mobile2' | $T8 %]</th>
<td>
[% L.input_tag('contact.cp_mobile2', SELF.contact.cp_mobile2, size = 40) %]
</td>
<th class="caption" colspan="2">[% 'Department & Function' | $T8 %]</th>
</tr>
<tr>
<th align="right" nowrap>[% 'Sat. Phone' | $T8 %]</th>
<th>[% 'Department' | $T8 %]</th>
<td>
[% L.input_tag('contact.cp_satphone', SELF.contact.cp_satphone, size = 40) %]
[% IF INSTANCE_CONF.get_contact_departments_use_textfield %]
[% L.select_tag('contact_cp_abteilung_select', SELF.all_contact_departments, default = SELF.contact.cp_abteilung, value_key = 'description', title_key = 'description', with_empty = 1, onchange = '$("#contact_cp_abteilung").val(this.value);', class='wi-wide helper') %]
[% L.input_tag('contact.cp_abteilung', SELF.contact.cp_abteilung, size = 40, class="wi-wide addition") %]
[% ELSE %]
[% L.select_tag('contact.cp_abteilung', SELF.all_contact_departments, default = SELF.contact.cp_abteilung, value_key = 'description', title_key = 'description', with_empty = 1, class='wi-wide helper') %]
[% END %]
</td>
</tr>
<tr>
<th align="right" nowrap>[% 'Sat. Fax' | $T8 %]</th>
<td>
[% L.input_tag('contact.cp_satfax', SELF.contact.cp_satfax, size = 40) %]
</td>
<th>[% 'Function/position' | $T8 %]</th>
<td>[% L.input_tag('contact.cp_position', SELF.contact.cp_position, class="wi-wide") %]</td>
</tr>
<tr>
<th align="right" nowrap>[% 'Project' | $T8 %]</th>
<td>
[% L.input_tag('contact.cp_project', SELF.contact.cp_project, size = 40) %]
</td>
<th class="caption" colspan="2">[% 'Address' | $T8 %]</th>
</tr>
<tr>
<th align="right" nowrap>[% 'Street' | $T8 %]</th>
<th>[% 'Street' | $T8 %]</th>
<td>
[% L.input_tag('contact.cp_street', SELF.contact.cp_street, size = 40) %]
[% L.input_tag('contact.cp_street', SELF.contact.cp_street, class="wi-wide") %]
<span id="contact_map"></span>
<script type="text/javascript">
var contactsMapWidget = new kivi.CustomerVendor.MapWidget('contact_cp_');
......
</script>
</td>
</tr>
<tr>
<th align="right" nowrap>[% 'Zip, City' | $T8 %]</th>
<td>
[% L.input_tag('contact.cp_zipcode', SELF.contact.cp_zipcode, size = 5) %]
[% L.input_tag('contact.cp_city', SELF.contact.cp_city, size = 25) %]
</td>
</tr>
<tr>
<th align="right" nowrap>[% 'Private Phone' | $T8 %]</th>
<td>
[% L.input_tag('contact.cp_privatphone', SELF.contact.cp_privatphone, size = 40) %]
</td>
</tr>
<tr>
<th align="right" nowrap>[% 'Private E-mail' | $T8 %]</th>
<td>
[% L.input_tag('contact.cp_privatemail', SELF.contact.cp_privatemail, size = 40) %]
</td>
</tr>
<tr>
<th align="right" nowrap>[% 'Birthday' | $T8 %]</th>
<th>[% 'Zip, City' | $T8 %]</th>
<td>
[% L.date_tag('contact.cp_birthday', SELF.contact.cp_birthday) %]
[% 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") %]
</td>
</tr>
[% contact_cvars = SELF.contact.cvars_by_config %]
[% IF ( contact_cvars.size ) %]
<tr>
<td colspan="2">
<hr>
</td>
</tr>
<!-- PENDENT: Horizontal Rule -->
[% FOREACH var = contact_cvars %]
<tr>
<th align="right" valign="top" nowrap>[% var.config.description | html %]</th>
<td valign="top">
<th>[% var.config.description | html %]</th>
<td>
[% INCLUDE 'common/render_cvar_input.html'
cvar_name_prefix = 'contact_cvars.'
%]
......
</tr>
[% END %]
[% END %]
</tbody>
</table>
</table>
<table class="tbl-horizontal">
<caption>[% 'Communication' | $T8 %]</caption>
<tbody>
<tr>
<th>[% 'E-mail' | $T8 %]</th>
<td>[% L.input_tag('contact.cp_email', SELF.contact.cp_email, class="wi-wide") %]</td>
</tr>
<tr>
<th>[% 'Phone1' | $T8 %]</th>
<td>[% L.input_tag('contact.cp_phone1', SELF.contact.cp_phone1, class="wi-wide") %]</td>
</tr>
<tr>
<th>[% 'Phone2' | $T8 %]</th>
<td>[% L.input_tag('contact.cp_phone2', SELF.contact.cp_phone2, class="wi-wide") %]</td>
</tr>
<tr>
<th>[% 'Fax' | $T8 %]</th>
<td>[% L.input_tag('contact.cp_fax', SELF.contact.cp_fax, class="wi-wide") %]</td>
</tr>
<tr>
<th>[% 'Mobile1' | $T8 %]</th>
<td>[% L.input_tag('contact.cp_mobile1', SELF.contact.cp_mobile1, class="wi-wide") %]</td>
</tr>
<tr>
<th>[% 'Mobile2' | $T8 %]</th>
<td>[% L.input_tag('contact.cp_mobile2', SELF.contact.cp_mobile2, class="wi-wide") %]</td>
</tr>
<tr>
<th>[% 'Sat. Phone' | $T8 %]</th>
<td>[% L.input_tag('contact.cp_satphone', SELF.contact.cp_satphone, class="wi-wide") %]</td>
</tr>
<tr>
<th>[% 'Sat. Fax' | $T8 %]</th>
<td>[% L.input_tag('contact.cp_satfax', SELF.contact.cp_satfax, class="wi-wide") %]</td>
</tr>
<tr>
<th>[% 'Private Phone' | $T8 %]</th>
<td>[% L.input_tag('contact.cp_privatphone', SELF.contact.cp_privatphone, class="wi-wide") %]</td>
</tr>
<tr>
<th>[% 'Private E-mail' | $T8 %]</th>
<td>[% L.input_tag('contact.cp_privatemail', SELF.contact.cp_privatemail, class="wi-wide") %]</td>
</tr>
</tbody>
</table>
<div class="buttons">
[% L.button_tag('submitInputButton("delete_contact");', LxERP.t8('Delete Contact'), id = 'action_delete_contact', class = 'submit') %]
[% IF ( !SELF.contact.cp_id ) %]
<script type="text/javascript">
......
</script>
[% END %]
</div>
</div><!-- /.cols -->
</div><!-- /#contacts -->
templates/webpages/customer_vendor/tabs/custom_variables.html
[% USE HTML %]
[% USE T8 %]
<div id="custom_variables">
<p>
<table>
[% FOREACH var = SELF.cv.cvars_by_config %]
<tr>
<th align="right" valign="top" nowrap>[% var.config.description | html %]</th>
<td valign="top">
[% INCLUDE 'common/render_cvar_input.html'
cvar_name_prefix = 'cv_cvars.'
var_name = ''
%]
</td>
</tr>
[% END %]
<div class="wrapper">
<table class="tbl-horizontal">
<caption>[% 'Custom variables' | $T8 %]</caption>
<tbody>
[% FOREACH var = SELF.cv.cvars_by_config %]
<tr>
<th>[% var.config.description | html %]</th>
<td>[% INCLUDE 'common/render_cvar_input.html', cvar_name_prefix = 'cv_cvars.', var_name = '' %]</td>
</tr>
[% END %]
</tbody>
</table>
</p>
</div>
</div>
templates/webpages/customer_vendor/tabs/deliveries.html
[% USE T8 %]
[% USE LxERP %]
[% USE L %]
<!-- PENDENT: Element-Klassen neu definieren -->
<div id="deliveries">
<table>
<tr>
<th align="right">[% 'Shipping Address' | $T8 %]</th>
<td colspan="3">
[% temp = [{shipto_id = 'all', displayable_id = LxERP.t8('All')}] %]
[% temp = temp.merge(SELF.shiptos) %]
[%
L.select_tag(
'delivery_id',
temp,
value_key = 'shipto_id',
title_key = 'displayable_id',
with_empty = 1,
onchange = "kivi.CustomerVendor.selectDelivery();"
)
%]
</td>
</tr>
<tr>
<th align="right" nowrap>[% 'From' | $T8 %]</th>
<td>
[%
L.date_tag(
'delivery_from',
FORM.delivery_from,
onchange => "kivi.CustomerVendor.selectDelivery(this.form.delivery_from.value, this.form.delivery_to.value);"
)
%]
</td>
<div class="select-item control-panel">
<span class="formelement">
[% temp = [{shipto_id = 'all', displayable_id = LxERP.t8('All')}] %]
[% temp = temp.merge(SELF.shiptos) %]
[% 'Select Deliveries' | $T8 %] [%
L.select_tag(
'delivery_id',
temp,
value_key = 'shipto_id',
title_key = 'displayable_id',
with_empty = 1,
onchange = "kivi.CustomerVendor.selectDelivery();",
class='wi-lightwide',
id='delivery_id'
)
%]
</span>
<span class="formelement">
[% 'From' | $T8 %] [%
L.date_tag(
'delivery_from',
FORM.delivery_from,
onchange => "kivi.CustomerVendor.selectDelivery(this.form.delivery_from.value, this.form.delivery_to.value);",
class='wi-date'
)
%]
</span>
<span class="formelement">
&nbsp; [% 'To (time)' | $T8 %] [%
L.date_tag(
'delivery_to',
FORM.delivery_to,
onchange => "kivi.CustomerVendor.selectDelivery(this.form.delivery_from.value, this.form.delivery_to.value);",
class='wi-date'
)
%]
</span>
</div>
<!-- PENDENT: ein No-Result-Feature wuerde sich hier noch gut machen -->
<div class="wrapper">
<div id="delivery">[% 'Please wait!' | $T8 %]</div>
</div>
<th align="right" nowrap>[% 'To (time)' | $T8 %]</th>
<td>
[%
L.date_tag(
'delivery_to',
FORM.delivery_to,
onchange => "kivi.CustomerVendor.selectDelivery(this.form.delivery_from.value, this.form.delivery_to.value);"
)
%]
</td>
</tr>
<tr>
<td colspan="4">
<div id="delivery"></div>
</td>
</tr>
</table>
</div>
<script type="text/javascript">
$('#delivery_id option[value=all]').attr('selected','selected');
kivi.CustomerVendor.selectDelivery();
</script>
templates/webpages/customer_vendor/tabs/price_rules.html
[% USE L %]
<div id="price_rules">
<div class="wrapper">
<div id='price_rules_customer_report'></div>
<div id='price_rules_vendor_report'></div>
<script type='text/javascript'>
$(function() {
window.setTimeout(function(){
......
}, 200);
})
</script>
</div>
</div><!-- /.wrapper -->
</div><!-- /#price_rules -->
templates/webpages/customer_vendor/tabs/shipto.html
[% USE L %]
<div id="shipto">
<table width="100%" id="shipto_table">
<tr>
<th align="right">[% 'Shipping Address' | $T8 %]</th>
<td>
[% L.select_tag(
'shipto.shipto_id',
SELF.shiptos,
default = SELF.shipto.shipto_id,
value_key = 'shipto_id',
title_key = 'displayable_id',
with_empty = 1,
empty_title = LxERP.t8('New shipto'),
onchange = "kivi.CustomerVendor.selectShipto({onFormSet: function(){ shiptoMapWidget.testInputs(); kivi.reinit_widgets(); }});",
)
%]
</td>
</tr>
<tr>
<th align="right" nowrap>[% 'Name' | $T8 %]</th>
<td>
[% L.input_tag('shipto.shiptoname', SELF.shipto.shiptoname, size = 35) %]
</td>
</tr>
<tr>
<th align="right" nowrap>[% 'Department' | $T8 %]</th>
<td>
[% L.input_tag('shipto.shiptodepartment_1', SELF.shipto.shiptodepartment_1, size = 16) %]
[% L.input_tag('shipto.shiptodepartment_2', SELF.shipto.shiptodepartment_2, size = 16) %]
</td>
</tr>
<tr>
<th align="right" nowrap>[% 'Street' | $T8 %]</th>
<td>
[% L.input_tag('shipto.shiptostreet', SELF.shipto.shiptostreet, size = 35) %]
<span id="shipto_map"></span>
<script type="text/javascript">
shiptoMapWidget = new kivi.CustomerVendor.MapWidget('shipto_shipto');
$(function() {
shiptoMapWidget.render($('#shipto_map'));
});
</script>
</td>
</tr>
<tr>
<th align="right" nowrap>[% 'Zipcode' | $T8 %]/[% 'City' | $T8 %]</th>
<td>
[% L.input_tag('shipto.shiptozipcode', SELF.shipto.shiptozipcode, size = 5) %]
[% L.input_tag('shipto.shiptocity', SELF.shipto.shiptocity, size = 30) %]
</td>
</tr>
<tr>
<th align="right" nowrap>[% 'Country' | $T8 %]</th>
<td>
[% L.input_tag('shipto.shiptocountry', SELF.shipto.shiptocountry, size = 35) %]
</td>
</tr>
<tr>
<th align="right" nowrap>[% 'GLN' | $T8 %]</th>
<td>
[% L.input_tag('shipto.shiptogln', SELF.shipto.shiptogln, size = 35) %]
</td>
</tr>
<tr>
<th align="right" nowrap>[% 'Contact' | $T8 %]</th>
<td>
[% L.input_tag('shipto.shiptocontact', SELF.shipto.shiptocontact, size = 30) %]
</td>
</tr>
<tr>
<th align="right" nowrap>[% 'Phone' | $T8 %]</th>
<td>
[% L.input_tag('shipto.shiptophone', SELF.shipto.shiptophone, size = 30) %]
</td>
</tr>
<tr>
<th align="right" nowrap>[% 'Fax' | $T8 %]</th>
... Dieser Diff wurde abgeschnitten, weil er die maximale Anzahl anzuzeigender Zeilen überschreitet.

Auch abrufbar als: Unified diff