forgejo/templates/user/auth/signin_openid.tmpl

37 lines
1.1 KiB
Go HTML Template
Raw Normal View History

2017-03-17 15:16:08 +01:00
{{template "base/head" .}}
<div role="main" aria-label="{{.Title}}" class="page-content user signin openid">
2017-03-17 15:16:08 +01:00
{{template "user/auth/signin_navbar" .}}
<div class="ui container">
{{template "base/alert" .}}
<h4 class="ui top attached header center">
{{svg "fontawesome-openid"}}
2017-03-17 15:16:08 +01:00
OpenID
</h4>
<div class="ui attached segment">
<form class="ui form tw-m-auto" action="{{.Link}}" method="post">
2017-03-17 15:16:08 +01:00
{{.CsrfTokenHtml}}
<div class="inline field">
{{ctx.Locale.Tr "auth.openid_signin_desc"}}
2017-03-17 15:16:08 +01:00
</div>
<div class="required field {{if .Err_OpenID}}error{{end}}">
2017-03-17 15:16:08 +01:00
<label for="openid">
{{svg "fontawesome-openid"}}
2017-03-17 15:16:08 +01:00
OpenID URI
</label>
<input id="openid" name="openid" value="{{.openid}}" autofocus required>
2017-03-17 15:16:08 +01:00
</div>
<div class="inline field">
<div class="ui checkbox">
<label>{{ctx.Locale.Tr "auth.remember_me"}}</label>
2017-03-17 15:16:08 +01:00
<input name="remember" type="checkbox">
</div>
</div>
<div class="inline field">
<button class="ui primary button">{{ctx.Locale.Tr "sign_in"}}</button>
2017-03-17 15:16:08 +01:00
</div>
</form>
</div>
</div>
</div>
{{template "base/footer" .}}