%if c.visual.repository_fields: %if c.repo_fields:
%for field in c.repo_fields: %endfor
${_('Label')} ${_('Key')} ${_('Type')} ${_('Action')}
${field.field_label} ${field.field_key} ${field.field_type} ${h.form(url('delete_repo_fields', repo_name=c.repo_info.repo_name, field_id=field.repo_field_id))} ${h.submit('remove_%s' % field.repo_field_id, _('Delete'), id="remove_field_%s" % field.repo_field_id, class_="btn btn-default btn-xs", onclick="return confirm('"+_('Confirm to delete this field: %s') % field.field_key+"');")} ${h.end_form()}
%endif ${h.form(url('create_repo_fields', repo_name=c.repo_name))}
${h.text('new_field_key', class_='form-control')}
${h.text('new_field_label', class_='form-control', placeholder=_('Enter short label'))}
${h.text('new_field_desc', class_='form-control', placeholder=_('Enter description of a field'))}
${h.submit('save',_('Add'),class_="btn btn-default")} ${h.reset('reset',_('Reset'),class_="btn btn-default")}
${h.end_form()} %else:

${_('Extra fields are disabled.')}

%endif