table_edit_form.html
1.81 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
<table class="scheme{{ color_scheme }}">
<thead>
<tr>
{% if params.0 != 'export' %}
<th>w.</th>
<th>k.</th>
<th>↕</th>
<th>↔</th>
{% else %}
<th>tag</th>
{% endif %}
<th></th>
<th>ograniczenia</th>
</tr>
</thead>
{% for coord, params, form in form_rows %}
<tr class="{% if params.0 == 'header' %}header{% else %}cell{% endif %}">
{% if params.0 != 'export' %}
<td><input type="text" class="row" value="{{ coord.0 }}" size="1"/></td>
<td><input type="text" class="col" value="{{ coord.1 }}" size="1"/></td>
<td><input type="text" class="rspan" value="{{ coord.2 }}" size="1"/></td>
<td><input type="text" class="cspan" value="{{ coord.3 }}" size="1"/></td>
{% else %}
<td><input type="text" class="tag" value="{{ coord }}"/></td>
{% endif %}
<td>
{% if params.0 == 'table' %}
ind:<input type="text" class="ind" value="{{ coord.4 }}" size="1"/>
{% endif %}
{% if params.0 == 'table' or params.0 == 'export' %}
{{ params.1.base_form_label }}
pre:<input type="text" class="pre" value="{{ params.2 }}" size="3"/>
suf:<input type="text" class="suf" value="{{ params.3 }}" size="3"/>
{% endif %}
{% if params.0 == 'header' %}
nagł:<input type="text" class="label" value="{{ params.1 }}" size="10"/>
{{ params.2.css_class }}
{% endif %}
</td>
<td>{{ form.as_ul }}</td>
</tr>
{% endfor %}
</table>