mirror of https://github.com/hashicorp/consul
13 lines
523 B
Handlebars
13 lines
523 B
Handlebars
{{! action groups are block only components, you MUST specify a list of actions in the component body }}
|
|
{{! therefore if you call this component as an inline component, nothing is produced }}
|
|
{{#if hasBlock }}
|
|
<input type="radio" name="actions" id="actions_{{index}}" checked={{if (eq checked 'checked') 'checked' }} onchange={{action onchange}} value={{index}} />
|
|
<label for="actions_{{index}}">
|
|
<span>Open</span>
|
|
</label>
|
|
<label for="actions_close">
|
|
<span>Close</span>
|
|
</label>
|
|
{{yield}}
|
|
{{/if}}
|