[%- USE T8 %]
[% USE HTML %][% USE LxERP %]
[% USE L %]
-<body>
<h1>[% title %]</h1>
<form method="post" name="ct" action="ct.pl" >
- <ul id="maintab" class="shadetabs">
- <li class="selected"><a href="#" rel="billing">[% 'Billing Address' | $T8 %]</a></li>
- <li><a href="#" rel="shipto">[% 'Shipping Address' | $T8 %]</a></li>
- <li><a href="#" rel="contacts">[% 'Contacts' | $T8 %]</a></li>
+ <div class="tabwidget">
+ <ul>
+ <li><a href="#billing">[% 'Billing Address' | $T8 %]</a></li>
+ <li><a href="#shipto">[% 'Shipping Address' | $T8 %]</a></li>
+ <li><a href="#contacts">[% 'Contacts' | $T8 %]</a></li>
[%- IF id %]
- <li><a href="#" rel="deliveries">[% 'Supplies' | $T8 %]</a></li>
+ <li><a href="#deliveries">[% 'Supplies' | $T8 %]</a></li>
[%- END %]
- <li><a href="#" rel="vcnotes">[% 'Notes' | $T8 %]</a></li>
- [%- IF CUSTOM_VARIABLES.CT.size %]
- <li><a href="#" rel="custom_variables">[% 'Custom Variables' | $T8 %]</a></li>
- [%- END %]
- </ul>
-
- <div class="tabcontentstyle">
+ <li><a href="#vcnotes">[% 'Notes' | $T8 %]</a></li>
+[%- IF CUSTOM_VARIABLES.CT.size %]
+ <li><a href="#custom_variables">[% 'Custom Variables' | $T8 %]</a></li>
+[%- END %]
+ </ul>
- <div id="billing" class="tabcontent">
+ <div id="billing">
<table width="100%">
<tr height="5"></tr>
<tr>
<th align="right" nowrap>[% 'Street' | $T8 %]</th>
- <td><input name="street" size="35" maxlength="75" value="[% HTML.escape(street) %]"></td>
+ <td>
+ <input name="street" size="35" maxlength="75" value="[% HTML.escape(street) %]">
+ <a
+ href="#"
+ onclick="window.open('https://maps.google.com/maps?q='+ encodeURIComponent($('#billing input[name=street]').val() +', '+ $('#billing input[name=zipcode]').val() +' '+ $('#billing input[name=city]').val() +', '+ $('#billing input[name=country]').val()), '_blank'); window.focus();"
+ title="[% 'Map' | $T8 %]"
+ >
+ <img src="image/map.png" alt="[% 'Map' | $T8 %]" />
+ </a>
+ </td>
</tr>
<tr>
</tr>
<tr>
- <td align="right">[% 'Obsolete' | $T8 %]</td>
- <td><input name="obsolete" class="checkbox" type="checkbox" value="1" [% IF obsolete %]checked[% END %]></td>
- <td align="right">[% 'direct debit' | $T8 %]</td>
- <td><input name="direct_debit" class="checkbox" type="checkbox" value="1" [% IF direct_debit %]checked[% END %]></td>
+ <td align="right"><label for="obsolete">[% 'Obsolete' | $T8 %]</label></td>
+ <td><input name="obsolete" id="obsolete" class="checkbox" type="checkbox" value="1" [% IF obsolete %]checked[% END %]></td>
+ <td align="right"><label for="direct_debit">[% 'direct debit' | $T8 %]</label></td>
+ <td><input name="direct_debit" id="direct_debit" class="checkbox" type="checkbox" value="1" [% IF direct_debit %]checked[% END %]></td>
</tr>
<tr>
<th align="right">[% 'Salesman' | $T8 %]</th>
<td>[% L.select_tag('salesman_id', ALL_SALESMEN, default = salesman_id, with_empty = 1, title_key = 'safe_name') %]</td>
[%- END %]
- </tr>
- <tr>
<td>[% 'taxincluded checked' | $T8 %]</td>
- <td>[% L.select_tag('taxincluded_checked', [[undef, LxERP.t8('use user config')], ['y', LxERP.t8('Yes')], ['n', LxERP.t8('No')]], default = taxincluded_checked) %]</td>
+ <td>[% L.select_tag('taxincluded_checked', [[undef, LxERP.t8('use user config')], ['1', LxERP.t8('Yes')], ['0', LxERP.t8('No')]], default = taxincluded_checked) %]</td>
</tr>
</table>
<td><textarea name="notes" rows="3" cols="60" wrap="soft">[% HTML.escape(notes) %]</textarea></td>
</tr>
</table>
-
- <br style="clear: left" />
</div>
- <div id="shipto" class="tabcontent">
+ <div id="shipto">
[% INCLUDE 'ct/_shipto.html' %]
</div>
- <div id="contacts" class="tabcontent">
+ <div id="contacts">
[% INCLUDE 'ct/_contact.html' %]
</div>
- <div id="deliveries" class="tabcontent">
+ <div id="deliveries">
<table>
<tr>
<th align="right">[% 'Shipping Address' | $T8 %]</th>
<td colspan="3">
- [% L.select_tag('delivery_id', 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)") %]
+ [% L.select_tag('delivery_id', SHIPTO_ALL, value_key = 'shipto_id', title_sub = \shipto_label, with_empty = 1,
+ onchange = "\$('#delivery').load('ct.pl?action=get_delivery&id=' + \$('#cvid').val() + '&db=' + \$('#db').val() + '&shipto_id=' + this.value)") %]
</td>
</tr>
</td>
</tr>
</table>
-
- <br style="clear: left" />
</div>
- <div id="vcnotes" class="tabcontent">
+ <div id="vcnotes">
[%- IF NOTES && NOTES.size %]
<p>
<td>
[% L.date_tag('FU_date', FU_date) %]
[% 'for' | $T8 %]
- [% L.select_tag('FU_created_for_user', ALL_EMPLOYEES, default = (FU_created_for_user ? FU_created_for_user : USER.id), title='safe_name') %]
+ [% L.select_tag('FU_created_for_user', ALL_EMPLOYEES, default = (FU_created_for_user ? FU_created_for_user : USER.id), title_key='safe_name') %]
</td>
</tr>
</tr>
</table>
</p>
-
- <br style="clear: left" />
</div>
[%- IF CUSTOM_VARIABLES.CT.size %]
- <div id="custom_variables" class="tabcontent">
+ <div id="custom_variables">
<p>
<table>
[%- END %]
</table>
</p>
-
- <br style="clear: left" />
</div>
[%- END %]