##// END OF EJS Templates
follow Python conventions for boolean values...
follow Python conventions for boolean values True and False might be singletons and the "default" values for "boolean" expressions, but "all" values in Python has a boolean value and should be evaluated as such. Checking with 'is True' and 'is False' is thus confusing, error prone and unnessarily complex. If we anywhere rely and nullable boolean fields from the database layer and don't want the null value to be treated as False then we should check explicitly for null with 'is None'.

File last commit:

r3603:eacd33e0 beta
r3625:260a7a01 beta
Show More
repos_groups_add.html
65 lines | 1.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()">
improved title consistency...
r3582 ${_('Add repos group')} &middot; ${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>
Mads Kiilerich
use valid options for the top menu: repositories, journal, search and admin
r3603
#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 name="breadcrumbs_links()">
White-space cleanup
r1888 ${h.link_to(_('Admin'),h.url('admin_home'))}
&raquo;
${h.link_to(_('Repos groups'),h.url('repos_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 &raquo;
${_('add new repos group')}
</%def>
<%def name="page_nav()">
${self.menu('admin')}
</%def>
<%def name="main()">
<div class="box">
<!-- box / title -->
<div class="title">
White-space cleanup
r1888 ${self.breadcrumbs()}
#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 -->
${h.form(url('repos_groups'))}
<div class="form">
<!-- fields -->
<div class="fields">
<div class="field">
<div class="label">
Augusto Herrmann
Corrected some label-input linking in templates
r1575 <label for="group_name">${_('Group name')}:</label>
#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>
<div class="input">
#47 implemented basic edition of groups
r1347 ${h.text('group_name',class_='medium')}
#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>
</div>
White-space cleanup
r1888
#47 implemented basic edition of groups
r1347 <div class="field">
<div class="label label-textarea">
Augusto Herrmann
Corrected some label-input linking in templates
r1575 <label for="group_description">${_('Description')}:</label>
#47 implemented basic edition of groups
r1347 </div>
<div class="textarea text-area editor">
${h.textarea('group_description',cols=23,rows=5,class_="medium")}
</div>
</div>
White-space cleanup
r1888
#47 implemented basic edition of groups
r1347 <div class="field">
<div class="label">
Augusto Herrmann
Corrected some label-input linking in templates
r1575 <label for="group_parent_id">${_('Group parent')}:</label>
#47 implemented basic edition of groups
r1347 </div>
<div class="input">
Add new quick link to created child groups within a group
r3193 ${h.select('group_parent_id',request.GET.get('parent_group'),c.repo_groups,class_="medium")}
#47 implemented basic edition of groups
r1347 </div>
White-space cleanup
r1888 </div>
#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 class="buttons">
removed deprecated ui-button
r2607 ${h.submit('save',_('save'),class_="ui-btn large")}
White-space cleanup
r1888 </div>
#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>
</div>
${h.end_form()}
White-space cleanup
r1888 </div>
</%def>