table_edit_form.html 1.04 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 form_rows.0.1.0 != 'export' %}
                <th>w.</th>
                <th>k.</th>
                <th></th>
                <th></th>
            {% endif %}
            <th></th>
            {% if form_rows.0.1.0 == 'export' %}
                <th>tag</th>
            {% endif %}
            <th>typy wzorów</th>
            <th>charfle</th>
            {% for attr in template_attrs %}
                <th>{{ attr.name }}</th>
            {% endfor %}
        </tr>
    </thead>
    {% for coord, params, cr_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>