mirror of https://github.com/status-im/consul.git
21 lines
561 B
Handlebars
21 lines
561 B
Handlebars
{{!
|
|
Copyright (c) HashiCorp, Inc.
|
|
SPDX-License-Identifier: BUSL-1.1
|
|
}}
|
|
|
|
<label
|
|
...attributes
|
|
class="radio-card{{if checked ' checked'}}"
|
|
>
|
|
<div>
|
|
{{! workaround FF/Ember problem where you cannnot set a value to be value="" (empty)}}
|
|
{{#if (gt value.length 0) }}
|
|
<input type="radio" name={{name}} value={{value}} checked={{checked}} onchange={{action onchange}} />
|
|
{{else}}
|
|
<input type="radio" name={{name}} value="" checked={{checked}} onchange={{action onchange}} />
|
|
{{/if}}
|
|
</div>
|
|
<div>
|
|
{{yield}}
|
|
</div>
|
|
</label> |