Changeset - d69e19fc2795
[Not reviewed]
default
0 1 0
Marcin Kuzminski - 15 years ago 2010-05-21 20:37:09
marcin@python-works.com
removed login from admin, from now we're have to be globally logged in.
1 file changed with 2 insertions and 34 deletions:
0 comments (0 inline, 0 general)
pylons_app/templates/admin/admin.html
Show inline comments
 
## -*- coding: utf-8 -*-
 
<%inherit file="/base/base.html"/>
 
 <%def name="get_form_error(element)">
 
 	%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           
 
 </%def>
 

	
 
<%def name="title()">
 
    ${_('Repository managment')}
 
</%def>
 
<%def name="breadcrumbs()">
 
	${h.link_to(u'Admin',h.url('admin_home'))}
 
	 / 
 
	 
 
</%def>
 
<%def name="page_nav()">
 
<ul class="page-nav">
 
@@ -43,28 +32,7 @@
 
			</div>
 
    </div>
 
    %else:
 
        <div>
 
        <br />
 
        <h2>${_('Login')}</h2>
 
        ${h.form(h.url.current())}
 
        <table>
 
            <tr>
 
                <td>${_('Username')}</td>
 
                <td>${h.text('username')}</td>
 
                <td>${get_form_error('username')} </td>
 
            </tr>
 
            <tr>
 
                <td>${_('Password')}</td>
 
                <td>${h.password('password')}</td>
 
                <td>${get_form_error('password')}</td> 
 
            </tr>
 
            <tr>
 
                <td></td>
 
                <td>${h.submit('login','login')}</td>
 
            </tr>            
 
        </table>
 
        ${h.end_form()}
 
        </div>
 
		<h2>${_('Sorry only admin users can acces this area')}</h2>
 
    %endif
 
    
 
</%def>
 
\ No newline at end of file
0 comments (0 inline, 0 general)