open-vault/ui/app/templates/components/get-credentials-card.hbs
Angel Garbarino 92223b600e
KV search box when no list access to metadata (#12626)
* get credentials card test and setup

* call getcrednetials card and remove path test error

* configuration

* metadata search box

* changelog

* checking if it is noReadAccess

* try removing test

* blah

* a test

* blah

* stuff

* attempting a clean up to solve issue

* Another attempt

* test1

* test2

* test3

* test4

* test5

* test6

* test7

* finally?

* clean up
2021-09-29 14:35:00 -06:00

31 lines
879 B
Handlebars

<form class="selectable-card is-rounded no-flex data-test-get-credentials-card">
<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>
<p class="sub-text">{{@subText}}</p>
<SearchSelect
@id={{id}}
@models={{@models}}
@selectLimit='1'
@backend={{@backend}}
@fallbackComponent='input-search'
@shouldUseFallback={{@shouldUseFallback}}
@onChange={{action 'handleRoleInput' }}
@inputValue={{get model valuePath}}
@placeHolder={{@placeHolder}}
data-test-search-roles
/>
<input
type="submit"
value={{@title}}
class="button is-secondary"
disabled={{buttonDisabled}}
onclick={{action "transitionToCredential"}}
data-test-get-credentials
/>
</form>