</script>
<script type="text/javascript">
-window.onload = function() {
+$(function() {
setupDependencies('EditAccount'); //name of form(s). Seperate each with a comma (ie: 'weboptions', 'myotherform' )
- };
+});
</script>
-<body>
<form method="post" name="EditAccount" action="am.pl">
<input type="hidden" name="id" value="[% HTML.escape(id) %]">
<input type="hidden" name="type" value="account">
<input type="hidden" name="orphaned" value="[% HTML.escape(orphaned) %]">
<input type="hidden" name="new_chart_valid" value="[% HTML.escape(new_chart_valid) %]">
-<input type="hidden" name="original_accno" value="[% HTML.escape(accno) %]">
<input type="hidden" name="inventory_accno_id" value="[% HTML.escape(inventory_accno_id) %]">
<input type="hidden" name="income_accno_id" value="[% HTML.escape(income_accno_id) %]">
<input type="hidden" name="expense_accno_id" value="[% HTML.escape(expense_accno_id) %]">
<td>
[% IF AccountIsPosted %]
[% L.select_tag('dummy_charttype',
- L.options_for_select(all_charttypes,
- title => 'name', value => 'value',
- default => selected_charttype),
+ all_charttypes,
+ title_key => 'name',
+ value_key => 'value',
+ default => selected_charttype,
disabled => '1') %]
[% L.hidden_tag('charttype', selected_charttype) %]
[% ELSE %]
[% L.select_tag('charttype',
- L.options_for_select(all_charttypes,
- title => 'name', value => 'value',
- default => selected_charttype)) %]
+ all_charttypes,
+ title_key => 'name',
+ value_key => 'value',
+ default => selected_charttype) %]
[% END %]
</td>
</tr>