}
}
- $form->{title} = $locale->text('Edit Dunning Process Config');
- $form->{callback} ||= build_std_url("action=edit_config");
- $form->{rowcount} = 1 + scalar @{ $form->{DUNNING} };
- $form->{rowcount_odd} = $form->{rowcount} % 2;
+ $form->{title} = $locale->text('Edit Dunning Process Config');
+ $form->{callback} ||= build_std_url("action=edit_config");
$form->header();
- print $form->parse_html_template("dunning/edit_config");
+ print $form->parse_html_template2("dunning/edit_config");
$lxdebug->leave_sub();
}
-<body>
+[% USE HTML %]<body>
<script type="text/javascript" src="js/common.js"></script>
<script type="text/javascript" src="js/dunning.js"></script>
-->
</script>
- <div class="listtop" width="100%"><TMPL_VAR title></div>
+ <div class="listtop" width="100%">[% title %]</div>
<form method="post" action="dn.pl" name="Form">
<table>
<th class="listheading">Druckvorlage</th>
</tr>
- <TMPL_LOOP DUNNING>
- <tr valign="top" class="listrow<TMPL_IF __odd__>1<TMPL_ELSE>0</TMPL_IF>">
+ [% SET odd = '1' %][% USE DUNNING_it = Iterator(DUNNING) %][% FOREACH row = DUNNING_it %]
+ <tr valign="top" class="listrow[% IF odd %]1[% SET odd = '0' %][% ELSE %]0[% SET odd = '1' %][% END %]">
<td>
- <input type="hidden" name="dunning_level_<TMPL_VAR __counter__>" value="<TMPL_VAR __counter__>">
- <input type="hidden" name="id_<TMPL_VAR __counter__>" value="<TMPL_VAR id ESCAPE=HTML>">
- <TMPL_VAR __counter__>
+ <input type="hidden" name="dunning_level_[% DUNNING_it.count %]" value="[% DUNNING_it.count %]">
+ <input type="hidden" name="id_[% DUNNING_it.count %]" value="[% HTML.escape(row.id) %]">
+ [% DUNNING_it.count %]
</td>
- <td><input name="dunning_description_<TMPL_VAR __counter__>" value="<TMPL_VAR dunning_description ESCAPE=HTML>"></td>
- <td><input type="checkbox" name="active_<TMPL_VAR __counter__>" value="1" <TMPL_IF active>checked</TMPL_IF>></td>
+ <td><input name="dunning_description_[% DUNNING_it.count %]" value="[% HTML.escape(row.dunning_description) %]"></td>
+ <td><input type="checkbox" name="active_[% DUNNING_it.count %]" value="1" [% IF row.active %]checked[% END %]></td>
<td>
- <input type="checkbox" name="email_<TMPL_VAR __counter__>" value="1" <TMPL_IF email>checked</TMPL_IF>>
- <button type="button" onclick="set_email_window('email_subject_<TMPL_VAR __counter__>', 'email_body_<TMPL_VAR __counter__>', 'email_attachment_<TMPL_VAR __counter__>')">
+ <input type="checkbox" name="email_[% DUNNING_it.count %]" value="1" [% IF row.email %]checked[% END %]>
+ <button type="button" onclick="set_email_window('email_subject_[% DUNNING_it.count %]', 'email_body_[% DUNNING_it.count %]', 'email_attachment_[% DUNNING_it.count %]')">
L</button>
- <input type="hidden" name="email_body_<TMPL_VAR __counter__>" value="<TMPL_VAR email_body ESCAPE=HTML>">
- <input type="hidden" name="email_subject_<TMPL_VAR __counter__>" value="<TMPL_VAR email_subject ESCAPE=HTML>">
- <input type="hidden" name="email_attachment_<TMPL_VAR __counter__>" value="<TMPL_VAR email_attachment ESCAPE=HTML>">
+ <input type="hidden" name="email_body_[% DUNNING_it.count %]" value="[% HTML.escape(row.email_body) %]">
+ <input type="hidden" name="email_subject_[% DUNNING_it.count %]" value="[% HTML.escape(row.email_subject) %]">
+ <input type="hidden" name="email_attachment_[% DUNNING_it.count %]" value="[% HTML.escape(row.email_attachment) %]">
</td>
- <td><input type="checkbox" name="auto_<TMPL_VAR __counter__>" value="1" <TMPL_IF auto>checked</TMPL_IF>></td>
- <td><input name="payment_terms_<TMPL_VAR __counter__>" size="3" value="<TMPL_VAR payment_terms ESCAPE=HTML>"></td>
- <td><input name="terms_<TMPL_VAR __counter__>" size="3" value="<TMPL_VAR terms ESCAPE=HTML>"></td>
- <td><input name="fee_<TMPL_VAR __counter__>" size="5" value="<TMPL_VAR fee ESCAPE=HTML>"></td>
- <td><input name="interest_rate_<TMPL_VAR __counter__>" size="4" value="<TMPL_VAR interest_rate ESCAPE=HTML>">%</td>
- <td><input name="template_<TMPL_VAR __counter__>" value="<TMPL_VAR template ESCAPE=HTML>"></td>
+ <td><input type="checkbox" name="auto_[% DUNNING_it.count %]" value="1" [% IF row.auto %]checked[% END %]></td>
+ <td><input name="payment_terms_[% DUNNING_it.count %]" size="3" value="[% HTML.escape(row.payment_terms) %]"></td>
+ <td><input name="terms_[% DUNNING_it.count %]" size="3" value="[% HTML.escape(row.terms) %]"></td>
+ <td><input name="fee_[% DUNNING_it.count %]" size="5" value="[% HTML.escape(row.fee) %]"></td>
+ <td><input name="interest_rate_[% DUNNING_it.count %]" size="4" value="[% HTML.escape(row.interest_rate) %]">%</td>
+ <td><input name="template_[% DUNNING_it.count %]" value="[% HTML.escape(row.template) %]"></td>
</tr>
- </TMPL_LOOP>
+ [% IF DUNNING_it.last %][% SET rowcount = DUNNING_it.size + 1 %][% END %]
+ [% END %]
- <tr valign="top" class="listrow<TMPL_IF rowcount_odd>1<TMPL_ELSE>0</TMPL_IF>">
+ <tr valign="top" class="listrow[% IF odd %]1[% ELSE %]0[% END %]">
<td>
- <input type="hidden" name="dunning_level_<TMPL_VAR rowcount>" value="<TMPL_VAR rowcount>">
- <input type="hidden" name="id_<TMPL_VAR rowcount>">
- <TMPL_VAR rowcount>
+ <input type="hidden" name="dunning_level_[% rowcount %]" value="[% rowcount %]">
+ <input type="hidden" name="id_[% rowcount %]">
+ [% rowcount %]
</td>
- <td><input name="dunning_description_<TMPL_VAR rowcount>"></td>
- <td><input type="checkbox" name="active_<TMPL_VAR rowcount>" value="1" checked></td>
+ <td><input name="dunning_description_[% rowcount %]"></td>
+ <td><input type="checkbox" name="active_[% rowcount %]" value="1" checked></td>
<td>
- <input type="checkbox" name="email_<TMPL_VAR rowcount>" value="1" checked>
- <button type="button" onclick="set_email_window('email_subject_<TMPL_VAR rowcount>', 'email_body_<TMPL_VAR rowcount>', 'email_attachment_<TMPL_VAR rowcount>')">
+ <input type="checkbox" name="email_[% rowcount %]" value="1" checked>
+ <button type="button" onclick="set_email_window('email_subject_[% rowcount %]', 'email_body_[% rowcount %]', 'email_attachment_[% rowcount %]')">
L</button>
- <input type="hidden" name="email_body_<TMPL_VAR rowcount>">
- <input type="hidden" name="email_subject_<TMPL_VAR rowcount>">
- <input type="hidden" name="email_attachment_<TMPL_VAR rowcount>">
+ <input type="hidden" name="email_body_[% rowcount %]">
+ <input type="hidden" name="email_subject_[% rowcount %]">
+ <input type="hidden" name="email_attachment_[% rowcount %]">
</td>
- <td><input type="checkbox" name="auto_<TMPL_VAR rowcount>" value="1" checked></td>
- <td><input name="payment_terms_<TMPL_VAR rowcount>" size="3"></td>
- <td><input name="terms_<TMPL_VAR rowcount>" size="3"></td>
- <td><input name="fee_<TMPL_VAR rowcount>" size="5"></td>
- <td><input name="interest_rate_<TMPL_VAR rowcount>" size="4">%</td>
- <td><input name="template_<TMPL_VAR rowcount>"></td>
+ <td><input type="checkbox" name="auto_[% rowcount %]" value="1" checked></td>
+ <td><input name="payment_terms_[% rowcount %]" size="3"></td>
+ <td><input name="terms_[% rowcount %]" size="3"></td>
+ <td><input name="fee_[% rowcount %]" size="5"></td>
+ <td><input name="interest_rate_[% rowcount %]" size="4">%</td>
+ <td><input name="template_[% rowcount %]"></td>
</tr>
</table>
- <input type="hidden" name="rowcount" value="<TMPL_VAR rowcount ESCAPE=HTML>">
+ <input type="hidden" name="rowcount" value="[% HTML.escape(rowcount) %]">
<hr size="3" noshade>
<p>
<input type="checkbox" name="create_invoices_for_fees" id="create_invoices_for_fees"
- <TMPL_IF create_invoices_for_fees>checked</TMPL_IF>
+ [% IF create_invoices_for_fees %]checked[% END %]
value="1" onclick="enable_invoice_controls(this.checked);">
<label for="create_invoices_for_fees">Automatisches Erstellen von Debitorenrechnungen über Mahngebühren und Zinsen</label>
</p>
<tr>
<th align="right">Konto für Gebühren</th>
<td>
- <select name="AR_amount_fee" <TMPL_UNLESS create_invoices_for_fees>disabled</TMPL_UNLESS>>
- <TMPL_LOOP SELECT_AR_AMOUNT><option value="<TMPL_VAR id ESCAPE=HTML>" <TMPL_IF AR_amount_fee_selected>selected</TMPL_IF>><TMPL_VAR accno ESCAPE=HTML>--<TMPL_VAR description ESCAPE=HTML></option>
- </TMPL_LOOP>
+ <select name="AR_amount_fee" [% UNLESS create_invoices_for_fees %]disabled[% END %]>
+ [% FOREACH row = SELECT_AR_AMOUNT %]<option value="[% HTML.escape(row.id) %]" [% IF row.AR_amount_fee_selected %]selected[% END %]>[% HTML.escape(row.accno) %]--[% HTML.escape(row.description) %]</option>
+ [% END %]
</select>
</td>
</tr>
<tr>
<th align="right">Konto für Zinsen</th>
<td>
- <select name="AR_amount_interest" <TMPL_UNLESS create_invoices_for_fees>disabled</TMPL_UNLESS>>
- <TMPL_LOOP SELECT_AR_AMOUNT><option value="<TMPL_VAR id ESCAPE=HTML>" <TMPL_IF AR_amount_interest_selected>selected</TMPL_IF>><TMPL_VAR accno ESCAPE=HTML>--<TMPL_VAR description ESCAPE=HTML></option>
- </TMPL_LOOP>
+ <select name="AR_amount_interest" [% UNLESS create_invoices_for_fees %]disabled[% END %]>
+ [% FOREACH row = SELECT_AR_AMOUNT %]<option value="[% HTML.escape(row.id) %]" [% IF row.AR_amount_interest_selected %]selected[% END %]>[% HTML.escape(row.accno) %]--[% HTML.escape(row.description) %]</option>
+ [% END %]
</select>
</td>
</tr>
<tr>
<th align="right">Buchen auf</th>
<td>
- <select name="AR" <TMPL_UNLESS create_invoices_for_fees>disabled</TMPL_UNLESS>>
- <TMPL_LOOP SELECT_AR><option value="<TMPL_VAR id ESCAPE=HTML>" <TMPL_IF AR_selected>selected</TMPL_IF>><TMPL_VAR accno ESCAPE=HTML>--<TMPL_VAR description ESCAPE=HTML></option>
- </TMPL_LOOP>
+ <select name="AR" [% UNLESS create_invoices_for_fees %]disabled[% END %]>
+ [% FOREACH row = SELECT_AR %]<option value="[% HTML.escape(row.id) %]" [% IF row.AR_selected %]selected[% END %]>[% HTML.escape(row.accno) %]--[% HTML.escape(row.description) %]</option>
+ [% END %]
</select>
</td>
</tr>
<hr size="3" noshade>
- <input type="hidden" name="callback" value="<TMPL_VAR callback ESCAPE=HTML>">
+ <input type="hidden" name="callback" value="[% HTML.escape(callback) %]">
- <input type="hidden" name="login" value="<TMPL_VAR login ESCAPE=HTML>">
- <input type="hidden" name="password" value="<TMPL_VAR password ESCAPE=HTML>">
+ <input type="hidden" name="login" value="[% HTML.escape(login) %]">
+ <input type="hidden" name="password" value="[% HTML.escape(password) %]">
<input class="submit" type="submit" name="action" value="Speichern">
-<body>
+[% USE HTML %]<body>
<script type="text/javascript" src="js/common.js"></script>
<script type="text/javascript" src="js/dunning.js"></script>
-->
</script>
- <div class="listtop" width="100%"><TMPL_VAR title></div>
+ <div class="listtop" width="100%">[% title %]</div>
<form method="post" action="dn.pl" name="Form">
<table>
<th class="listheading"><translate>Template</translate></th>
</tr>
- <TMPL_LOOP DUNNING>
- <tr valign="top" class="listrow<TMPL_IF __odd__>1<TMPL_ELSE>0</TMPL_IF>">
+ [% SET odd = '1' %][% USE DUNNING_it = Iterator(DUNNING) %][% FOREACH row = DUNNING_it %]
+ <tr valign="top" class="listrow[% IF odd %]1[% SET odd = '0' %][% ELSE %]0[% SET odd = '1' %][% END %]">
<td>
- <input type="hidden" name="dunning_level_<TMPL_VAR __counter__>" value="<TMPL_VAR __counter__>">
- <input type="hidden" name="id_<TMPL_VAR __counter__>" value="<TMPL_VAR id ESCAPE=HTML>">
- <TMPL_VAR __counter__>
+ <input type="hidden" name="dunning_level_[% DUNNING_it.count %]" value="[% DUNNING_it.count %]">
+ <input type="hidden" name="id_[% DUNNING_it.count %]" value="[% HTML.escape(row.id) %]">
+ [% DUNNING_it.count %]
</td>
- <td><input name="dunning_description_<TMPL_VAR __counter__>" value="<TMPL_VAR dunning_description ESCAPE=HTML>"></td>
- <td><input type="checkbox" name="active_<TMPL_VAR __counter__>" value="1" <TMPL_IF active>checked</TMPL_IF>></td>
+ <td><input name="dunning_description_[% DUNNING_it.count %]" value="[% HTML.escape(row.dunning_description) %]"></td>
+ <td><input type="checkbox" name="active_[% DUNNING_it.count %]" value="1" [% IF row.active %]checked[% END %]></td>
<td>
- <input type="checkbox" name="email_<TMPL_VAR __counter__>" value="1" <TMPL_IF email>checked</TMPL_IF>>
- <button type="button" onclick="set_email_window('email_subject_<TMPL_VAR __counter__>', 'email_body_<TMPL_VAR __counter__>', 'email_attachment_<TMPL_VAR __counter__>')">
+ <input type="checkbox" name="email_[% DUNNING_it.count %]" value="1" [% IF row.email %]checked[% END %]>
+ <button type="button" onclick="set_email_window('email_subject_[% DUNNING_it.count %]', 'email_body_[% DUNNING_it.count %]', 'email_attachment_[% DUNNING_it.count %]')">
<translate>L</translate></button>
- <input type="hidden" name="email_body_<TMPL_VAR __counter__>" value="<TMPL_VAR email_body ESCAPE=HTML>">
- <input type="hidden" name="email_subject_<TMPL_VAR __counter__>" value="<TMPL_VAR email_subject ESCAPE=HTML>">
- <input type="hidden" name="email_attachment_<TMPL_VAR __counter__>" value="<TMPL_VAR email_attachment ESCAPE=HTML>">
+ <input type="hidden" name="email_body_[% DUNNING_it.count %]" value="[% HTML.escape(row.email_body) %]">
+ <input type="hidden" name="email_subject_[% DUNNING_it.count %]" value="[% HTML.escape(row.email_subject) %]">
+ <input type="hidden" name="email_attachment_[% DUNNING_it.count %]" value="[% HTML.escape(row.email_attachment) %]">
</td>
- <td><input type="checkbox" name="auto_<TMPL_VAR __counter__>" value="1" <TMPL_IF auto>checked</TMPL_IF>></td>
- <td><input name="payment_terms_<TMPL_VAR __counter__>" size="3" value="<TMPL_VAR payment_terms ESCAPE=HTML>"></td>
- <td><input name="terms_<TMPL_VAR __counter__>" size="3" value="<TMPL_VAR terms ESCAPE=HTML>"></td>
- <td><input name="fee_<TMPL_VAR __counter__>" size="5" value="<TMPL_VAR fee ESCAPE=HTML>"></td>
- <td><input name="interest_rate_<TMPL_VAR __counter__>" size="4" value="<TMPL_VAR interest_rate ESCAPE=HTML>">%</td>
- <td><input name="template_<TMPL_VAR __counter__>" value="<TMPL_VAR template ESCAPE=HTML>"></td>
+ <td><input type="checkbox" name="auto_[% DUNNING_it.count %]" value="1" [% IF row.auto %]checked[% END %]></td>
+ <td><input name="payment_terms_[% DUNNING_it.count %]" size="3" value="[% HTML.escape(row.payment_terms) %]"></td>
+ <td><input name="terms_[% DUNNING_it.count %]" size="3" value="[% HTML.escape(row.terms) %]"></td>
+ <td><input name="fee_[% DUNNING_it.count %]" size="5" value="[% HTML.escape(row.fee) %]"></td>
+ <td><input name="interest_rate_[% DUNNING_it.count %]" size="4" value="[% HTML.escape(row.interest_rate) %]">%</td>
+ <td><input name="template_[% DUNNING_it.count %]" value="[% HTML.escape(row.template) %]"></td>
</tr>
- </TMPL_LOOP>
+ [% IF DUNNING_it.last %][% SET rowcount = DUNNING_it.size + 1 %][% END %]
+ [% END %]
- <tr valign="top" class="listrow<TMPL_IF rowcount_odd>1<TMPL_ELSE>0</TMPL_IF>">
+ <tr valign="top" class="listrow[% IF odd %]1[% ELSE %]0[% END %]">
<td>
- <input type="hidden" name="dunning_level_<TMPL_VAR rowcount>" value="<TMPL_VAR rowcount>">
- <input type="hidden" name="id_<TMPL_VAR rowcount>">
- <TMPL_VAR rowcount>
+ <input type="hidden" name="dunning_level_[% rowcount %]" value="[% rowcount %]">
+ <input type="hidden" name="id_[% rowcount %]">
+ [% rowcount %]
</td>
- <td><input name="dunning_description_<TMPL_VAR rowcount>"></td>
- <td><input type="checkbox" name="active_<TMPL_VAR rowcount>" value="1" checked></td>
+ <td><input name="dunning_description_[% rowcount %]"></td>
+ <td><input type="checkbox" name="active_[% rowcount %]" value="1" checked></td>
<td>
- <input type="checkbox" name="email_<TMPL_VAR rowcount>" value="1" checked>
- <button type="button" onclick="set_email_window('email_subject_<TMPL_VAR rowcount>', 'email_body_<TMPL_VAR rowcount>', 'email_attachment_<TMPL_VAR rowcount>')">
+ <input type="checkbox" name="email_[% rowcount %]" value="1" checked>
+ <button type="button" onclick="set_email_window('email_subject_[% rowcount %]', 'email_body_[% rowcount %]', 'email_attachment_[% rowcount %]')">
<translate>L</translate></button>
- <input type="hidden" name="email_body_<TMPL_VAR rowcount>">
- <input type="hidden" name="email_subject_<TMPL_VAR rowcount>">
- <input type="hidden" name="email_attachment_<TMPL_VAR rowcount>">
+ <input type="hidden" name="email_body_[% rowcount %]">
+ <input type="hidden" name="email_subject_[% rowcount %]">
+ <input type="hidden" name="email_attachment_[% rowcount %]">
</td>
- <td><input type="checkbox" name="auto_<TMPL_VAR rowcount>" value="1" checked></td>
- <td><input name="payment_terms_<TMPL_VAR rowcount>" size="3"></td>
- <td><input name="terms_<TMPL_VAR rowcount>" size="3"></td>
- <td><input name="fee_<TMPL_VAR rowcount>" size="5"></td>
- <td><input name="interest_rate_<TMPL_VAR rowcount>" size="4">%</td>
- <td><input name="template_<TMPL_VAR rowcount>"></td>
+ <td><input type="checkbox" name="auto_[% rowcount %]" value="1" checked></td>
+ <td><input name="payment_terms_[% rowcount %]" size="3"></td>
+ <td><input name="terms_[% rowcount %]" size="3"></td>
+ <td><input name="fee_[% rowcount %]" size="5"></td>
+ <td><input name="interest_rate_[% rowcount %]" size="4">%</td>
+ <td><input name="template_[% rowcount %]"></td>
</tr>
</table>
- <input type="hidden" name="rowcount" value="<TMPL_VAR rowcount ESCAPE=HTML>">
+ <input type="hidden" name="rowcount" value="[% HTML.escape(rowcount) %]">
<hr size="3" noshade>
<p>
<input type="checkbox" name="create_invoices_for_fees" id="create_invoices_for_fees"
- <TMPL_IF create_invoices_for_fees>checked</TMPL_IF>
+ [% IF create_invoices_for_fees %]checked[% END %]
value="1" onclick="enable_invoice_controls(this.checked);">
<label for="create_invoices_for_fees"><translate>Automatically create customer invoices for fees and interests</translate></label>
</p>
<tr>
<th align="right"><translate>Account for fees</translate></th>
<td>
- <select name="AR_amount_fee" <TMPL_UNLESS create_invoices_for_fees>disabled</TMPL_UNLESS>>
- <TMPL_LOOP SELECT_AR_AMOUNT><option value="<TMPL_VAR id ESCAPE=HTML>" <TMPL_IF AR_amount_fee_selected>selected</TMPL_IF>><TMPL_VAR accno ESCAPE=HTML>--<TMPL_VAR description ESCAPE=HTML></option>
- </TMPL_LOOP>
+ <select name="AR_amount_fee" [% UNLESS create_invoices_for_fees %]disabled[% END %]>
+ [% FOREACH row = SELECT_AR_AMOUNT %]<option value="[% HTML.escape(row.id) %]" [% IF row.AR_amount_fee_selected %]selected[% END %]>[% HTML.escape(row.accno) %]--[% HTML.escape(row.description) %]</option>
+ [% END %]
</select>
</td>
</tr>
<tr>
<th align="right"><translate>Account for interest</translate></th>
<td>
- <select name="AR_amount_interest" <TMPL_UNLESS create_invoices_for_fees>disabled</TMPL_UNLESS>>
- <TMPL_LOOP SELECT_AR_AMOUNT><option value="<TMPL_VAR id ESCAPE=HTML>" <TMPL_IF AR_amount_interest_selected>selected</TMPL_IF>><TMPL_VAR accno ESCAPE=HTML>--<TMPL_VAR description ESCAPE=HTML></option>
- </TMPL_LOOP>
+ <select name="AR_amount_interest" [% UNLESS create_invoices_for_fees %]disabled[% END %]>
+ [% FOREACH row = SELECT_AR_AMOUNT %]<option value="[% HTML.escape(row.id) %]" [% IF row.AR_amount_interest_selected %]selected[% END %]>[% HTML.escape(row.accno) %]--[% HTML.escape(row.description) %]</option>
+ [% END %]
</select>
</td>
</tr>
<tr>
<th align="right"><translate>Record in</translate></th>
<td>
- <select name="AR" <TMPL_UNLESS create_invoices_for_fees>disabled</TMPL_UNLESS>>
- <TMPL_LOOP SELECT_AR><option value="<TMPL_VAR id ESCAPE=HTML>" <TMPL_IF AR_selected>selected</TMPL_IF>><TMPL_VAR accno ESCAPE=HTML>--<TMPL_VAR description ESCAPE=HTML></option>
- </TMPL_LOOP>
+ <select name="AR" [% UNLESS create_invoices_for_fees %]disabled[% END %]>
+ [% FOREACH row = SELECT_AR %]<option value="[% HTML.escape(row.id) %]" [% IF row.AR_selected %]selected[% END %]>[% HTML.escape(row.accno) %]--[% HTML.escape(row.description) %]</option>
+ [% END %]
</select>
</td>
</tr>
<hr size="3" noshade>
- <input type="hidden" name="callback" value="<TMPL_VAR callback ESCAPE=HTML>">
+ <input type="hidden" name="callback" value="[% HTML.escape(callback) %]">
- <input type="hidden" name="login" value="<TMPL_VAR login ESCAPE=HTML>">
- <input type="hidden" name="password" value="<TMPL_VAR password ESCAPE=HTML>">
+ <input type="hidden" name="login" value="[% HTML.escape(login) %]">
+ <input type="hidden" name="password" value="[% HTML.escape(password) %]">
<input class="submit" type="submit" name="action" value="<translate>Save</translate>">