open-vault/ui/app/templates/components/get-credentials-card.hbs
2021-07-12 12:50:30 -05:00

28 lines
729 B
Handlebars

<form class="selectable-card is-rounded no-flex">
<div class="is-flex-between is-fullwidth card-details" >
<h3 class="title is-5">{{@title}}</h3>
</div>
<div class="has-top-bottom-margin">
<p class="is-label search-label">{{@searchLabel}}</p>
</div>
<SearchSelect
@id={{id}}
@models={{@models}}
@selectLimit='1'
@backend={{@backend}}
@fallbackComponent='input-search'
@onChange={{action 'handleRoleInput' }}
@inputValue={{get model valuePath}}
data-test-search-roles
/>
<input
type="submit"
value={{@title}}
class="button is-secondary"
disabled={{buttonDisabled}}
onclick={{action "transitionToCredential"}}
data-test-get-credentials
/>
</form>