open-vault/ui/app/templates/components/ttl-picker.hbs
Matthew Irish 572fb826be
UI aws engine tweaks (#5294)
* allow passing a path for options so that it can be extracted from the model

* add cred type selector for the aws generate form

* style hint text on generate creds form

* add tests for aws-credential adapter

* allow for the case where we might have zero ttl

* show error for TTL picker if a non-number is entered for the duration part of the TTL

* fix positioning of tooltips

* fix ttl rendering with invalid input for initialValue
2018-09-28 16:45:30 -05:00

19 lines
820 B
Handlebars

<label for="time-{{elementId}}" class="is-label {{labelClass}}">{{labelText}}</label>
<MessageError @errorMessage={{errorMessage}} data-test-ttl-error />
<div class="field is-grouped">
<div class="control is-expanded">
<input data-test-ttl-value value={{time}} id="time-{{elementId}}" type="text" name="time" class="input" oninput={{action 'changedValue' 'time'}}
pattern="[0-9]*" />
</div>
<div class="control is-expanded">
<div class="select is-fullwidth">
<select data-test-ttl-unit name="unit" id="unit" onchange={{action 'changedValue' 'unit'}}>
{{#each unitOptions as |unitOption|}}
<option selected={{eq unit unitOption.value}} value={{unitOption.value}}>
{{unitOption.label}}
</option>
{{/each}}
</select>
</div>
</div>
</div>