Mercurial > kallithea
view kallithea/templates/admin/repos/repo_edit_fields.html @ 6435:94a9ce213964
templates: reduce html errors/warnings
author | domruf <dominikruf@gmail.com> |
---|---|
date | Wed, 11 Jan 2017 22:23:35 +0100 |
parents | 1ce4e23c2207 |
children | 88ce09daea37 |
line wrap: on
line source
%if c.visual.repository_fields: %if c.repo_fields: <div class="emails_wrap"> <table class="table"> <tr> <th>${_('Label')}</th> <th>${_('Key')}</th> <th>${_('Type')}</th> <th>${_('Action')}</th> </tr> %for field in c.repo_fields: <tr> <td>${field.field_label}</td> <td>${field.field_key}</td> <td>${field.field_type}</td> <td> ${h.form(url('delete_repo_fields', repo_name=c.repo_info.repo_name, field_id=field.repo_field_id))} <i class="icon-minus-circled" style="color:#FF4444"></i> ${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()} </td> </tr> %endfor </table> </div> %endif ${h.form(url('create_repo_fields', repo_name=c.repo_name))} <div class="form"> <div class="form-horizontal"> <div class="form-group"> <label class="control-label" for="new_field_key">${_('New field key')}:</label> <div> ${h.text('new_field_key', class_='form-control')} </div> </div> <div class="form-group"> <label class="control-label" for="new_field_label">${_('New field label')}:</label> <div> ${h.text('new_field_label', class_='form-control', placeholder=_('Enter short label'))} </div> </div> <div class="form-group"> <label class="control-label" for="new_field_desc">${_('New field description')}:</label> <div> ${h.text('new_field_desc', class_='form-control', placeholder=_('Enter description of a field'))} </div> </div> <div class="form-group"> <div class="buttons"> ${h.submit('save',_('Add'),class_="btn btn-default")} ${h.reset('reset',_('Reset'),class_="btn btn-default")} </div> </div> </div> </div> ${h.end_form()} %else: <h4> ${_('Extra fields are disabled.')} </h4> %endif