Files
threshold-ui/ui/admin/app/templates/scopes/scope/authenticate.hbs
T
Zhihe Li b55c50cf64 Chore/update linter (#1355)
* chore: 🤖 Update editor config settings

* chore: 🤖 Add back ember-template-lint-plugin-prettier

* style: 💄 Format admin

* style: 💄 Format desktop

* style: 💄 Format rose

* style: 💄 Format core

* style: 💄 Format api
2022-10-06 11:41:12 -04:00

64 lines
1.7 KiB
Handlebars

{{page-title (t 'actions.authenticate')}}
<Rose::Layout::Centered>
<Rose::Layout::Page as |page|>
<page.body>
<Rose::Frame>
<:header>
<h2>{{t 'actions.authenticate'}}</h2>
</:header>
<:body>
<p>{{t
'auth.descriptions.authenticating-with-org'
name=@model.scope.displayName
}}</p>
<Rose::Dropdown
@text={{t 'actions.choose-different-org'}}
@icon='flight-icons/svg/org-16'
as |dropdown|
>
<dropdown.link @route='scopes.scope.authenticate' @model='global'>
{{t 'titles.global'}}
</dropdown.link>
{{#each this.sortedScopes as |scope|}}
<dropdown.link
@route='scopes.scope.authenticate'
@model={{scope.id}}
>
{{scope.displayName}}
</dropdown.link>
{{/each}}
</Rose::Dropdown>
<Rose::Separator />
<Rose::Nav::Tabs as |nav|>
{{#each @model.authMethods as |authMethod|}}
<nav.link
@route='scopes.scope.authenticate.method'
@model={{authMethod.id}}
>
{{#if authMethod.name}}
{{authMethod.name}}
{{else}}
{{t (concat 'resources.auth-method.types.' authMethod.type)}}
{{/if}}
</nav.link>
{{/each}}
</Rose::Nav::Tabs>
{{#if @model.authMethods}}
{{outlet}}
{{/if}}
</:body>
</Rose::Frame>
</page.body>
</Rose::Layout::Page>
</Rose::Layout::Centered>