##// END OF EJS Templates
admin fix
admin fix

File last commit:

r108:68e57490 default
r108:68e57490 default
Show More
admin.html
67 lines | 1.7 KiB | text/html | HtmlLexer
changed for pylons 0.1 / 1.0...
r43 ## -*- coding: utf-8 -*-
Added managment pages....
r44 <%inherit file="base/base.html"/>
implemented admin page login
r45 <%def name="get_form_error(element)">
admin fix
r108 %if hasattr(c,'form_errors'):
%if type(c.form_errors) == dict:
%if c.form_errors.get(element,False):
<span class="error-message">
${c.form_errors.get(element,'')}
</span>
%endif
%endif
%endif
implemented admin page login
r45 </%def>
Added managment pages....
r44 <%def name="title()">
${_('Repository managment')}
</%def>
<%def name="breadcrumbs()">
${h.link_to(u'Home',h.url('/'))}
/
${h.link_to(u'Admin',h.url('admin_home'))}
</%def>
<%def name="page_nav()">
<li>${h.link_to(u'Home',h.url('/'))}</li>
<li class="current">${_('Admin')}</li>
</%def>
<%def name="main()">
%if c.admin_user:
<ul class="submenu">
<li>
Marcin Kuzminski
Added rest controllers for repos and users,...
r47 ${h.link_to(u'Repos',h.url('repos'))}
Added managment pages....
r44 </li>
<li>
Marcin Kuzminski
Added rest controllers for repos and users,...
r47 ${h.link_to(u'Users',h.url('users'))}
Added managment pages....
r44 </li>
</ul>
<br/>
<div>
Marcin Kuzminski
Updated admin to show last 5 actions + updated db model
r62 <h2>Welcome ${c.admin_username}</h2>
Marcin Kuzminski
Implemented AJAH paging
r79 <div id="user_log">
${c.log_data}
</div>
changed for pylons 0.1 / 1.0...
r43 </div>
Added managment pages....
r44 %else:
<div>
<br />
<h2>${_('Login')}</h2>
${h.form(h.url.current())}
<table>
<tr>
<td>${_('Username')}</td>
<td>${h.text('username')}</td>
implemented admin page login
r45 <td>${get_form_error('username')} </td>
Added managment pages....
r44 </tr>
<tr>
<td>${_('Password')}</td>
implemented admin page login
r45 <td>${h.password('password')}</td>
<td>${get_form_error('password')}</td>
Added managment pages....
r44 </tr>
<tr>
<td></td>
<td>${h.submit('login','login')}</td>
</tr>
</table>
${h.end_form()}
</div>
%endif
</%def>