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>
|
||||
{% trans 'Indexable' %}
|
||||
</th>
|
||||
<th>
|
||||
{% trans 'Vocabulary Type' %}
|
||||
</th>
|
||||
<th>
|
||||
{% trans 'Vocabulary restricted' %}
|
||||
</th>
|
||||
<th>
|
||||
{% trans 'Required' %}
|
||||
</th>
|
||||
@@ -313,6 +319,19 @@
|
||||
<td>
|
||||
<input class="metafield_{{field.get_id()}}" {{disabled}} name="indexable_{{field.get_id()}}" type="checkbox" {% if field.is_indexable() %}checked="checked"{% endif %}/>
|
||||
</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>
|
||||
<input class="metafield_{{field.get_id()}}" {{disabled}} name="required_{{field.get_id()}}" type="checkbox" {% if field.is_required() %}checked="checked"{% endif %}/>
|
||||
</td>
|
||||
|
Reference in New Issue
Block a user