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
796f2a3
..
8cbd90d
100644
(file)
--- a/
templates/webpages/ct/form_header.html
+++ b/
templates/webpages/ct/form_header.html
@@
-1,10
+1,10
@@
[%- USE T8 %]
[% USE HTML %][% USE LxERP %]
[% USE L %]
[%- 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" >
<form method="post" name="ct" action="ct.pl" >
@@
-16,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>
@@
-130,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>
@@
-149,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>
@@
-212,6
+212,10
@@
<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>
<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', ALL_CURRENCIES, default = currency, with_empty = 1) %]</td>
+ [%- END %]
</tr>
<tr>
</tr>
<tr>
@@
-254,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>
@@
-274,17
+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>
- [%- 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', 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>
@@
-302,16
+303,10
@@
<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">
[% INCLUDE 'ct/_contact.html' %]
</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">
</div>
<div id="deliveries" class="tabcontent">
@@
-319,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>
@@
-402,16
+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 %]
- <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', ALL_EMPLOYEES, default = (FU_created_for_user ? FU_created_for_user : USER.id), title_key='safe_name') %]
</td>
</tr>
</td>
</tr>
@@
-428,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>