##// END OF EJS Templates
settings: simplify handling of form values for hooks and extensions...
settings: simplify handling of form values for hooks and extensions This makes simpler to follow the code path and search for input input field names. The form field names are hardcoded in the template, so generating them programmatically in the controller do not really add any flexibility.

File last commit:

r3415:b8f929bf beta
r3570:8173b0cf beta
Show More
repos_groups_show.html
78 lines | 2.9 KiB | text/html | HtmlLexer
#47 implemented Adding of new repo_groups+forms+validators. Fixed sorting of repo groups by main names in multiple locations. Removed some unneeded calls to self.sa for exchange to .query() methods....
r1345 ## -*- coding: utf-8 -*-
<%inherit file="/base/base.html"/>
<%def name="title()">
Mads Kiilerich
"Users groups" is grammatically incorrect English - rename to "user groups"...
r3410 ${_('Repository groups administration')} - ${c.rhodecode_name}
#47 implemented Adding of new repo_groups+forms+validators. Fixed sorting of repo groups by main names in multiple locations. Removed some unneeded calls to self.sa for exchange to .query() methods....
r1345 </%def>
<%def name="breadcrumbs_links()">
unified breadcrumbs display
r3392 ${h.link_to(_('Admin'),h.url('admin_home'))}
&raquo;
fixed tests and missing replacements from 5f1850e4712a
r3415 ${_('repository groups')}
#47 implemented Adding of new repo_groups+forms+validators. Fixed sorting of repo groups by main names in multiple locations. Removed some unneeded calls to self.sa for exchange to .query() methods....
r1345 </%def>
<%def name="page_nav()">
${self.menu('admin')}
</%def>
<%def name="main()">
<div class="box">
<!-- box / title -->
<div class="title">
${self.breadcrumbs()}
<ul class="links">
<li>
Show admin dropdown for users who are admin of repo groups
r3371 %if h.HasPermissionAny('hg.admin')():
<span>${h.link_to(_(u'Add group'),h.url('new_repos_group'))}</span>
%endif
White-space cleanup
r1888 </li>
</ul>
#47 implemented Adding of new repo_groups+forms+validators. Fixed sorting of repo groups by main names in multiple locations. Removed some unneeded calls to self.sa for exchange to .query() methods....
r1345 </div>
<!-- end box / title -->
<div class="table">
% if c.groups:
<table class="table_disp">
White-space cleanup
r1888
#47 implemented Adding of new repo_groups+forms+validators. Fixed sorting of repo groups by main names in multiple locations. Removed some unneeded calls to self.sa for exchange to .query() methods....
r1345 <thead>
<tr>
<th class="left"><a href="#">${_('Group name')}</a></th>
<th class="left"><a href="#">${_('Description')}</a></th>
refactoring of models names for repoGroup permissions
r1633 <th class="left"><a href="#">${_('Number of toplevel repositories')}</a></th>
Edit groups is more consistent on how we edit objects in admin panels
r3194 <th class="left" colspan="2">${_('action')}</th>
#47 implemented Adding of new repo_groups+forms+validators. Fixed sorting of repo groups by main names in multiple locations. Removed some unneeded calls to self.sa for exchange to .query() methods....
r1345 </tr>
</thead>
White-space cleanup
r1888
#47 implemented Adding of new repo_groups+forms+validators. Fixed sorting of repo groups by main names in multiple locations. Removed some unneeded calls to self.sa for exchange to .query() methods....
r1345 ## REPO GROUPS
White-space cleanup
r1888
#47 implemented Adding of new repo_groups+forms+validators. Fixed sorting of repo groups by main names in multiple locations. Removed some unneeded calls to self.sa for exchange to .query() methods....
r1345 % for gr in c.groups:
deleting a group now does same archive operation like deleting repositories. Improve prompt that show number of repos that will...
r2961 <% gr_cn = gr.repositories.count() %>
#47 implemented Adding of new repo_groups+forms+validators. Fixed sorting of repo groups by main names in multiple locations. Removed some unneeded calls to self.sa for exchange to .query() methods....
r1345 <tr>
<td>
<div style="white-space: nowrap">
Mads Kiilerich
"Users groups" is grammatically incorrect English - rename to "user groups"...
r3410 <img class="icon" alt="${_('Repository group')}" src="${h.url('/images/icons/database_link.png')}"/>
Edit groups is more consistent on how we edit objects in admin panels
r3194 ${h.link_to(h.literal(' &raquo; '.join(map(h.safe_unicode,[g.name for g in gr.parents+[gr]]))), url('repos_group_home',group_name=gr.group_name))}
#47 implemented Adding of new repo_groups+forms+validators. Fixed sorting of repo groups by main names in multiple locations. Removed some unneeded calls to self.sa for exchange to .query() methods....
r1345 </div>
</td>
<td>${gr.group_description}</td>
deleting a group now does same archive operation like deleting repositories. Improve prompt that show number of repos that will...
r2961 <td><b>${gr_cn}</b></td>
Edit groups is more consistent on how we edit objects in admin panels
r3194 <td>
Group management delegation:...
r3222 <a href="${h.url('edit_repos_group',group_name=gr.group_name)}" title="${_('edit')}">
Edit groups is more consistent on how we edit objects in admin panels
r3194 ${h.submit('edit_%s' % gr.group_name,_('edit'),class_="edit_icon action_button")}
whitespace cleanup
r3216 </a>
Edit groups is more consistent on how we edit objects in admin panels
r3194 </td>
<td>
Group management delegation:...
r3222 ${h.form(url('repos_group', group_name=gr.group_name),method='delete')}
Edit groups is more consistent on how we edit objects in admin panels
r3194 ${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()}
whitespace cleanup
r3216 </td>
#47 implemented Adding of new repo_groups+forms+validators. Fixed sorting of repo groups by main names in multiple locations. Removed some unneeded calls to self.sa for exchange to .query() methods....
r1345 </tr>
% endfor
White-space cleanup
r1888
#47 implemented Adding of new repo_groups+forms+validators. Fixed sorting of repo groups by main names in multiple locations. Removed some unneeded calls to self.sa for exchange to .query() methods....
r1345 </table>
% else:
Mads Kiilerich
"Users groups" is grammatically incorrect English - rename to "user groups"...
r3410 ${_('There are no repository groups yet')}
#47 implemented Adding of new repo_groups+forms+validators. Fixed sorting of repo groups by main names in multiple locations. Removed some unneeded calls to self.sa for exchange to .query() methods....
r1345 % endif
White-space cleanup
r1888
#47 implemented Adding of new repo_groups+forms+validators. Fixed sorting of repo groups by main names in multiple locations. Removed some unneeded calls to self.sa for exchange to .query() methods....
r1345 </div>
White-space cleanup
r1888 </div>
</%def>