github.com/outbrain/consul@v1.4.5/ui-v2/app/templates/dc/acls/tokens/-fieldsets-legacy.hbs (about)

     1      <fieldset>
     2          <label class="type-text{{if item.error.Name ' has-error'}}">
     3              <span>Name</span>
     4              {{input value=item.Description name='name' autofocus='autofocus'}}
     5          </label>
     6  {{#if false}}
     7          <div role="radiogroup" class={{if item.error.Type ' has-error'}}>
     8              {{#each (array 'management' 'client') as |type|}}
     9                  <label>
    10                      <span>{{capitalize type}}</span>
    11                      <input type="radio" name="Type" value="{{type}}" checked={{if (eq item.Type type) 'checked'}} onchange={{ action 'change' }}/>
    12                  </label>
    13              {{/each}}
    14          </div>
    15  {{/if}}
    16          <label class="type-text">
    17              <span>Rules <a href="{{env 'CONSUL_DOCUMENTATION_URL'}}/guides/acl.html#rule-specification" rel="help noopener noreferrer" target="_blank">(HCL Format)</a></span>
    18              {{code-editor class=(if item.error.Rules 'error') name='Rules' syntax='hcl' value=item.Rules onkeyup=(action 'change' 'Rules')}}
    19          </label>
    20  {{#if create }}
    21          <label class="type-text">
    22              <span>ID</span>
    23              {{ input value=item.ID }}
    24              <em>We'll generate a UUID if this field is left empty.</em>
    25          </label>
    26  {{/if}}
    27      </fieldset>
    28