projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fremdschlüssel-Constraint für oe und employee (über ID) hinzugefügt. Beim harten...
[kivitendo-erp.git]
/
templates
/
webpages
/
am
/
edit_tax_master.html
diff --git
a/templates/webpages/am/edit_tax_master.html
b/templates/webpages/am/edit_tax_master.html
index
1b5934c
..
3d4aed3
100644
(file)
--- a/
templates/webpages/am/edit_tax_master.html
+++ b/
templates/webpages/am/edit_tax_master.html
@@
-1,65
+1,49
@@
-<body>
-
<form method="post" action="<TMPL_VAR script>
">
- <input type="hidden" name="id" value="
<TMPL_VAR id>
">
+
[% USE HTML %]
<body>
+
<form method="post" action="am.pl
">
+ <input type="hidden" name="id" value="
[% HTML.escape(id) %]
">
<input type="hidden" name="type" value="tax">
<input type="hidden" name="type" value="tax">
-<table width="100%">
- <tr>
- <th class="listtop" colspan="2"><TMPL_VAR title> <translate>Tax-O-Matic</translate></th>
- </tr>
-</table>
-<table width="100%">
- <tr>
+ <div class="listtop"><translate>Tax-O-Matic</translate> [% title %]</div>
+
+ <table width="100%">
+ <tr>
<td><translate>tax_taxkey</translate></td>
<td><translate>tax_taxkey</translate></td>
- <td><input name="taxkey" size="2" value="
<TMPL_VAR taxkey>
"></td>
- </tr>
+ <td><input name="taxkey" size="2" value="
[% HTML.escape(taxkey) %]
"></td>
+
</tr>
- <tr>
+
<tr>
<td><translate>tax_taxdescription</translate></td>
<td><translate>tax_taxdescription</translate></td>
- <td><input name="taxdescription" size="60" value="
<TMPL_VAR taxdescription>
"></td>
- </tr>
+ <td><input name="taxdescription" size="60" value="
[% HTML.escape(taxdescription) %]
"></td>
+
</tr>
- <tr>
+
<tr>
<td><translate>tax_percent</translate></td>
<td><translate>tax_percent</translate></td>
- <td><input name="rate" size="10" value="
<TMPL_VAR rate>
"> %</td>
- </tr>
+ <td><input name="rate" size="10" value="
[% HTML.escape(rate) %]
"> %</td>
+
</tr>
- <tr>
+
<tr>
<td><translate>tax_chartaccno</translate></td>
<td><translate>tax_chartaccno</translate></td>
- <td><select name="chart_id">
- <TMPL_LOOP ACCOUNTS>
- <TMPL_VAR select_taxaccount>
- </TMPL_LOOP>
- </select>
-
- </td>
- </tr>
-
+ <td><select name="chart_id"><option value="0"><translate>None</translate></option>[% FOREACH row = ACCOUNTS %]<option value="[% HTML.escape(row.id) %]" [% IF row.selected %]selected[% END %]>[% HTML.escape(row.taxaccount) %]</option>[% END %]</select></td>
+ </tr>
-</table>
+
</table>
-<TMPL_UNLESS orphaned>
+ [% UNLESS orphaned %]
<br />
<translate>Chartaccounts connected to this Tax:</translate>
<br />
<translate>Chartaccounts connected to this Tax:</translate>
- <TMPL_LOOP TAXINUSE>
- <a href="am.pl?action=edit_account&id=<TMPL_VAR id>&login=<TMPL_VAR
- login ESCAPE=URL>&password=<TMPL_VAR password ESCAPE=URL>&callback=<TMPL_VAR callback ESCAPE=URL>"><TMPL_VAR accno></a>
- </TMPL_LOOP>
+ [% FOREACH row = TAXINUSE %]
+ <a href="am.pl?action=edit_account&id=[% HTML.url(row.id) %]&callback=[% HTML.url(callback) %]">[% HTML.escape(row.accno) %]</a>
+ [% END %]
<br />
<br />
-</TMPL_UNLESS>
-
-<input name="callback" type="hidden" value="<TMPL_VAR callback ESCAPE=HTML>">
-<input type="hidden" name="login" value="<TMPL_VAR login ESCAPE=HTML>">
-<input type="hidden" name="password" value="<TMPL_VAR password ESCAPE=HTML>">
+ [% END %]
-
<br /
>
+
<input type="hidden" name="callback" value="[% HTML.escape(callback) %]"
>
-<input type="submit" class="submit" name="action" value="<translate>Save</translate>">
+
<input type="submit" class="submit" name="action" value="<translate>Save</translate>">
-<TMPL_IF orphaned>
- <input type="submit" class="submit" name="action"
- value="<translate>Delete</translate>">
-</TMPL_IF>
+ [% IF orphaned %]
+ <input type="submit" class="submit" name="action" value="<translate>Delete</translate>">
+ [% END %]
</form>
</body>
</form>
</body>