2014-11-13 14:27:45 +03:00
|
|
|
<div class="modal-container js-modal-container" {{action "closeModal"}}>
|
2014-08-08 18:33:42 +04:00
|
|
|
<article {{bind-attr class="klass :js-modal"}}>
|
|
|
|
<section class="modal-content" {{action bubbles=false preventDefault=false}}>
|
2014-03-31 08:07:05 +04:00
|
|
|
{{#if title}}<header class="modal-header"><h1>{{title}}</h1></header>{{/if}}
|
|
|
|
{{#if showClose}}<a class="close" href="" title="Close" {{action "closeModal"}}><span class="hidden">Close</span></a>{{/if}}
|
|
|
|
<section class="modal-body">
|
|
|
|
{{yield}}
|
|
|
|
</section>
|
|
|
|
{{#if confirm}}
|
|
|
|
<footer class="modal-footer">
|
2014-07-22 07:27:28 +04:00
|
|
|
<button type="button" {{bind-attr class="rejectButtonClass :js-button-reject"}} {{action "confirm" "reject"}}>
|
2014-03-31 08:07:05 +04:00
|
|
|
{{confirm.reject.text}}
|
2014-12-15 00:29:11 +03:00
|
|
|
</button><!--
|
|
|
|
Required to strip the white-space between buttons
|
|
|
|
--><button type="button" {{bind-attr class="acceptButtonClass :js-button-accept"}} {{action "confirm" "accept"}}>
|
2014-12-10 18:02:27 +03:00
|
|
|
{{confirm.accept.text}}
|
|
|
|
</button>
|
2014-03-31 08:07:05 +04:00
|
|
|
</footer>
|
|
|
|
{{/if}}
|
|
|
|
</section>
|
|
|
|
</article>
|
|
|
|
</div>
|
2014-12-15 00:29:11 +03:00
|
|
|
<div class="modal-background js-modal-background"></div>
|