# HG changeset patch # User Johannes Bornhold # Date 2016-06-03 06:01:30 # Node ID 8177bcaec143c9b560215faa9404800ba091a586 # Parent 71cbc422f7f29a4bd735bf4589957f5c8eab1700 templates: Add an extension point to the authn plugin settings template. Allows derived templates to add something below the form fileds. 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 @@ -49,6 +49,7 @@
${h.secure_form(request.resource_path(resource, route_name='auth_home'))}
+ %for node in plugin.get_settings_schema(): <% label_css_class = ("label-checkbox" if (node.widget == "bool") else "") %>
@@ -75,9 +76,17 @@
%endfor + + ## Allow derived templates to add something below the form + ## input fields + %if hasattr(next, 'below_form_fields'): + ${next.below_form_fields()} + %endif +
${h.submit('save',_('Save'),class_="btn")}
+
${h.end_form()}