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>
|
</metal:empty>
|
||||||
|
|
||||||
<div metal:fill-slot="body"
|
<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];
|
baseUrl python:request.URL[-1];
|
||||||
camefrom python:request.get('camefrom') or baseUrl">
|
|
||||||
|
|
||||||
<p i18n:translate="" tal:condition="python: principal == 'zope.anybody'">
|
<p i18n:translate="" tal:condition="python: principal == 'zope.anybody'">
|
||||||
Please provide Login Information</p>
|
Please provide Login Information</p>
|
||||||
<p i18n:translate="" tal:condition="python: principal != 'zope.anybody'">
|
<p i18n:translate="" tal:condition="python: principal != 'zope.anybody'">
|
||||||
You are not authorized to perform this action. However, you may login as a
|
You are not authorized to perform this action. However, you may login as a
|
||||||
different user who is authorized.</p>
|
different user who is authorized.</p>
|
||||||
<p i18n:domain="loops"
|
<p i18n:domain="loops"
|
||||||
tal:condition="view/oidc_allowed">
|
tal:condition="view/oidc_allowed">
|
||||||
<a tal:attributes="href string:$baseUrl/@@auth_login?camefrom=$camefrom"
|
<a tal:attributes="href string:$baseUrl/@@auth_login?camefrom=$camefrom"
|
||||||
i18n:translate="login-with-oidc">Login with OpenID Connect (Zitadel)</a>
|
i18n:translate="login-with-oidc">Login with OpenID Connect (Zitadel)</a>
|
||||||
</p>
|
</p>
|
||||||
<form action="." method="post"
|
<form action="." method="post"
|
||||||
tal:attributes="action request/URL">
|
tal:attributes="action request/URL">
|
||||||
<div tal:omit-tag=""
|
<div tal:omit-tag=""
|
||||||
|
|
@ -59,21 +59,21 @@
|
||||||
tal:attributes="value request/camefrom | nothing">
|
tal:attributes="value request/camefrom | nothing">
|
||||||
</form>
|
</form>
|
||||||
<div tal:condition="view/showSelection"
|
<div tal:condition="view/showSelection"
|
||||||
i18n:domain="loops">
|
i18n:domain="loops">
|
||||||
<br>
|
<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>:
|
<span i18n:translate="authentication-method">Authentication Method</span>:
|
||||||
<select name="auth_method"
|
<select name="auth_method"
|
||||||
onchange="document.cookie=`loops_auth_method=${this.value}; path=/`"
|
onchange="document.cookie=`loops_auth_method=${this.value}; path=/`"
|
||||||
tal:define="meth view/authMethod"
|
tal:define="meth view/authMethod"
|
||||||
tal:attributes="value meth">
|
tal:attributes="value meth">
|
||||||
<option value="legacy" i18n:translate="authentication-method-legacy"
|
<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"
|
<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"
|
<option value="select" i18n:translate="authentication-method-select"
|
||||||
tal:attributes="selected python:meth=='select'">Selection</option>
|
tal:attributes="selected python:meth=='select'">Selection</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue