Mercurial > kallithea
changeset 3194:d7282940d779 beta
Edit groups is more consistent on how we edit objects in admin panels
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Tue, 22 Jan 2013 00:54:29 +0100 |
parents | cbc644d96a53 |
children | a50901f2108d |
files | rhodecode/templates/admin/repos_groups/repos_groups_show.html |
diffstat | 1 files changed, 12 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/rhodecode/templates/admin/repos_groups/repos_groups_show.html Tue Jan 22 00:49:01 2013 +0100 +++ b/rhodecode/templates/admin/repos_groups/repos_groups_show.html Tue Jan 22 00:54:29 2013 +0100 @@ -33,7 +33,7 @@ <th class="left"><a href="#">${_('Group name')}</a></th> <th class="left"><a href="#">${_('Description')}</a></th> <th class="left"><a href="#">${_('Number of toplevel repositories')}</a></th> - <th class="left">${_('action')}</th> + <th class="left" colspan="2">${_('action')}</th> </tr> </thead> @@ -45,16 +45,21 @@ <td> <div style="white-space: nowrap"> <img class="icon" alt="${_('Repositories group')}" src="${h.url('/images/icons/database_link.png')}"/> - ${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))} </div> </td> <td>${gr.group_description}</td> <td><b>${gr_cn}</b></td> - <td> - ${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()} - </td> + <td> + <a href="${h.url('edit_repos_group',id=gr.group_id)}" title="${_('edit')}"> + ${h.submit('edit_%s' % gr.group_name,_('edit'),class_="edit_icon action_button")} + </a> + </td> + <td> + ${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()} + </td> </tr> % endfor