create_position_form.html 867 Bytes
<form class="create-position-form" method="post"> {% csrf_token %}
  <div id="subform">
 	{% for field in form %}
 		
 			{{ field.label_tag }} {{ field }} 
 			<button type="button" id="{{ field.id_for_label }}-add_argument_button">Dodaj typ frazy</button>
 			<div id="{{ field.id_for_label }}-arguments">
 				{% for arg in arguments %}
 					<p id="argument">{{ arg.text_rep }}<input id="id_value" type="hidden" name="value" value="{{ arg.id }}"/>
 						<button type="button" id="edit-argument">Edytuj</button>
 						<button type="button" id="remove-argument">Usuń</button>
 					</p>
 				{% endfor %}
 			</div>
 		
 	{% endfor %}
  </div>
  
  <p class="lexeme-save">
    <button type="submit" id="create-position-form-submit">
      Zapisz
    </button>
    <button type="reset" id="create-position-form-cancel">
      Anuluj
    </button>
  </p>
</form>