table_edit_form.html
1.11 KB
{% if export %}
<button type="button" id="add-export-cell">Dodaj komórkę</button>
{% else %}
<button type="button" id="add-table-cell">Dodaj komórkę</button>
<button type="button" id="add-header">Dodaj nagłówek</button>
{% endif %}
<table class="scheme{{ color_scheme }}">
<thead>
<tr>
{% if template_type != 'export' %}
<th>w.</th>
<th>k.</th>
<th>↕</th>
<th>↔</th>
{% endif %}
<th></th>
{% if template_type == 'export' %}
<th>tag</th>
{% endif %}
<th>typy wzorów</th>
{% if takes_gender %}
<th>rodzaje</th>
{% endif %}
{% for attr in template_attrs %}
<th>{{ attr.name }}</th>
{% endfor %}
</tr>
</thead>
{% for coord, params, cr_form, gender_form, attr_forms in form_rows %}
{% include 'table_edit_row.html' %}
{% endfor %}
</table>
<button type="button" id="save-template">Zapisz</button>
<button type="button" id="cancel">Anuluj</button>