replace tabs by spaces in page template
This commit is contained in:
parent
f09e8300ab
commit
02919af20b
1 changed files with 16 additions and 16 deletions
|
|
@ -18,20 +18,20 @@
|
|||
</metal:empty>
|
||||
|
||||
<div metal:fill-slot="body"
|
||||
tal:define="principal python:request.principal.id;
|
||||
tal:define="principal python:request.principal.id;
|
||||
camefrom python:request.get('camefrom') or request.URL[-1]">
|
||||
baseUrl python:request.URL[-1];
|
||||
camefrom python:request.get('camefrom') or baseUrl">
|
||||
|
||||
<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>
|
||||
<p i18n:domain="loops"
|
||||
tal:condition="view/oidc_allowed">
|
||||
<p i18n:domain="loops"
|
||||
tal:condition="view/oidc_allowed">
|
||||
<a tal:attributes="href string:$baseUrl/@@auth_login?camefrom=$camefrom"
|
||||
i18n:translate="login-with-oidc">Login with OpenID Connect (Zitadel)</a>
|
||||
</p>
|
||||
i18n:translate="login-with-oidc">Login with OpenID Connect (Zitadel)</a>
|
||||
</p>
|
||||
<form action="." method="post"
|
||||
tal:attributes="action request/URL">
|
||||
<div tal:omit-tag=""
|
||||
|
|
@ -59,21 +59,21 @@
|
|||
tal:attributes="value request/camefrom | nothing">
|
||||
</form>
|
||||
<div tal:condition="view/showSelection"
|
||||
i18n:domain="loops">
|
||||
i18n:domain="loops">
|
||||
<br>
|
||||
<p><b i18n:translate="set-authentication-method">Set Authentication Method</b></p>
|
||||
<p><b i18n:translate="set-authentication-method">Set Authentication Method</b></p>
|
||||
<span i18n:translate="authentication-method">Authentication Method</span>:
|
||||
<select name="auth_method"
|
||||
onchange="document.cookie=`loops_auth_method=${this.value}; path=/`"
|
||||
tal:define="meth view/authMethod"
|
||||
tal:attributes="value meth">
|
||||
<select name="auth_method"
|
||||
onchange="document.cookie=`loops_auth_method=${this.value}; path=/`"
|
||||
tal:define="meth view/authMethod"
|
||||
tal:attributes="value meth">
|
||||
<option value="legacy" i18n:translate="authentication-method-legacy"
|
||||
tal:attributes="selected python:meth=='legacy'">Legacy</option>
|
||||
tal:attributes="selected python:meth=='legacy'">Legacy</option>
|
||||
<option value="oidc" i18n:translate="authentication-method-oidc"
|
||||
tal:attributes="selected python:meth=='oidc'">OIDC</option>
|
||||
tal:attributes="selected python:meth=='oidc'">OIDC</option>
|
||||
<option value="select" i18n:translate="authentication-method-select"
|
||||
tal:attributes="selected python:meth=='select'">Selection</option>
|
||||
</select>
|
||||
tal:attributes="selected python:meth=='select'">Selection</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue