2014-11-13 06:27:45 -05:00
|
|
|
<div class="modal-container js-modal-container" {{action "closeModal"}}>
|
2015-04-01 11:01:38 -05:00
|
|
|
<article class="{{klass}} js-modal">
|
2014-12-25 21:26:55 -05:00
|
|
|
<section class="modal-content" {{action "noBubble" bubbles=false preventDefault=false}}>
|
2014-03-30 23:07:05 -05:00
|
|
|
{{#if title}}<header class="modal-header"><h1>{{title}}</h1></header>{{/if}}
|
2015-05-13 04:23:29 -05:00
|
|
|
{{#if showClose}}<a class="close icon-x" href="" title="Close" {{action "closeModal"}}><span class="hidden">Close</span></a>{{/if}}
|
2014-03-30 23:07:05 -05:00
|
|
|
<section class="modal-body">
|
|
|
|
{{yield}}
|
|
|
|
</section>
|
|
|
|
{{#if confirm}}
|
|
|
|
<footer class="modal-footer">
|
2015-04-01 11:01:38 -05:00
|
|
|
<button type="button" class="{{rejectButtonClass}} js-button-reject" {{action "confirm" "reject"}}>
|
2014-03-30 23:07:05 -05:00
|
|
|
{{confirm.reject.text}}
|
2014-12-14 16:29:11 -05:00
|
|
|
</button><!--
|
|
|
|
Required to strip the white-space between buttons
|
2015-04-01 11:01:38 -05:00
|
|
|
--><button type="button" class="{{acceptButtonClass}} js-button-accept" {{action "confirm" "accept"}}>
|
2014-12-10 10:02:27 -05:00
|
|
|
{{confirm.accept.text}}
|
|
|
|
</button>
|
2014-03-30 23:07:05 -05:00
|
|
|
</footer>
|
|
|
|
{{/if}}
|
|
|
|
</section>
|
|
|
|
</article>
|
|
|
|
</div>
|
2015-04-01 11:01:38 -05:00
|
|
|
<div class="modal-background js-modal-background"></div>
|