diff --git a/rhodecode/templates/admin/auth/plugin_settings.mako b/rhodecode/templates/admin/auth/plugin_settings.mako --- a/rhodecode/templates/admin/auth/plugin_settings.mako +++ b/rhodecode/templates/admin/auth/plugin_settings.mako @@ -51,23 +51,29 @@
%for node in plugin.get_settings_schema(): - <% label_css_class = ("label-checkbox" if (node.widget == "bool") else "") %> + <% + label_to_type = {'label-checkbox': 'bool', 'label-textarea': 'textarea'} + %> +
-
+
%if node.widget in ["string", "int", "unicode"]: - ${h.text(node.name, defaults.get(node.name), class_="medium")} + ${h.text(node.name, defaults.get(node.name), class_="large")} %elif node.widget == "password": - ${h.password(node.name, defaults.get(node.name), class_="medium")} + ${h.password(node.name, defaults.get(node.name), class_="large")} %elif node.widget == "bool":
${h.checkbox(node.name, True, checked=defaults.get(node.name))}
%elif node.widget == "select": ${h.select(node.name, defaults.get(node.name), node.validator.choices)} + %elif node.widget == "textarea": +
${h.textarea(node.name, defaults.get(node.name), rows=10)}
%elif node.widget == "readonly": ${node.default} %else: This field is of type ${node.typ}, which cannot be displayed. Must be one of [string|int|bool|select]. %endif + %if node.name in errors: ${errors.get(node.name)}