consul/ui-v2/app/templates/components/modal-dialog.hbs
John Cowen 06d09d11f1
ui: Move slots to use attributes over positional params (#7032)
* Change all instances of yield/block-slots to use attributes over positional arguments

* Remove the ability to use yield/block-slots with positional params
2020-01-15 09:15:54 +00:00

19 lines
610 B
Handlebars

{{yield}}
<input id={{name}} type="radio" name="modal" data-checked="{{checked}}" checked={{checked}} onchange={{action 'change'}} />
<div role="dialog" aria-modal="true">
<label for="modal_close"></label>
<div>
<div>
<header>
<label for="modal_close">Close</label>
{{#yield-slot name='header'}}{{yield}}{{/yield-slot}}
</header>
<div>
{{#yield-slot name='body'}}{{yield}}{{/yield-slot}}
</div>
<footer>
{{#yield-slot name='actions' params=(block-params (action 'close'))}}{{yield}}{{/yield-slot}}
</footer>
</div>
</div>
</div>