1 The `crmDialog` is a helper for working with the `dialogService`. In particular, it allows you to define then
2 dialog widgets as part of the markup.
7 dialogService.open('someDialog', '~/Path/To/Some.html', model, options)
8 .then(function(result){
9 console.log('received output from dialog', result);
14 <!-- FILE: Path/To/Some.html -->
15 <div id="bootstrap-theme" crm-dialog="someDialog">
16 <form name="someForm">
18 <input type="text" ng-model="model.foo"/>
20 <crm-dialog-button text="ts('Create')" icons="{primary: 'fa-plus'}" on-click="someDialog.close(model)" disabled="!someForm.$valid" />
21 <crm-dialog-button text="ts('Cancel')" icons="{primary: 'fa-times'}" on-click="someDialog.cancel()" />