summaryrefslogtreecommitdiff
path: root/www/crm/wp-content/plugins/civicrm/civicrm/ang/crmExample/example.html
blob: 5393e7c1a5216493ea6bfb9046ab0b1e7d00f3a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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>