github.com/hernad/nomad@v1.6.112/ui/app/components/metadata-editor.hbs (about) 1 {{! 2 Copyright (c) HashiCorp, Inc. 3 SPDX-License-Identifier: MPL-2.0 4 ~}} 5 6 <form class="metadata-editor"> 7 <label> 8 <strong>Key</strong> 9 {{#if @constantKey}} 10 <span class="constant-key">{{@kv.key}}</span> 11 {{else}} 12 <Input 13 {{autofocus}} 14 id="new-meta-key" 15 @type="text" 16 @value={{@kv.key}} 17 class="input" 18 {{on "keyup" @onEdit}} 19 /> 20 {{/if}} 21 </label> 22 <label> 23 <strong>Value</strong> 24 {{#if @autofocusValue}} 25 <Input 26 data-test-metadata-editor-value 27 @type="text" 28 @value={{@kv.value}} 29 class="input" 30 {{autofocus}} 31 {{on "keyup" @onEdit}} 32 /> 33 {{else}} 34 <Input 35 data-test-metadata-editor-value 36 @type="text" 37 @value={{@kv.value}} 38 class="input" 39 {{on "keyup" @onEdit}} 40 /> 41 {{/if}} 42 </label> 43 <footer> 44 {{yield}} 45 </footer> 46 </form>