table_edit_row.html 1.55 KB
{% load i18n %}
<tr class="{{ params.0 }}">
    {% 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>
    {% endif %}
    <td>
        {% if params.0 == 'table' %}
            {% trans '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.as_widget }}
            {% trans 'pre' %}:<input type="text" class="pre" value="{{ params.2 }}" size="3"/>
            {% trans 'suf' %}:<input type="text" class="suf" value="{{ params.3 }}" size="3"/>
        {% endif %}
        {% if params.0 == 'header' %}
            {% trans 'nagł' %}:<input type="text" class="label" value="{{ params.1 }}" size="10"/>
            {{ params.2.css_class }}
        {% endif %}
    </td>
    {% if params.0 == 'export' %}
        <td><input type="text" class="tag" value="{{ coord }}"/></td>
    {% endif %}
    <td>
        {{ cr_form.pattern_types.as_widget }}
    </td>
    {% if takes_gender %}
        <td>{{ gender_form.genders.as_widget }}</td>
    {% endif %}
    {% for attr_form in attr_forms %}
        <td>{{ attr_form.values.as_widget }}</td>
    {% endfor %}
    <td class="remove">
        <span class="ui-icon ui-icon-close"></span>
    </td>
</tr>