summaryrefslogtreecommitdiff
path: root/www/crm/wp-content/plugins/civicrm/civicrm/ang/crmExample/example.html
diff options
context:
space:
mode:
Diffstat (limited to 'www/crm/wp-content/plugins/civicrm/civicrm/ang/crmExample/example.html')
-rw-r--r--www/crm/wp-content/plugins/civicrm/civicrm/ang/crmExample/example.html42
1 files changed, 42 insertions, 0 deletions
diff --git a/www/crm/wp-content/plugins/civicrm/civicrm/ang/crmExample/example.html b/www/crm/wp-content/plugins/civicrm/civicrm/ang/crmExample/example.html
new file mode 100644
index 00000000..5393e7c1
--- /dev/null
+++ b/www/crm/wp-content/plugins/civicrm/civicrm/ang/crmExample/example.html
@@ -0,0 +1,42 @@
+<form name="exampleForm" novalidate>
+ <table>
+ <thead>
+ <tr>
+ <th>Name</th>
+ <th>Value</th>
+ <th>Input</th>
+ <th>ngModel</th>
+ </tr>
+ </thead>
+
+ <tbody>
+
+ <tr ng-repeat="(exName, example) in examples">
+ <td>{{exName}}</td>
+ <td>{{example.value}}</td>
+ <td>
+ <div class="crmMailing-schedule-outer" crm-mailing-radio-date="schedule" ng-model="example.value"
+ name="{{exName}}">
+
+ <div class="crmMailing-schedule-inner">
+ <div>
+ <input ng-model="schedule.mode" type="radio" name="send_{{exName}}" value="now" id="schedule-send-now">
+ <label for="schedule-send-now">{{ts('Send immediately')}}</label>
+ </div>
+ <div>
+ <input ng-model="schedule.mode" type="radio" name="send_{{exName}}" value="at" id="schedule-send-at">
+ <label for="schedule-send-at">{{ts('Send at:')}}</label>
+ <input crm-ui-datepicker ng-model="schedule.datetime" ng-required="schedule.mode == 'at'">
+ </div>
+ </div>
+ </div>
+ </td>
+ <td>
+ <pre>{{exampleForm[exName]|json}}</pre>
+ </td>
+ </tr>
+
+ </tbody>
+ </table>
+
+</form>