</label>
</td>
- <td><select name="charttype">[% select_charttype %]</select></td>
+ <td>
+[% IF AccountIsPosted %]
+ [% L.select_tag('dummy_charttype',
+ L.options_for_select(all_charttypes,
+ title => 'name', value => '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)) %]
+[% END %]
+ </td>
</tr>
</table>
</fieldset>
+
<fieldset class="DEPENDS ON charttype BEING A">
<legend>[% 'Account Type' | $T8 %]</legend>
<select name="category" id="AccountType" class="DEPENDS ON charttype BEING A">