sort_form.html 2.59 KB
<form class="sort-form" method="post"> {% csrf_token %} 
{{ form.non_field_errors }}
<table>
    <tr class="fieldWrapper">
    	<td>Pole:</td>
        <td>Priorytet:</td>
        <td>Sortowanie:</td>
    </tr>
    <tr class="fieldWrapper">
        {{ form.id_priority.errors }}
        <td>{{ form.id_priority.label_tag }}:</td> <td>{{ form.id_priority }}</td>
        {{ form.id_sort_order.errors }}
        <td>{{ form.id_sort_order.label_tag }} {{ form.id_sort_order }}</td>
    </tr>
    <tr class="fieldWrapper">
        {{ form.entry_priority.errors }}
        <td>{{ form.entry_priority.label_tag }}:</td> <td>{{ form.entry_priority }}</td>
        {{ form.entry_sort_order.errors }}
        <td>{{ form.entry_sort_order.label_tag }} {{ form.entry_sort_order }}</td>
    </tr>
    <tr class="fieldWrapper">
        {{ form.owner_priority.errors }}
        <td>{{ form.owner_priority.label_tag }}:</td> <td>{{ form.owner_priority }}</td>
        {{ form.owner_sort_order.errors }}
        <td>{{ form.owner_sort_order.label_tag }} {{ form.owner_sort_order }}</td>
    </tr>
    <tr class="fieldWrapper">
        {{ form.phraseologist_priority.errors }}
        <td>{{ form.phraseologist_priority.label_tag }}:</td> <td>{{ form.phraseologist_priority }}</td>
        {{ form.phraseologist_sort_order.errors }}
        <td>{{ form.phraseologist_sort_order.label_tag }} {{ form.phraseologist_sort_order }}</td>
    </tr>
    <tr class="fieldWrapper">
        {{ form.semanticist_priority.errors }}
        <td>{{ form.semanticist_priority.label_tag }}:</td> <td>{{ form.semanticist_priority }}</td>
        {{ form.semanticist_sort_order.errors }}
        <td>{{ form.semanticist_sort_order.label_tag }} {{ form.semanticist_sort_order }}</td>
    </tr>
    <tr class="fieldWrapper">
        {{ form.vocabulary_priority.errors }}
        <td>{{ form.vocabulary_priority.label_tag }}:</td> <td>{{ form.vocabulary_priority }}</td>
        {{ form.vocabulary_sort_order.errors }}
        <td>{{ form.vocabulary_sort_order.label_tag }} {{ form.vocabulary_sort_order }}</td>
    </tr> 
    <tr class="fieldWrapper">
        {{ form.status_priority.errors }}
        <td>{{ form.status_priority.label_tag }}:</td> <td>{{ form.status_priority }}</td>
        {{ form.status_sort_order.errors }}
        <td>{{ form.status_sort_order.label_tag }} {{ form.status_sort_order }}</td>
    </tr>
</table>
  
  <p class="lexeme-save">
    <button type="submit" id="sort-form-submit">
      Sortuj
    </button>
    <button type="reset" id="sort-form-cancel">
      Anuluj
    </button>
  </p>
</form>