pattern_edit_form.html
1.79 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
<form action="" method="post" id="pattern-edit-form">
<p><input type="hidden" name="id" value="{{ pattern.id }}"/></p>
<div id="pattern-properties">
{{ type_form.as_p }}
{% for field in form %}
{% if field.name != 'basic_form_ending' %}
<p class="main-field">
{{ field.label_tag }} {{ field.as_widget }}
{% if field.name == 'example' %}
{{ form.basic_form_ending.as_widget }}
{% endif %}
</p>
{% endif %}
{% endfor %}
<p class="pattern-save">
<button type="submit" disabled="disabled" id="pattern-edit-submit">
Zapisz
</button>
<button type="reset" disabled="disabled" id="pattern-edit-cancel">
Anuluj
</button>
</p>
</div>
<table id="ending-list" {{ editable|yesno:'class="editable",'|safe }}>
{% for base_form_label, ending_group in ending_groups.iteritems %}
<tr>
<td><strong>{{ base_form_label.symbol }}</strong></td>
<td>
<ul class="ending-group"
id="bfl-{{ base_form_label.symbol }}">
{% for ending, ro_qualifiers, form in ending_group %}
{% include 'ending_row.html' %}
{% endfor %}
</ul>
</td>
<td>
{% if editable %}
<button type="button" class="add-ending">
<span class="ui-icon ui-icon-plus"></span>
</button>
{% endif %}
</td>
</tr>
{% endfor %}
</table>
</form>