-
Notifications
You must be signed in to change notification settings - Fork 2k
/
edit_form.html
30 lines (26 loc) · 937 Bytes
/
edit_form.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<form
class="form-horizontal ${'has-errors' if c.errors or c.fieldset.errors else ''}"
id="group-edit"
action=""
method="post"
xmlns:py="http://genshi.edgewall.org/"
xmlns:xi="http://www.w3.org/2001/XInclude"
>
${h.literal(c.fieldset.render())}
<fieldset>
<legend>Users</legend>
<div class="control-group" py:for="user in c.fieldset.model.users">
<label class="control-label" for="AuthorizationGroup-users_${user.name}" style="display: inline;">${user.name}</label>
<div class="controls">
<label class="checkbox">
<input checked="checked" id="AuthorizationGroup-users-current"
name="AuthorizationGroup-users-current" type="checkbox" value="${user.name}" />
</label>
</div>
</div>
<p py:if="not c.fieldset.model.users">There are no users currently in this group.</p>
</fieldset>
${h.literal(c.fieldset2.render())}
<br/>
${h.submit('save', _('Save'))}
</form>