Add vocabulary settings in description structure

This commit is contained in:
Romain Neutron
2012-01-20 15:21:34 +01:00
parent bf9cca700d
commit 8efb4781a1

View File

@@ -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>