/
sequence_edit.html
150 lines (147 loc) · 6.27 KB
/
sequence_edit.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
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
{% extends "base.html" %}
{% block content %}
<title>{{ sequence.title }} | Cantus Manuscript Database</title>
<div class="container">
<div class="row">
<div class="p-3 col-lg-12 bg-white rounded">
<!--Display form error message -->
{% if form.errors %}
<div class="alert alert-danger alert-dismissible">
<a href="#" class="close" data-dismiss="alert" aria-label="close">×</a>
{% for error in form.non_field_errors %}
<a href="#" class="close" data-dismiss="alert" aria-label="close">×</a>
{{ error }}
{% endfor %}
{% for field in form %}
{% if field.errors %}
<a href="#" class="close" data-dismiss="alert" aria-label="close">×</a>
{{ field.label }}: {{ field.errors|striptags }}
{% endif %}
{% endfor %}
</div>
{% endif %}
<h3><em>Edit Sequence</em> | {{ sequence.title }}</h3>
{% if user.is_authenticated %}
<p>
<a href="{% url 'sequence-detail' sequence.id %}">View</a> | Edit
</p>
{% endif %}
<form method="post" style="line-height: normal">{% csrf_token %}
<div class="form-row">
<div class="form-group m-1 col-lg-12">
<small>{{ form.title.label_tag }}</small>
{{ form.title }}
</div>
</div>
<div class="form-row">
<div class="form-group m-1 col-lg-12">
<small>{{ form.siglum.label_tag }}</small>
{{ form.siglum }}
</div>
</div>
<div class="form-row">
<div class="form-group m-1 col-lg-12">
<small>{{ form.incipit.label_tag }}</small>
{{ form.incipit }}
</div>
</div>
<div class="form-row">
<div class="form-group m-1 col-lg-12">
<small>{{ form.folio.label_tag }}</small>
{{ form.folio }}
</div>
</div>
<div class="form-row">
<div class="form-group m-1 col-lg-12">
<small>{{ form.sequence.label_tag }}</small>
{{ form.s_sequence }}
</div>
</div>
<div class="form-row">
<div class="form-group m-1 col-lg-12">
<small>{{ form.genre.label_tag }}</small>
{{ form.genre }}
</div>
</div>
<div class="form-row">
<div class="form-group m-1 col-lg-12">
<small>{{ form.rubrics.label_tag }}</small>
{{ form.rubrics }}
</div>
</div>
<div class="form-row">
<div class="form-group m-1 col-lg-12">
<label for="{{ form.analecta_hymnica.id_for_label }}">
<small>Analecta Hymnica:</small>
</label>
{{ form.analecta_hymnica }}
</div>
</div>
<div class="form-row">
<div class="form-group m-1 col-lg-12">
<small>{{ form.indexing_notes.label_tag }}</small>
{{ form.indexing_notes }}
</div>
</div>
<div class="form-row">
<div class="form-group m-1 col-lg-12">
<small>{{ form.date.label_tag }}</small>
{{ form.date }}
</div>
</div>
<div class="form-row">
<div class="form-group m-1 col-lg-12">
<small>{{ form.col1.label_tag }}</small>
{{ form.col1 }}
</div>
</div>
<div class="form-row">
<div class="form-group m-1 col-lg-12">
<small>{{ form.col2.label_tag }}</small>
{{ form.col2 }}
</div>
</div>
<div class="form-row">
<div class="form-group m-1 col-lg-12">
<small>{{ form.col3.label_tag }}</small>
{{ form.col3 }}
</div>
</div>
<div class="form-row">
<div class="form-group m-1 col-lg-12">
<label for="{{ form.ah_vol.id_for_label }}">
<small>AH volume:</small>
</label>
{{ form.ah_volume }}
</div>
</div>
<div class="form-row">
<div class="form-group m-1 col-lg-12">
<small>{{ form.source.label_tag }}</small>
{{ form.source }}
</div>
</div>
<div class="form-row">
<div class="form-group m-1 col-lg-12">
<label for="{{ form.cantus_id.id_for_label }}">
<small>Cantus ID:</small>
</label>
{{ form.cantus_id }}
</div>
</div>
<div class="form-row">
<div class="form-group m-1 col-lg-12">
<small>{{ form.image_link.label_tag }}</small>
{{ form.image_link }}
</div>
</div>
<div class="form-row">
<div class="form-group m-1 col-lg-2">
<button type="submit" class="btn btn-dark btn-sm" id="btn-submit">Save</button>
</div>
</div>
</form>
</div>
</div>
</div>
{% endblock %}