github.com/outbrain/consul@v1.4.5/ui-v2/app/templates/settings.hbs (about) 1 {{#hashicorp-consul id="wrapper" dcs=dcs dc=dc}} 2 {{#app-view class="settings show"}} 3 {{#block-slot 'notification' as |status type|}} 4 {{#if (eq type 'update')}} 5 {{#if (eq status 'success') }} 6 Your settings were saved. 7 {{else}} 8 There was an error saving your settings. 9 {{/if}} 10 {{ else if (eq type 'delete')}} 11 {{#if (eq status 'success') }} 12 You settings have been reset. 13 {{else}} 14 There was an error resetting your settings. 15 {{/if}} 16 {{/if}} 17 {{/block-slot}} 18 {{#block-slot 'header'}} 19 <h1> 20 Settings 21 </h1> 22 {{/block-slot}} 23 {{#block-slot 'content'}} 24 <p> 25 These settings allow you to configure your browser for the Consul Web UI. Everything is saved to localstorage, and persists through visits and browser usage. 26 </p> 27 <form> 28 <fieldset> 29 <label class="type-text"> 30 <span>ACL Token</span> 31 {{ input type='password' value=item.token name="token" }} 32 <em>The token is sent with requests as the <code>X-Consul-Token</code> HTTP header parameter. This is used to control the ACL for the web UI.</em> 33 </label> 34 </fieldset> 35 <button type="submit" {{action 'update' item}}>Save</button> 36 </form> 37 {{/block-slot}} 38 {{/app-view}} 39 {{/hashicorp-consul}}