sem_arg_form.html
1.27 KB
{% if form == 'or' %}
<div>
<hr class="alterSeparator">
<input type="hidden" name="or" value="or"><strong>lub</strong>
<button type="button" onclick="removeAlternative(this)">Usuń</button>
</div>
{% else %}
<hr class="argSeparator">
<p class="fieldWrapper">
{{ form.negation.errors }} {{ form.negation }}
{{ form.role.errors }} {{ form.role.label_tag }}: {{ form.role }}
{{ form.attribute.errors }} {{ form.attribute.label_tag }}: {{ form.attribute }}
<button type="button" onclick="removeSemArgFilter(this)">Usuń</button>
</p>
<div id="selectional-preferences">
<p>{{ form.preference_type.errors }} {{ form.preference_type.label_tag }}: {{ form.preference_type }} <button type="button" onclick="addSelectivePreferenceFilter(this)">Dodaj</button></p>
{% for pref_form in form.preferences %}
<p id="sel-preference">
{% if pref_form.pref_type == 'general' %}
{% include 'general_preference_form.html' with form=pref_form only %}
{% elif pref_form.pref_type == 'relational' %}
{% include 'relational_preference_form.html' with form=pref_form only %}
{% elif pref_form.pref_type == 'synset' %}
{% include 'synset_preference_form.html' with form=pref_form only %}
{% endif %}
</p>
{% endfor %}
</div>
{% endif %}