Files
threshold-ui/ui/admin/app/templates/scopes/scope/auth-methods/index.hbs
T

81 lines
2.4 KiB
Handlebars
Raw Normal View History

2020-08-12 15:43:34 -04:00
<Rose::Layout::Page as |page|>
<page.header>
<h2>
{{t "resources.auth-method.title_plural"}}
<DocLink @doc="auth-method" @iconSize="large" />
</h2>
<p>{{t "resources.auth-method.description"}}</p>
2020-08-12 15:43:34 -04:00
</page.header>
<page.breadcrumbs>
<BreadCrumbs />
</page.breadcrumbs>
2020-08-13 16:08:45 -04:00
<page.actions>
{{#if @model}}
<Rose::LinkButton @route="scopes.scope.auth-methods.new" @style="primary">
{{t "titles.new"}}
</Rose::LinkButton>
{{/if}}
</page.actions>
2020-08-12 15:43:34 -04:00
<page.body>
{{#if @model}}
2020-08-13 11:03:10 -04:00
2020-08-12 15:43:34 -04:00
<Rose::Table as |table|>
<table.header as |header|>
<header.row as |row|>
2020-09-22 16:22:07 -04:00
<row.headerCell>{{t 'form.name.label'}}</row.headerCell>
<row.headerCell>{{t 'form.type.label'}}</row.headerCell>
<row.headerCell>{{t 'form.id.label'}}</row.headerCell>
2020-08-12 15:43:34 -04:00
</header.row>
</table.header>
<table.body as |body|>
{{#each @model as |authMethod|}}
<body.row as |row|>
<row.headerCell>
<LinkTo
@route="scopes.scope.auth-methods.auth-method"
@model={{authMethod.id}}
>
{{authMethod.displayName}}
</LinkTo>
<p>{{authMethod.description}}</p>
</row.headerCell>
2020-08-12 15:43:34 -04:00
<row.cell>
<Rose::Badge>
2020-09-22 18:00:06 -04:00
{{t (concat 'resources.auth-method.types.' authMethod.type)}}
2020-08-12 15:43:34 -04:00
</Rose::Badge>
</row.cell>
<row.cell>
<Copyable
@text={{authMethod.id}}
@buttonText={{t "actions.copy-to-clipboard"}}
@acknowledgeText={{t "states.copied"}}
>
2020-09-30 12:18:12 -04:00
<code>{{authMethod.id}}</code>
</Copyable>
</row.cell>
2020-08-12 15:43:34 -04:00
</body.row>
{{/each}}
</table.body>
</Rose::Table>
2020-08-13 11:03:10 -04:00
{{else}}
<Rose::Layout::Centered>
<Rose::Message @title={{t 'resources.auth-method.messages.welcome.title'}} as |message|>
2020-08-13 11:03:10 -04:00
<message.description>
{{t 'resources.auth-method.messages.welcome.description'}}
2020-08-13 11:03:10 -04:00
</message.description>
<message.link @route="scopes.scope.auth-methods.new">
<Rose::Icon @name="plus-circle-outline" />
{{t 'titles.new'}}
</message.link>
2020-08-13 11:03:10 -04:00
</Rose::Message>
</Rose::Layout::Centered>
2020-08-12 15:43:34 -04:00
{{/if}}
</page.body>
</Rose::Layout::Page>