table_edit_form.html 1.26 KB
{% load i18n %}
{% if export %}
    <button type="button" id="add-export-cell">{% trans 'Dodaj komórkę' %}</button>
{% else %}
    <button type="button" id="add-table-cell">{% trans 'Dodaj komórkę' %}</button>
    <button type="button" id="add-header">{% trans 'Dodaj nagłówek' %}</button>
{% endif %}
<table class="scheme{{ color_scheme }}">
    <thead>
        <tr>
            {% if template_type != 'export' %}
                <th>{% trans 'w.' %}</th>
                <th>{% trans 'k.' %}</th>
                <th></th>
                <th></th>
            {% endif %}
            <th></th>
            {% if template_type == 'export' %}
                <th>{% trans 'tag' %}</th>
            {% endif %}
            <th>{% trans 'typy wzorów' %}</th>
            {% if takes_gender %}
                <th>{% trans '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">{% trans 'Zapisz' %}</button>
<button type="button" id="cancel">{% trans 'Anuluj' %}</button>