]> wagnertech.de Git - mfinanz.git/blobdiff - templates/webpages/am/edit_accounts.html
Bugfix für 1648 - bebuchte Konten sollten nicht in Überschriften umgewandelt werden...
[mfinanz.git] / templates / webpages / am / edit_accounts.html
index bb8d48431b58fe77487c354abaa548e6017f6766..4a7503d859f07fed8c7bce65d8f0975344150b5c 100644 (file)
@@ -60,10 +60,25 @@ window.onload = function() {
 
         </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">