Mercurial > kallithea
changeset 3084:2ec4a2a53167 beta
added delete button into repository settings form, it makes more natural to have it there.
Users where confused by my account -> my repos where deletion is also possible
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Tue, 11 Dec 2012 00:02:23 +0100 |
parents | 98e8fd2d55b6 |
children | 7d0476e1f1dc |
files | rhodecode/templates/admin/repos/repo_edit.html rhodecode/templates/settings/repo_settings.html |
diffstat | 2 files changed, 26 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/rhodecode/templates/admin/repos/repo_edit.html Sun Dec 09 18:33:35 2012 +0100 +++ b/rhodecode/templates/admin/repos/repo_edit.html Tue Dec 11 00:02:23 2012 +0100 @@ -280,7 +280,7 @@ <div class="field" style="border:none;color:#888"> <ul> <li>${_('''This repository will be renamed in a special way in order to be unaccesible for RhodeCode and VCS systems. - If you need fully delete it from filesystem please do it manually''')} + If you need fully delete it from file system please do it manually''')} </li> </ul> </div>
--- a/rhodecode/templates/settings/repo_settings.html Sun Dec 09 18:33:35 2012 +0100 +++ b/rhodecode/templates/settings/repo_settings.html Tue Dec 11 00:02:23 2012 +0100 @@ -88,12 +88,35 @@ <div class="input"> <%include file="../admin/repos/repo_edit_perms.html"/> </div> - + </div> + + <div class="field"> + <div class="label"> + <label for="">${_('Remove repo')}:</label> + </div> + <div class="checkboxes"> + ${h.form(url('repo_settings_delete', repo_name=c.repo_info.repo_name),method='delete')} + <div class=""> + <div class="fields"> + ${h.submit('remove_%s' % c.repo_info.repo_name,_('Remove this repository'),class_="ui-btn red",onclick="return confirm('"+_('Confirm to delete this repository')+"');")} + </div> + <div class="field" style="border:none;color:#888"> + <ul> + <li>${_('''This repository will be renamed in a special way in order to be unaccesible for RhodeCode and VCS systems. + If you need fully delete it from file system please do it manually''')} + </li> + </ul> + </div> + </div> + ${h.end_form()} + </div> + </div> + <div class="buttons"> ${h.submit('save',_('Save'),class_="ui-btn large")} ${h.reset('reset',_('Reset'),class_="ui-btn large")} </div> - </div> + </div> ${h.end_form()} </div>