diff --git a/applications/admin/views/default/editor_settings.html b/applications/admin/views/default/editor_settings.html index 920c9702..f8898e95 100644 --- a/applications/admin/views/default/editor_settings.html +++ b/applications/admin/views/default/editor_settings.html @@ -7,7 +7,6 @@ }} {{themes = [f[:-4] for f in listfiles('admin', "static/codemirror/theme", regexp='.*\.css$' )]}} {{editors = ['default', 'vim', 'emacs']}} -{{booleanOptions = ['true', 'false']}}
@@ -20,11 +19,11 @@
-
{{=SELECT(booleanOptions, value=editor_settings['closetag'], _name="closetag" )}}
+
{{=stateWidget("closetag", value=editor_settings['closetag'])}}
-
{{=SELECT(booleanOptions, value=editor_settings['codefolding'], _name="codefolding" )}}
+
{{=stateWidget("codefolding", value=editor_settings['codefolding'])}}
@@ -32,7 +31,7 @@
-
{{=SELECT(booleanOptions, value=editor_settings['indentwithtabs'], _name="indentwithtabs" )}}
+
{{=stateWidget("indentwithtabs", value=editor_settings['indentwithtabs'])}}