{% extends "base.html" %} {% block title %}Edit a Person{% endblock %} {% block content %}

Update Person "{{person.name}}"

{% set mt = h.ModelTags(person) %} {{h.form(h.url_for(controller='/admin/person', action='process_update', id=person.id))}} {{h.hidden('login', person.login)}} {# no list comprehension in jinja. do it the long way around: #} {% set roles = [] %} {% for r in person.site_roles %} {{ roles.append(r.role) }} {% endfor %}
Password: {{ h.password('password') }}
Confirm Password: {{ h.password('password_verify') }}
Name: {{ mt.text('name') }}
Email: {{ mt.text('email') }}
Site Roles:{{h.checkbox('site_roles-1', 'Project Admin', 'Project Admin' in roles, 'Project Admin')}}
{{h.checkbox('site_roles-2', 'User Admin', 'User Admin' in roles, 'User Admin')}}
{{h.submit('update', 'Update User')}}
{{h.end_form()}} {% endblock %}