|
1 | 1 | {{template "base/head" .}} |
2 | | -<div role="main" aria-label="{{.Title}}" class="page-content ui one column stackable tw-text-center page grid oauth2-authorize-application-box"> |
3 | | - <div class="column seven wide"> |
4 | | - <div class="ui middle centered raised segments"> |
5 | | - <h3 class="ui top attached header"> |
6 | | - {{ctx.Locale.Tr "auth.authorize_title" .Application.Name}} |
7 | | - </h3> |
8 | | - <div class="ui attached segment"> |
9 | | - {{template "base/alert" .}} |
10 | | - <p> |
11 | | - {{if not .AdditionalScopes}} |
12 | | - <b>{{ctx.Locale.Tr "auth.authorize_application_description"}}</b><br> |
13 | | - {{end}} |
14 | | - {{ctx.Locale.Tr "auth.authorize_application_created_by" .ApplicationCreatorLinkHTML}}<br> |
15 | | - {{ctx.Locale.Tr "auth.authorize_application_with_scopes" (HTMLFormat "<b>%s</b>" .Scope)}} |
16 | | - </p> |
17 | | - </div> |
18 | | - <div class="ui attached segment"> |
19 | | - <p>{{ctx.Locale.Tr "auth.authorize_redirect_notice" .ApplicationRedirectDomainHTML}}</p> |
20 | | - </div> |
21 | | - <div class="ui attached segment"> |
22 | | - <form method="post" action="{{AppSubUrl}}/login/oauth/grant"> |
23 | | - {{.CsrfTokenHtml}} |
24 | | - <input type="hidden" name="client_id" value="{{.Application.ClientID}}"> |
25 | | - <input type="hidden" name="state" value="{{.State}}"> |
26 | | - <input type="hidden" name="scope" value="{{.Scope}}"> |
27 | | - <input type="hidden" name="nonce" value="{{.Nonce}}"> |
28 | | - <input type="hidden" name="redirect_uri" value="{{.RedirectURI}}"> |
29 | | - <button type="submit" id="authorize-app" name="granted" value="true" class="ui red inline button">{{ctx.Locale.Tr "auth.authorize_application"}}</button> |
30 | | - <button type="submit" name="granted" value="false" class="ui basic primary inline button">{{ctx.Locale.Tr "cancel"}}</button> |
31 | | - </form> |
32 | | - </div> |
| 2 | +<div role="main" aria-label="{{.Title}}" class="page-content oauth2-authorize-application-box"> |
| 3 | + <div class="ui container tw-max-w-[500px]"> |
| 4 | + <h3 class="ui top attached header"> |
| 5 | + {{ctx.Locale.Tr "auth.authorize_title" .Application.Name}} |
| 6 | + </h3> |
| 7 | + <div class="ui attached segment"> |
| 8 | + {{template "base/alert" .}} |
| 9 | + <p> |
| 10 | + {{if not .AdditionalScopes}} |
| 11 | + <b>{{ctx.Locale.Tr "auth.authorize_application_description"}}</b><br> |
| 12 | + {{end}} |
| 13 | + {{ctx.Locale.Tr "auth.authorize_application_created_by" .ApplicationCreatorLinkHTML}}<br> |
| 14 | + {{ctx.Locale.Tr "auth.authorize_application_with_scopes" (HTMLFormat "<b>%s</b>" .Scope)}} |
| 15 | + </p> |
| 16 | + </div> |
| 17 | + <div class="ui attached segment"> |
| 18 | + <p>{{ctx.Locale.Tr "auth.authorize_redirect_notice" .ApplicationRedirectDomainHTML}}</p> |
| 19 | + </div> |
| 20 | + <div class="ui attached segment tw-text-center"> |
| 21 | + <form method="post" action="{{AppSubUrl}}/login/oauth/grant"> |
| 22 | + {{.CsrfTokenHtml}} |
| 23 | + <input type="hidden" name="client_id" value="{{.Application.ClientID}}"> |
| 24 | + <input type="hidden" name="state" value="{{.State}}"> |
| 25 | + <input type="hidden" name="scope" value="{{.Scope}}"> |
| 26 | + <input type="hidden" name="nonce" value="{{.Nonce}}"> |
| 27 | + <input type="hidden" name="redirect_uri" value="{{.RedirectURI}}"> |
| 28 | + <button type="submit" id="authorize-app" name="granted" value="true" class="ui red inline button">{{ctx.Locale.Tr "auth.authorize_application"}}</button> |
| 29 | + <button type="submit" name="granted" value="false" class="ui basic primary inline button">{{ctx.Locale.Tr "cancel"}}</button> |
| 30 | + </form> |
33 | 31 | </div> |
34 | 32 | </div> |
35 | 33 | </div> |
|
0 commit comments