### ${_('Custom extra fields for this repository')}

%if c.visual.repository_fields: %if c.repo_fields:

%for field in c.repo_fields:
${_('Label')} | ${_('Key')} | ${_('Type')} | ${_('Action')}
--- | --- | --- | ---
${field.field_label} | ${field.field_key} | ${field.field_type} | ${h.secure_form(h.route_path('edit_repo_fields_delete', repo_name=c.rhodecode_db_repo.repo_name, field_id=field.repo_field_id), request=request)} ${h.hidden('del_repo_field',field.repo_field_id)} ${h.end_form()}
%endfor

%endif ${h.secure_form(h.route_path('edit_repo_fields_create', repo_name=c.repo_name), request=request)}
${_('New Field Key')}:
${h.text('new_field_key', class_='medium')}
${_('New Field Label')}:
${h.text('new_field_label', class_='medium', placeholder=_('Enter short label'))}
${_('New Field Description')}:
${h.text('new_field_desc', class_='medium', placeholder=_('Enter a full description for the field'))}

${_("Note")}: ${_("You can set values for your custom fields in")} ${_("Repository Settings")} ${_("(bottom of the page)")}

${h.submit('save',_('Add'),class_="btn")} ${h.reset('reset',_('Reset'),class_="btn")}
${h.end_form()} %else:

## ${_('Extra fields are disabled. You can enable them from the Admin/Settings/Visual page.')}

%endif