Merge remote-tracking branch 'upstream/4.5' into 4.5-4.6-2015-04-13-16-08-08
[civicrm-core.git] / ang / crmExample / example.html
1 <form name="exampleForm" novalidate>
2 <table>
3 <thead>
4 <tr>
5 <th>Name</th>
6 <th>Value</th>
7 <th>Input</th>
8 <th>ngModel</th>
9 </tr>
10 </thead>
11
12 <tbody>
13
14 <tr ng-repeat="(exName, example) in examples">
15 <td>{{exName}}</td>
16 <td>{{example.value}}</td>
17 <td>
18 <div class="crmMailing-schedule-outer" crm-mailing-radio-date="schedule" ng-model="example.value"
19 name="{{exName}}">
20
21 <div class="crmMailing-schedule-inner">
22 <div>
23 <input ng-model="schedule.mode" type="radio" name="send_{{exName}}" value="now" id="schedule-send-now"/>
24 <label for="schedule-send-now">{{ts('Send immediately')}}</label>
25 </div>
26 <div>
27 <input ng-model="schedule.mode" type="radio" name="send_{{exName}}" value="at" id="schedule-send-at"/>
28 <label for="schedule-send-at">{{ts('Send at:')}}</label>
29 <input crm-ui-datepicker ng-model="schedule.datetime" ng-required="schedule.mode == 'at'"/>
30 </div>
31 </div>
32 </div>
33 </div>
34 </td>
35 <td>
36 <pre>{{exampleForm[exName]|json}}</pre>
37 </td>
38 </tr>
39
40 </tbody>
41 </table>
42
43 </form>