mirror of
https://projects.blender.org/infrastructure/gitea-custom.git
synced 2025-01-02 21:00:05 -05:00
Auth: Override Link Account template
The wrong template was overriden in the previous commit.
This commit is contained in:
parent
cee06cc9c9
commit
1c961188a0
2 changed files with 53 additions and 50 deletions
53
templates/user/auth/link_account.tmpl
Normal file
53
templates/user/auth/link_account.tmpl
Normal file
|
@ -0,0 +1,53 @@
|
||||||
|
{{template "base/head" .}}
|
||||||
|
<div role="main" aria-label="{{.Title}}" class="page-content user link-account">
|
||||||
|
<div class="ui middle very relaxed page grid">
|
||||||
|
<div class="column">
|
||||||
|
<div class="ui positive message flash-info">
|
||||||
|
<p>
|
||||||
|
Username and email already provided by Blender ID.<br/>
|
||||||
|
<strong>Press "Complete Registration" to continue.</strong>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<div class="ui tab {{if not .user_exists}}active{{end}}"
|
||||||
|
data-tab="auth-link-signup-tab">
|
||||||
|
|
||||||
|
{{/* template "user/auth/signup_inner" . */}}
|
||||||
|
|
||||||
|
<div class="ui container column fluid icon">
|
||||||
|
<h4 class="ui top attached header center">
|
||||||
|
{{.locale.Tr "auth.oauth_signup_title"}}
|
||||||
|
</h4>
|
||||||
|
<div class="ui attached segment">
|
||||||
|
<form class="ui form" action="{{.SignUpLink}}" method="post">
|
||||||
|
{{.CsrfTokenHtml}}
|
||||||
|
|
||||||
|
{{template "base/alert" .}}
|
||||||
|
|
||||||
|
<div class="disabled required inline field {{if and (.Err_UserName) (or (not .LinkAccountMode) (and .LinkAccountMode .LinkAccountModeRegister))}}error{{end}}">
|
||||||
|
<label for="user_name">{{.locale.Tr "username"}}</label>
|
||||||
|
<input disabled id="user_name" type="text" name="user_name" value="{{.user_name}}" required style="opacity: var(--opacity-disabled)">
|
||||||
|
</div>
|
||||||
|
<div class="disabled required inline field {{if .Err_Email}}error{{end}}">
|
||||||
|
<label for="email">{{.locale.Tr "email"}}</label>
|
||||||
|
<input disabled id="email" name="email" type="email" value="{{.email}}" required style="opacity: var(--opacity-disabled)">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="inline field">
|
||||||
|
<label></label>
|
||||||
|
<button class="ui green button">
|
||||||
|
<span class="pr-2">{{svg "octicon-check"}}</span>
|
||||||
|
{{/* .locale.Tr "auth.oauth_signup_submit" */}}
|
||||||
|
Complete Registration
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{template "base/footer" .}}
|
|
@ -1,50 +0,0 @@
|
||||||
{{template "base/head" .}}
|
|
||||||
|
|
||||||
<div class="page-content user signin icon">
|
|
||||||
{{/* template "user/auth/signin_navbar" . */}}
|
|
||||||
<div class="ui middle very relaxed page grid">
|
|
||||||
<div class="ui container column fluid">
|
|
||||||
{{/* template "user/auth/signin_inner" . */}}
|
|
||||||
|
|
||||||
<div class="ui container column fluid icon">
|
|
||||||
<h4 class="ui top attached header center">
|
|
||||||
{{.locale.Tr "auth.oauth_signup_title"}}
|
|
||||||
</h4>
|
|
||||||
<div class="ui attached segment">
|
|
||||||
<form class="ui form" action="{{.SignUpLink}}" method="post">
|
|
||||||
{{.CsrfTokenHtml}}
|
|
||||||
|
|
||||||
{{template "base/alert" .}}
|
|
||||||
|
|
||||||
<div class="ui positive message flash-info">
|
|
||||||
<p>
|
|
||||||
Username and email are provided by your Blender ID.<br/>
|
|
||||||
Press "Complete Registration" to continue.
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="required inline field {{if and (.Err_UserName) (or (not .LinkAccountMode) (and .LinkAccountMode .LinkAccountModeRegister))}}error{{end}}">
|
|
||||||
<label for="user_name">{{.locale.Tr "username"}}</label>
|
|
||||||
<input disabled id="user_name" type="text" name="user_name" value="{{.user_name}}" autofocus required>
|
|
||||||
</div>
|
|
||||||
<div class="required inline field {{if .Err_Email}}error{{end}}">
|
|
||||||
<label for="email">{{.locale.Tr "email"}}</label>
|
|
||||||
<input disabled id="email" name="email" type="email" value="{{.email}}" required>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="inline field">
|
|
||||||
<label></label>
|
|
||||||
<button class="ui green button">
|
|
||||||
{{/* .locale.Tr "auth.oauth_signup_submit" */}}
|
|
||||||
Complete Registration
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{{template "base/footer" .}}
|
|
Loading…
Reference in a new issue