2014-11-05 10:03:48 -05:00
|
|
|
<div class="lightbox__body" ng-controller="DialogCtrl">
|
|
|
|
<header class="lightbox__header">
|
2013-11-08 15:35:30 -05:00
|
|
|
<h2>{{state.dialog.title}}</h2>
|
2014-11-05 10:03:48 -05:00
|
|
|
<button class="lightbox__close" wo-touch="confirm(false)" data-action="lightbox-close">
|
2014-09-23 09:41:37 -04:00
|
|
|
<svg><use xlink:href="#icon-close" /><title>Close</title></svg>
|
|
|
|
</button>
|
2013-11-08 15:35:30 -05:00
|
|
|
</header>
|
|
|
|
|
2014-11-05 10:03:48 -05:00
|
|
|
<div class="lightbox__content">
|
|
|
|
<p class="typo-paragraph">{{state.dialog.message}} <a ng-show="state.dialog.faqLink" href="{{state.dialog.faqLink}}" target="_blank">Learn more</a></p>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<footer class="lightbox__controls">
|
|
|
|
<button wo-touch="confirm(false)" class="btn btn--secondary" ng-show="state.dialog.showNegativeBtn">{{state.dialog.negativeBtnStr}}</button>
|
|
|
|
<!-- only show bug report button if we can actually report a bug, i.e. the writer is attached to the scope -->
|
|
|
|
<button wo-touch="confirm(true)" class="btn" ng-show="!state.writer || !state.dialog.showBugReporter">{{state.dialog.positiveBtnStr}}</button>
|
|
|
|
<button wo-touch="confirm(true); state.writer.reportBug()" class="btn" ng-show="state.writer && state.dialog.showBugReporter">Report bug</button>
|
|
|
|
</footer>
|
|
|
|
</div>
|