58 lines
1.9 KiB
XML
58 lines
1.9 KiB
XML
<html metal:use-macro="context/@@standard_macros/page"
|
|
i18n:domain="zope">
|
|
<head>
|
|
<title metal:fill-slot="title" i18n:translate="">
|
|
Sign in
|
|
</title>
|
|
</head>
|
|
<body>
|
|
|
|
<metal:slot fill-slot="logo"><img
|
|
tal:attributes="src context/++resource++zope3logo.gif" />
|
|
</metal:slot>
|
|
|
|
<metal:ignore fill-slot="navigators" />
|
|
|
|
<metal:empty fill-slot="breadcrumbs">
|
|
<br />
|
|
</metal:empty>
|
|
|
|
<div metal:fill-slot="body" tal:define="principal python:request.principal.id">
|
|
<p i18n:translate="" tal:condition="python: principal == 'zope.anybody'">
|
|
Please provide Login Information</p>
|
|
<p i18n:translate="" tal:condition="python: principal != 'zope.anybody'">
|
|
You are not authorized to perform this action. However, you may login as a
|
|
different user who is authorized.</p>
|
|
<form action="." method="post"
|
|
tal:attributes="action view/requestUrl">
|
|
<div tal:omit-tag=""
|
|
tal:condition="python:principal != 'zope.anybody' and 'SUBMIT' in request">
|
|
<span tal:define="dummy python:
|
|
request.response.redirect(request.get('camefrom') or request.URL[-1])" />
|
|
</div>
|
|
<div class="row">
|
|
<div class="label" i18n:translate="">User Name</div>
|
|
<div class="field">
|
|
<input type="text" name="login"/>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="label" i18n:translate="">Password</div>
|
|
<div class="field">
|
|
<input type="password" name="password"/>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<input class="form-element" type="submit"
|
|
name="SUBMIT" value="Log in" i18n:attributes="value login-button" />
|
|
</div>
|
|
<input type="hidden" name="camefrom"
|
|
tal:attributes="value request/camefrom | nothing">
|
|
</form>
|
|
</div>
|
|
|
|
</body>
|
|
</html>
|
|
|