# HG changeset patch # User Marcin Kuzminski # Date 2013-01-21 23:54:29 # Node ID d7282940d77907b4510b94c0f8194b4aa3b6372f # Parent cbc644d96a538406348e093a6f24aecc09978b50 Edit groups is more consistent on how we edit objects in admin panels diff --git a/rhodecode/templates/admin/repos_groups/repos_groups_show.html b/rhodecode/templates/admin/repos_groups/repos_groups_show.html --- a/rhodecode/templates/admin/repos_groups/repos_groups_show.html +++ b/rhodecode/templates/admin/repos_groups/repos_groups_show.html @@ -33,7 +33,7 @@ ${_('Group name')} ${_('Description')} ${_('Number of toplevel repositories')} - ${_('action')} + ${_('action')} @@ -45,16 +45,21 @@
${_('Repositories group')} - ${h.link_to(h.literal(' » '.join(map(h.safe_unicode,[g.name for g in gr.parents+[gr]]))),url('edit_repos_group',id=gr.group_id))} + ${h.link_to(h.literal(' » '.join(map(h.safe_unicode,[g.name for g in gr.parents+[gr]]))), url('repos_group_home',group_name=gr.group_name))}
${gr.group_description} ${gr_cn} - - ${h.form(url('repos_group', id=gr.group_id),method='delete')} - ${h.submit('remove_%s' % gr.name,_('delete'),class_="delete_icon action_button",onclick="return confirm('"+ungettext('Confirm to delete this group: %s with %s repository','Confirm to delete this group: %s with %s repositories',gr_cn) % (gr.name,gr_cn)+"');")} - ${h.end_form()} - + + + ${h.submit('edit_%s' % gr.group_name,_('edit'),class_="edit_icon action_button")} + + + + ${h.form(url('repos_group', id=gr.group_id),method='delete')} + ${h.submit('remove_%s' % gr.name,_('delete'),class_="delete_icon action_button",onclick="return confirm('"+ungettext('Confirm to delete this group: %s with %s repository','Confirm to delete this group: %s with %s repositories',gr_cn) % (gr.name,gr_cn)+"');")} + ${h.end_form()} + % endfor