${_('Plugin')}: ${resource.display_name}
${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 "") %>
%endfor
## Allow derived templates to add something below the form
## input fields
%if hasattr(next, 'below_form_fields'):
${next.below_form_fields()}
%endif
${h.end_form()}
%if node.widget in ["string", "int", "unicode"]:
${h.text(node.name, defaults.get(node.name), class_="medium")}
%elif node.widget == "password":
${h.password(node.name, defaults.get(node.name), class_="medium")}
%elif node.widget == "bool":
%endif
${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 == "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:
%endif
${node.description}