diff --git a/ckanext/odsh/templates/organization/snippets/organization_form.html b/ckanext/odsh/templates/organization/snippets/organization_form.html index 153a5e157735a7ea73ee780c8d2ae2c12008d9c1..9af3071d05d20e58e06a036dd51033e83d8204b7 100644 --- a/ckanext/odsh/templates/organization/snippets/organization_form.html +++ b/ckanext/odsh/templates/organization/snippets/organization_form.html @@ -47,8 +47,8 @@ {{ form.input_address('gnd','GND URI', value=extras.gnd, index=6, placeholder='https://d-nb.info/gnd/1136109587', type='text', attrs={}) }} - <!-- {% for extra in data.extras %} - {% set custom_extras = ['person','street','location','telephone','mail','web','gnd'] %} + {% set custom_extras = ['person','street','location','telephone','mail','web','gnd'] %} + {% for extra in data.extras %} {% if extra.key not in custom_extras %} {% set prefix = 'extras__%d__' % (loop.index0 + (custom_extras|count)) %} {{ form.custom( @@ -76,7 +76,7 @@ values=(extra.key, extra.value, extra.deleted), error=errors[prefix ~ 'key'] or errors[prefix ~ 'value'] ) }} - {% endfor %} --> + {% endfor %} </div> {% endblock %}