[%- USE T8 %]
[% USE HTML %][% USE LxERP %]
[% USE L %]
-[% L.javascript_tag('jquery') %]
<body>
- <div class="listtop">[% title %]</div>
+ <h1>[% title %]</h1>
+
+ [% PROCESS 'common/flash.html' %]
<form method="post" name="ct" action="ct.pl" >
<td><input name="iban" size="10" maxlength="100" value="[% HTML.escape(iban) %]"></td>
<th align="right">[% 'BIC' | $T8 %]</th>
<td><input name="bic" size="10" maxlength="100" value="[% HTML.escape(bic) %]"></td>
+ [%- IF ALL_CURRENCIES.size %]
+ <th align="right">[% 'Currency' | $T8 %]</th>
+ <td>[% L.select_tag('currency', L.options_for_select(ALL_CURRENCIES, default=currency, with_empty=1)) %]</td>
+ [%- END %]
</tr>
<tr>
<td>
[%- INCLUDE generic/multibox.html
name = 'language_id',
+ default = default_language_id,
DATA = languages,
show_empty = 1,
id_key = 'id',
</td>
[%- IF is_customer && !conf_vertreter %]
<th align="right">[% 'Salesman' | $T8 %]</th>
- <td>
- [%- INCLUDE generic/multibox.html
- name = 'salesman_id',
- DATA = ALL_SALESMEN,
- show_empty = 1,
- id_key = 'id',
- label_sub = 'salesman_label',
- -%]
- </td>
+ <td>[% L.select_tag('salesman_id', L.options_for_select(ALL_SALESMEN, default=salesman_id, show_empty=1, title='safe_name')) %]</td>
[%- END %]
</tr>
</table>
<div id="shipto" class="tabcontent">
[% INCLUDE 'ct/_shipto.html' %]
-
- <input type="submit" id="delete_shipto" name="action" value="[% 'Delete Shipto' | $T8 %]" disabled>
- <br style="clear: left" />
</div>
<div id="contacts" class="tabcontent">
[% INCLUDE 'ct/_contact.html' %]
-
- <input type="submit" id="delete_contact" name="action" value="[% 'Delete Contact' | $T8 %]" disabled>
- <br style="clear: left" />
</div>
<div id="deliveries" class="tabcontent">
<table>
<tr>
<th align="right">[% 'Shipping Address' | $T8 %]</th>
- <td>
- [%- INCLUDE generic/multibox.html
- name = 'delivery_id',
- id = 'delivery_id',
- DATA = SHIPTO_ALL,
- onChange = "get_delivery(['shipto_id__' + this.value, 'from__' + from.value, 'to__' + to.value, 'id__' + cvid.value, 'db__' + db.value], ['delivery'])",
- id_key = 'shipto_id',
- label_sub = 'shipto_label',
- show_empty = 1,
- -%]
+ <td colspan="3">
+ [% L.select_tag('delivery_id', L.options_for_select(SHIPTO_ALL, title_sub => \shipto_label, with_empty => 1),
+ onchange => "\$('#delivery').load('ct.pl?action=get_delivery&id=' + \$('#cvid').attr('value') + '&db=' + \$('#db').attr('value') + '&shipto_id=' + this.value)") %]
</td>
</tr>
<input name="FU_date" id="FU_date" value="[% HTML.escape(FU_date) %]" size="12">
<input type="button" name="FU_date_button" id="FU_date_trigger" value="?">
[% 'for' | $T8 %]
- <select name="FU_created_for_user">
- [%- FOREACH row = ALL_EMPLOYEES %]
- <option value="[% HTML.escape(row.id) %]"[% IF (NOTE_id && (row.id == FU_created_for_user)) || (row.login == login) %] selected[% END %]>
- [%- IF row.name %][%- HTML.escape(row.name) %] ([% HTML.escape(row.login) %])[% ELSE %][% HTML.escape(row.login) %][% END %]
- </option>
- [%- END %]
- </select>
+ [% L.select_tag('FU_created_for_user', L.options_for_select(ALL_EMPLOYEES, default=(FU_created_for_user ? FU_created_for_user : USER.id), title='safe_name')) %]
</td>
</tr>