mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 15:33:15 +00:00
Add vocabulary settings in description structure
This commit is contained in:
@@ -252,6 +252,12 @@
|
|||||||
<th>
|
<th>
|
||||||
{% trans 'Indexable' %}
|
{% trans 'Indexable' %}
|
||||||
</th>
|
</th>
|
||||||
|
<th>
|
||||||
|
{% trans 'Vocabulary Type' %}
|
||||||
|
</th>
|
||||||
|
<th>
|
||||||
|
{% trans 'Vocabulary restricted' %}
|
||||||
|
</th>
|
||||||
<th>
|
<th>
|
||||||
{% trans 'Required' %}
|
{% trans 'Required' %}
|
||||||
</th>
|
</th>
|
||||||
@@ -313,6 +319,19 @@
|
|||||||
<td>
|
<td>
|
||||||
<input class="metafield_{{field.get_id()}}" {{disabled}} name="indexable_{{field.get_id()}}" type="checkbox" {% if field.is_indexable() %}checked="checked"{% endif %}/>
|
<input class="metafield_{{field.get_id()}}" {{disabled}} name="indexable_{{field.get_id()}}" type="checkbox" {% if field.is_indexable() %}checked="checked"{% endif %}/>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
|
<td>
|
||||||
|
<select class="metafield_{{field.get_id()}}" {{disabled}} name="vocabulary_{{field.get_id()}}">
|
||||||
|
<option value=""></option>
|
||||||
|
{% for vocabulary in vocabularies %}
|
||||||
|
<option {% if field.getVocabularyControl() and field.getVocabularyControl().getType() == vocabulary.getType() %}selected="selected"{% endif %} value="{{ vocabulary.getType() }}">{{ vocabulary.getName() }}</option>
|
||||||
|
{% endfor %}
|
||||||
|
</select>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<input class="metafield_{{field.get_id()}}" {{disabled}} name="vocabularyrestricted_{{field.get_id()}}" type="checkbox" {% if field.isVocabularyRestricted() %}checked="checked"{% endif %}/>
|
||||||
|
</td>
|
||||||
|
|
||||||
<td>
|
<td>
|
||||||
<input class="metafield_{{field.get_id()}}" {{disabled}} name="required_{{field.get_id()}}" type="checkbox" {% if field.is_required() %}checked="checked"{% endif %}/>
|
<input class="metafield_{{field.get_id()}}" {{disabled}} name="required_{{field.get_id()}}" type="checkbox" {% if field.is_required() %}checked="checked"{% endif %}/>
|
||||||
</td>
|
</td>
|
||||||
|
Reference in New Issue
Block a user