Creating popover component

This commit is contained in:
Bruno Alves de Faria authored and Erik Ziegler committed 2017-06-14 09:19:49 +02:00
1 parent 6df48a1d2b
commit 661f5b1e4c
12 files changed
+170 -24

No files matched your search

@@ -0,0 +1,17 @@
<template name="popoverForm">
{{#form (extend this mixins='popover' hideValidationBox=true)}}
{{#if this.message}}
<p>{{this.message}}</p>
{{/if}}
{{>UI.contentBlock}}
<div class="popover-form-buttons {{#if eq this.placement 'left'}}text-right{{/if}}">
{{#button action='cancel'
class=(concat 'btn btn-cancel ' (choose this.cancelClass 'btn-secondary'))
tagAttributes=(extend this.tagAttributes data-dismiss='modal')
}}{{choose this.cancelLabel 'Cancel'}}{{/button}}
{{#button action='confirm'
class=(concat 'btn btn-confirm ' (choose this.confirmClass 'btn-primary'))
}}{{choose this.confirmLabel 'Confirm'}}{{/button}}
</div>
{{/form}}
</template>