forked from adamlaska/datatracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathedit.html
More file actions
66 lines (57 loc) · 1.74 KB
/
edit.html
File metadata and controls
66 lines (57 loc) · 1.74 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
{% extends "base_site.html" %}
{% load staticfiles %}
{% block title %}Rolodex - Edit{% endblock %}
{% block extrahead %}{{ block.super }}
<script type="text/javascript" src="{% static 'secr/js/dynamic_inlines.js' %}"></script>
{% endblock %}
{% block breadcrumbs %}{{ block.super }}
» <a href="../../">Rolodex</a>
» <a href="../">{{ person }}</a>
» Edit
{% endblock %}
{% block content %}
<form enctype="multipart/form-data" action="" method="post" id="rolodex-edit-form">{% csrf_token %}
<div class="module">
<h2>Rolodex - Edit</h2>
<table id="rolodex-edit-table" class="full-width amstable">
{{ person_form.as_table }}
</table>
<div class="inline-group">
<div class="tabular inline-related">
<h2>Email Addresses</h2>
{{ email_formset.management_form }}
{{ email_formset.non_form_errors }}
<table id="rolodex-email-table" class="full-width">
<thead>
<tr>
{% for field in email_formset.forms.0 %}
{% if not field.is_hidden %}
<th>{{ field.label }}</th>
{% endif %}
{% endfor %}
</tr>
</thead>
<tbody>
{% for form in email_formset.forms %}
{% if form.non_field_errors %}{{ form.non_field_errors }}{% endif %}
<tr class="{% cycle 'row1' 'row2' %}">
{# Include the hidden fields in the form #}
{% for hidden in form.hidden_fields %}
{{ hidden }}
{% endfor %}
{% for field in form.visible_fields %}
<td>
{{ field.errors }}
{{ field }}
</td>
{% endfor %}
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div> <!-- inline-related last_related -->
{% include "includes/buttons_save_cancel.html" %}
</form>
</div> <!-- module -->
{% endblock %}