projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Csv Import in Datenbank zwischenspeichern und rudimentärer Report.
[kivitendo-erp.git]
/
templates
/
webpages
/
ct
/
form_header.html
diff --git
a/templates/webpages/ct/form_header.html
b/templates/webpages/ct/form_header.html
index
501ebaa
..
8cbd90d
100644
(file)
--- a/
templates/webpages/ct/form_header.html
+++ b/
templates/webpages/ct/form_header.html
@@
-1,7
+1,6
@@
[%- USE T8 %]
[% USE HTML %][% USE LxERP %]
[% USE L %]
[%- USE T8 %]
[% USE HTML %][% USE LxERP %]
[% USE L %]
-<body>
<h1>[% title %]</h1>
<h1>[% title %]</h1>
@@
-17,7
+16,7
@@
<li><a href="#" rel="deliveries">[% 'Supplies' | $T8 %]</a></li>
[%- END %]
<li><a href="#" rel="vcnotes">[% 'Notes' | $T8 %]</a></li>
<li><a href="#" rel="deliveries">[% 'Supplies' | $T8 %]</a></li>
[%- END %]
<li><a href="#" rel="vcnotes">[% 'Notes' | $T8 %]</a></li>
- [%- IF CUSTOM_VARIABLES.size %]
+ [%- IF CUSTOM_VARIABLES.
CT.
size %]
<li><a href="#" rel="custom_variables">[% 'Custom Variables' | $T8 %]</a></li>
[%- END %]
</ul>
<li><a href="#" rel="custom_variables">[% 'Custom Variables' | $T8 %]</a></li>
[%- END %]
</ul>
@@
-131,7
+130,7
@@
<tr>
<th align="right" nowrap>[% 'Phone' | $T8 %]</th>
<tr>
<th align="right" nowrap>[% 'Phone' | $T8 %]</th>
- <td><input name="phone" size="30"
maxlength="30"
value="[% HTML.escape(phone) %]"></td>
+ <td><input name="phone" size="30" value="[% HTML.escape(phone) %]"></td>
</tr>
<tr>
</tr>
<tr>
@@
-150,7
+149,7
@@
[% ELSE %][% 'Homepage' | $T8 %]
[% END %]
</th>
[% ELSE %][% 'Homepage' | $T8 %]
[% END %]
</th>
- <td><input name="homepage" size="45" title="[% 'Example: http://
lx-office.org
' | $T8 %]" value="[% HTML.escape(homepage) %]"></td>
+ <td><input name="homepage" size="45" title="[% 'Example: http://
kivitendo.de
' | $T8 %]" value="[% HTML.escape(homepage) %]"></td>
</tr>
<tr>
</tr>
<tr>
@@
-215,7
+214,7
@@
<td><input name="bic" size="10" maxlength="100" value="[% HTML.escape(bic) %]"></td>
[%- IF ALL_CURRENCIES.size %]
<th align="right">[% 'Currency' | $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>
+ <td>[% L.select_tag('currency',
ALL_CURRENCIES, default = currency, with_empty = 1
) %]</td>
[%- END %]
</tr>
[%- END %]
</tr>
@@
-259,10
+258,10
@@
</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>
</tr>
<tr>
@@
-279,9
+278,14
@@
</td>
[%- IF is_customer && !conf_vertreter %]
<th align="right">[% 'Salesman' | $T8 %]</th>
</td>
[%- IF is_customer && !conf_vertreter %]
<th align="right">[% 'Salesman' | $T8 %]</th>
- <td>[% L.select_tag('salesman_id',
L.options_for_select(ALL_SALESMEN, default=salesman_id, show_empty=1, title='safe_name')
) %]</td>
+ <td>[% L.select_tag('salesman_id',
ALL_SALESMEN, default = salesman_id, with_empty = 1, title_key = 'safe_name'
) %]</td>
[%- END %]
</tr>
[%- END %]
</tr>
+
+ <tr>
+ <td>[% 'taxincluded checked' | $T8 %]</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>
<table>
</table>
<table>
@@
-299,9
+303,6
@@
<div id="shipto" class="tabcontent">
[% INCLUDE 'ct/_shipto.html' %]
<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">
</div>
<div id="contacts" class="tabcontent">
@@
-313,21
+314,25
@@
<tr>
<th align="right">[% 'Shipping Address' | $T8 %]</th>
<td colspan="3">
<tr>
<th align="right">[% 'Shipping Address' | $T8 %]</th>
<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)") %]
+ [% 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').attr('value') + '&db=' + \$('#db').attr('value') + '&shipto_id=' + this.value)") %]
</td>
</tr>
<tr>
<th align="right" nowrap>[% 'From' | $T8 %]</th>
<td>
</td>
</tr>
<tr>
<th align="right" nowrap>[% 'From' | $T8 %]</th>
<td>
- <input id="from" name="from" size="10" maxlength="10" onChange="get_delivery(['shipto_id__' + delivery_id.value, 'from__' + this.value, 'to__' + to.value, 'id__' + cvid.value, 'db__' + db.value], ['delivery'])" value="[% HTML.escape(from) %]">
- <input type="button" name="fromB" id="trigger_from" value="?">
+ [% L.date_tag('from',
+ from,
+ onchange => "\$('#delivery').load('ct.pl?action=get_delivery&shipto_id='+ \$('#delivery_id').val() +'&from='+ \$('#from').val() +'&to='+ \$('#to').val() +'&id='+ \$('#cvid').val() +'&db='+ \$('#db').val())")
+ %]
</td>
<th align="right" nowrap>[% 'To (time)' | $T8 %]</th>
<td>
</td>
<th align="right" nowrap>[% 'To (time)' | $T8 %]</th>
<td>
- <input id="to" name="to" size="10" maxlength="10" onChange="get_delivery(['shipto_id__' + delivery_id.value, 'from__' + from.value, 'to__' + this.value, 'id__' + cvid.value, 'db__' + db.value], ['delivery'])" value="[% HTML.escape(to) %]">
- <input type="button" name="toB" id="trigger_to" value="?">
+ [% L.date_tag('to',
+ to,
+ onchange => "\$('#delivery').load('ct.pl?action=get_delivery&shipto_id='+ \$('#delivery_id').val() +'&from='+ \$('#from').val() +'&to='+ \$('#to').val() +'&id='+ \$('#cvid').val() +'&db='+ \$('#db').val())")
+ %]
</td>
</tr>
</td>
</tr>
@@
-396,10
+401,9
@@
<tr>
<td valign="right">[% 'Follow-Up On' | $T8 %]</td>
<td>
<tr>
<td valign="right">[% 'Follow-Up On' | $T8 %]</td>
<td>
- <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="?">
+ [% L.date_tag('FU_date', FU_date) %]
[% 'for' | $T8 %]
[% 'for' | $T8 %]
- [% 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')
) %]
+ [% 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>
</td>
</tr>
@@
-416,12
+420,12
@@
<br style="clear: left" />
</div>
<br style="clear: left" />
</div>
- [%- IF CUSTOM_VARIABLES.size %]
+ [%- IF CUSTOM_VARIABLES.
CT.
size %]
<div id="custom_variables" class="tabcontent">
<p>
<table>
<div id="custom_variables" class="tabcontent">
<p>
<table>
- [%- FOREACH var = CUSTOM_VARIABLES %]
+ [%- FOREACH var = CUSTOM_VARIABLES
.CT
%]
<tr>
<td align="right" valign="top">[% HTML.escape(var.description) %]</td>
<td valign="top">[% var.HTML_CODE %]</td>
<tr>
<td align="right" valign="top">[% HTML.escape(var.description) %]</td>
<td valign="top">[% var.HTML_CODE %]</td>