diff --git a/rhodecode/templates/admin/auth/plugin_settings.html b/rhodecode/templates/admin/auth/plugin_settings.html --- a/rhodecode/templates/admin/auth/plugin_settings.html +++ b/rhodecode/templates/admin/auth/plugin_settings.html @@ -50,40 +50,29 @@ ${h.secure_form(request.resource_path(resource, route_name='auth_home'))}
%for node in plugin.get_settings_schema(): - <% label_cls = ("label-checkbox" if (node.widget == "bool") else "") %> + <% label_css_class = ("label-checkbox" if (node.widget == "bool") else "") %>
-
- %if node.widget in ["string", "int", "unicode"]: -
- ${h.text(node.name, class_="medium")} -

${node.description}

-
- %elif node.widget == "password": -
- ${h.password(node.name, class_="medium")} -

${node.description}

-
- %elif node.widget == "bool": -
-
${h.checkbox(node.name, True)}
- ${node.description} -
- %elif node.widget == "select": -
+
+
+ %if node.widget in ["string", "int", "unicode"]: + ${h.text(node.name, node.default, class_="medium")} + %elif node.widget == "password": + ${h.password(node.name, node.default, class_="medium")} + %elif node.widget == "bool": +
${h.checkbox(node.name, node.default)}
+ %elif node.widget == "select": ${h.select(node.name, node.default, node.validator.choices)} -

${node.description}

-
- %elif node.widget == "readonly": -
+ %elif node.widget == "readonly": ${node.default} -

${node.description}

-
- %else: -
+ %else: This field is of type ${node.typ}, which cannot be displayed. Must be one of [string|int|bool|select]. -

${node.description}

-
- %endif + %endif + %if node.name in errors: + ${errors.get(node.name)} +
+ %endif +

${node.description}

+
%endfor