admin2 - experimental
This commit is contained in:
@@ -1,23 +1,22 @@
|
||||
{{extend 'layout.html'}}
|
||||
{{block sectionclass}}login{{end}}
|
||||
<!-- begin "index" block -->
|
||||
<h2>web2py™ {{=T('Web Framework')}}</h2>
|
||||
<h3>{{=T('Login to the Administrative Interface')}}</h3>
|
||||
<div class="form row-fluid">
|
||||
<div class="twothirds padded lifted">
|
||||
{{if request.is_https or request.is_local:}}
|
||||
<form action="{{=URL(r=request)}}" method="post" class="span4 well">
|
||||
<label for="password">{{=T('Administrator Password:')}}</label>
|
||||
<input type="password" name="password" id="password"/>
|
||||
<input type="hidden" name="send" value="{{=send}}"/>
|
||||
<div class="controls"><button type="submit" name="login" class="btn">{{=T('Login')}}</button></div>
|
||||
</form>
|
||||
<form action="{{=URL(r=request)}}" method="post" class="span4 well">
|
||||
<h5>{{=T('Login to the Administrative Interface')}}</h5>
|
||||
<label class="spaced" for="password">{{=T('Administrator Password:')}}</label>
|
||||
<input class="spaced" type="password" name="password" id="password"/>
|
||||
<input class="spaced" type="hidden" name="send" value="{{=send}}"/>
|
||||
<button class="spaced" type="submit" name="login">{{=T('Login')}}</button>
|
||||
</form>
|
||||
{{else:}}
|
||||
<p class="help span7 alert alert-block alert-warning">{{=T('ATTENTION: Login requires a secure (HTTPS) connection or running on localhost.')}}</p>
|
||||
{{pass}}
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
jQuery(document).ready(function(){
|
||||
jQuery("#password").focus();
|
||||
});
|
||||
jQuery(document).ready(function(){
|
||||
jQuery("#password").focus();
|
||||
});
|
||||
</script>
|
||||
<!-- end "index" block -->
|
||||
<!-- end "index" block -->
|
||||
|
||||
Reference in New Issue
Block a user