${_('Plugin')}: ${resource.display_name}
${h.secure_form(request.resource_path(resource, route_name='auth_home'), request=request)}
%for node in plugin.get_settings_schema():
<%
label_to_type = {'label-checkbox': 'bool', 'label-textarea': 'textarea'}
%>
%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_="large")}
%elif node.widget == "password":
${h.password(node.name, defaults.get(node.name), class_="large")}
%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, class_="select2AuthSetting")}
%elif node.widget == "select_with_labels":
${h.select(node.name, defaults.get(node.name), node.choices, class_="select2AuthSetting")}
%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:
%endif
${node.description}
% for node in plugin.get_settings_schema(): *option*: `${node.name}` => `${defaults.get(node.name)}`${'\n # '.join(['']+node.description.splitlines())} % endfor% endif