##// END OF EJS Templates
restored utils, wrongly deleted
restored utils, wrongly deleted

File last commit:

r296:29370bb7 default
r297:a074dec6 default
Show More
repo_edit.html
109 lines | 3.3 KiB | text/html | HtmlLexer
Cleaned the way based was used to generate submenu for admin, now it's much more clear to use submenu. Cleaned admin and added comment to middleware
r216 ## -*- coding: utf-8 -*-
<%inherit file="/base/base.html"/>
Html changes and cleanups, made folders for html templates, implemented tags and branches pages
r127 <%def name="title()">
Cleaned the way based was used to generate submenu for admin, now it's much more clear to use submenu. Cleaned admin and added comment to middleware
r216 ${_('Repositories administration')}
Html changes and cleanups, made folders for html templates, implemented tags and branches pages
r127 </%def>
<%def name="breadcrumbs()">
Cleaned the way based was used to generate submenu for admin, now it's much more clear to use submenu. Cleaned admin and added comment to middleware
r216 ${h.link_to(u'Admin',h.url('admin_home'))}
/
Admin templating updates, added rest permission controllers
r230 ${_('Repos')}
Html changes and cleanups, made folders for html templates, implemented tags and branches pages
r127 </%def>
<%def name="page_nav()">
new way of menu generation for base, and all admin pages
r182 ${self.menu('admin')}
Cleaned the way based was used to generate submenu for admin, now it's much more clear to use submenu. Cleaned admin and added comment to middleware
r216 ${self.submenu('repos')}
Html changes and cleanups, made folders for html templates, implemented tags and branches pages
r127 </%def>
<%def name="main()">
<div>
Cleaned the way based was used to generate submenu for admin, now it's much more clear to use submenu. Cleaned admin and added comment to middleware
r216 <h2>${_('Repositories')} - ${_('edit')}</h2>
Implemented basic repository managment. Implemented repo2db mappings, model, helpers updates and code cleanups
r265 ${h.form(url('repo', id=c.repo_info.repo_name),method='put')}
Cleaned the way based was used to generate submenu for admin, now it's much more clear to use submenu. Cleaned admin and added comment to middleware
r216 <table>
<tr>
<td>${_('Name')}</td>
Implemented basic repository managment. Implemented repo2db mappings, model, helpers updates and code cleanups
r265 <td>${h.text('repo_name')}</td>
<td>${self.get_form_error('repo_name')}</td>
Cleaned the way based was used to generate submenu for admin, now it's much more clear to use submenu. Cleaned admin and added comment to middleware
r216 </tr>
<tr>
<td>${_('Description')}</td>
<td>${h.textarea('description',cols=23,rows=5)}</td>
Implemented basic repository managment. Implemented repo2db mappings, model, helpers updates and code cleanups
r265 <td>${self.get_form_error('description')}</td>
Cleaned the way based was used to generate submenu for admin, now it's much more clear to use submenu. Cleaned admin and added comment to middleware
r216 </tr>
<tr>
<td>${_('Private')}</td>
<td>${h.checkbox('private')}</td>
Implemented basic repository managment. Implemented repo2db mappings, model, helpers updates and code cleanups
r265 <td>${self.get_form_error('private')}</td>
</tr>
<tr>
<td>${_('Owner')}</td>
<td>${h.text('user')}</td>
<td>${self.get_form_error('user')}</td>
Cleaned the way based was used to generate submenu for admin, now it's much more clear to use submenu. Cleaned admin and added comment to middleware
r216 </tr>
<tr>
first permissions commit: added permission managment on repository edit. Changed db rmissions, validators.
r296 <td>${_('Permissions')}</td>
<td>
<table>
<tr>
<td>${_('none')}</td>
<td>${_('read')}</td>
<td>${_('write')}</td>
<td>${_('admin')}</td>
<td>${_('user')}</td>
</tr>
%for r2p in c.repo_info.repo2perm:
<tr>
<td>${h.radio('perm_%s' % r2p.user.username,'repository.none')}</td>
<td>${h.radio('perm_%s' % r2p.user.username,'repository.read')}</td>
<td>${h.radio('perm_%s' % r2p.user.username,'repository.write')}</td>
<td>${h.radio('perm_%s' % r2p.user.username,'repository.admin')}</td>
<td>${r2p.user.username}</td>
</tr>
%endfor
<%
if not hasattr(c,'form_errors'):
d = 'display:none;'
else:
d=''
%>
<tr id="add_perm_input" style="${d}">
<td>${h.radio('perm_new_user','repository.none')}</td>
<td>${h.radio('perm_new_user','repository.read')}</td>
<td>${h.radio('perm_new_user','repository.write')}</td>
<td>${h.radio('perm_new_user','repository.admin')}</td>
<td>${h.text('perm_new_user_name',size=10)}</td>
<td>${self.get_form_error('perm_new_user_name')}</td>
</tr>
<tr>
<td colspan="4">
<span id="add_perm" class="add_icon" style="cursor: pointer;">
${_('Add another user')}
</span>
</td>
</tr>
</table>
</td>
</tr>
<tr>
Cleaned the way based was used to generate submenu for admin, now it's much more clear to use submenu. Cleaned admin and added comment to middleware
r216 <td></td>
repo edit
r220 <td>${h.submit('update','update')}</td>
Cleaned the way based was used to generate submenu for admin, now it's much more clear to use submenu. Cleaned admin and added comment to middleware
r216 </tr>
</table>
${h.end_form()}
first permissions commit: added permission managment on repository edit. Changed db rmissions, validators.
r296 <script type="text/javascript">
YAHOO.util.Event.onDOMReady(function(){
var D = YAHOO.util.Dom;
YAHOO.util.Event.addListener('add_perm','click',function(){
D.setStyle('add_perm_input','display','');
D.setStyle('add_perm','opacity','0.6');
D.setStyle('add_perm','cursor','default');
});
});
</script>
Html changes and cleanups, made folders for html templates, implemented tags and branches pages
r127 </div>
Cleaned the way based was used to generate submenu for admin, now it's much more clear to use submenu. Cleaned admin and added comment to middleware
r216 </%def>