120 lines
3.8 KiB
Handlebars
120 lines
3.8 KiB
Handlebars
{{page-title (t 'resources.target.credential-source.title_plural')}}
|
|
|
|
<Rose::Layout::Page as |page|>
|
|
|
|
<page.breadcrumbs>
|
|
<BreadCrumbs />
|
|
</page.breadcrumbs>
|
|
|
|
<page.header>
|
|
<Targets::Target::Header @model={{@model}} />
|
|
</page.header>
|
|
|
|
<page.navigation>
|
|
<Targets::Target::Nav @model={{@model}} />
|
|
</page.navigation>
|
|
|
|
<page.actions>
|
|
<Targets::Target::Actions @model={{@model}} />
|
|
</page.actions>
|
|
|
|
<page.body>
|
|
{{#if @model.credentialLibraries}}
|
|
|
|
<Rose::Table as |table|>
|
|
<table.header as |header|>
|
|
<header.row as |row|>
|
|
<row.headerCell>{{t 'form.name.label'}}</row.headerCell>
|
|
<row.headerCell>{{t 'form.type.label'}}</row.headerCell>
|
|
<row.headerCell>{{t 'form.id.label'}}</row.headerCell>
|
|
<row.headerCell>{{t 'titles.actions'}}</row.headerCell>
|
|
</header.row>
|
|
</table.header>
|
|
<table.body as |body|>
|
|
{{#each @model.credentialLibraries as |credentialLibrary|}}
|
|
<body.row as |row|>
|
|
<row.headerCell>
|
|
<LinkTo
|
|
@route='scopes.scope.credential-stores.credential-store.credential-libraries.credential-library'
|
|
@models={{array
|
|
credentialLibrary.credential_store_id
|
|
credentialLibrary.id
|
|
}}
|
|
>
|
|
{{credentialLibrary.displayName}}
|
|
</LinkTo>
|
|
<p>{{credentialLibrary.description}}</p>
|
|
</row.headerCell>
|
|
<row.cell>
|
|
<Rose::Badge>{{t
|
|
(concat
|
|
'resources.credential-library.types.'
|
|
credentialLibrary.type
|
|
)
|
|
}}</Rose::Badge>
|
|
</row.cell>
|
|
<row.cell>
|
|
<Copyable
|
|
@text={{credentialLibrary.id}}
|
|
@buttonText={{t 'actions.copy-to-clipboard'}}
|
|
@acknowledgeText={{t 'states.copied'}}
|
|
>
|
|
<code>{{credentialLibrary.id}}</code>
|
|
</Copyable>
|
|
</row.cell>
|
|
<row.cell>
|
|
{{#if (can 'removeCredentialSources target' @model)}}
|
|
<Rose::Dropdown
|
|
@icon='flight-icons/svg/more-horizontal-16'
|
|
@iconOnly={{true}}
|
|
@showCaret={{false}}
|
|
@dropdownRight={{true}}
|
|
@text={{t 'actions.manage'}}
|
|
as |dropdown|
|
|
>
|
|
<dropdown.button
|
|
@style='danger'
|
|
{{on
|
|
'click'
|
|
(route-action
|
|
'removeCredentialSource' @model credentialLibrary
|
|
)
|
|
}}
|
|
>
|
|
{{t 'actions.remove'}}
|
|
</dropdown.button>
|
|
</Rose::Dropdown>
|
|
{{/if}}
|
|
</row.cell>
|
|
</body.row>
|
|
{{/each}}
|
|
</table.body>
|
|
</Rose::Table>
|
|
|
|
{{else}}
|
|
|
|
<Rose::Layout::Centered>
|
|
<Rose::Message
|
|
@title={{t
|
|
'resources.target.credential-source.messages.welcome.title'
|
|
}}
|
|
as |message|
|
|
>
|
|
<message.description>
|
|
{{t
|
|
'resources.target.credential-source.messages.welcome.description'
|
|
}}
|
|
</message.description>
|
|
<message.link
|
|
@route='scopes.scope.targets.target.add-credential-sources'
|
|
>
|
|
<Rose::Icon @name='flight-icons/svg/plus-circle-16' />
|
|
{{t 'resources.target.actions.add-credential-sources'}}
|
|
</message.link>
|
|
</Rose::Message>
|
|
</Rose::Layout::Centered>
|
|
|
|
{{/if}}
|
|
</page.body>
|
|
|
|
</Rose::Layout::Page> |