Merge pull request #19866 from eileenmcnaughton/nfc
[civicrm-core.git] / ext / afform / admin / ang / afGuiEditor / config-form.html
1 <ng-form name="config_form">
2
3 <div class="form-group">
4 <label for="af_config_form_title">
5 {{:: ts('Title:') }} <span class="crm-marker">*</span>
6 </label>
7 <input ng-model="afform.title" class="form-control" id="af_config_form_title" required title="{{:: ts('Required') }}" />
8 </div>
9
10 <div class="form-group">
11 <label for="af_config_form_description">
12 {{:: ts('Description:') }}
13 </label>
14 <textarea ng-model="afform.description" class="form-control" id="af_config_form_description"></textarea>
15 <p class="help-block">{{:: ts('Semi-private description about the form\'s purpose.') }}</p>
16 <!-- "Semi-private": not generally public, but not audited for secrecy -->
17 </div>
18
19 <div class="form-group" ng-class="{'has-error': !!config_form.server_route.$error.pattern}">
20 <label for="af_config_form_server_route">
21 {{:: ts('Page:') }}
22 </label>
23 <input ng-model="afform.server_route" name="server_route" class="form-control" id="af_config_form_server_route" pattern="^civicrm\/[-0-9a-zA-z\/_]+$" onfocus="this.value = this.value || 'civicrm/'" onblur="if (this.value === 'civicrm/') this.value = ''" title="{{:: ts('Path must begin with &quot;civicrm/&quot;') }}">
24 <p class="help-block">{{:: ts('Expose the form as a standalone webpage. (Example: "civicrm/my-form")') }}</p>
25 </div>
26
27 <div class="form-group" ng-if="!!afform.server_route">
28 <label for="af_config_form_is_public">
29 <input type="checkbox" id="af_config_form_is_public" ng-model="afform.is_public">
30 {{:: ts('Enable frontend styling') }}
31 </label>
32 <p class="help-block">{{ts('The general look/feel should match the frontend')}}</p>
33 </div>
34
35 <div class="form-group" ng-if="!!afform.server_route">
36 <label for="af_config_form_is_token">
37 <input type="checkbox" id="af_config_form_is_token" ng-model="afform.is_token">
38 {{:: ts('Enable email token') }}
39 </label>
40 <p class="help-block">{{ts('Allow email authors to easily link to this form')}}</p>
41 </div>
42
43 <div class="form-group">
44 <label for="af_config_form_is_dashlet">
45 <input type="checkbox" id="af_config_form_is_dashlet" ng-model="afform.is_dashlet">
46 {{:: ts('Enable dashlet') }}
47 </label>
48 <p class="help-block">{{:: ts('Allow backend users to embed the form on the dashboard.') }}</p>
49 </div>
50
51 <div class="form-group">
52 <label for="af_config_form_permission">
53 {{:: ts('Permission:') }}
54 </label>
55 <input ng-model="afform.permission" class="form-control" id="af_config_form_permission" crm-ui-select="{data: editor.meta.permissions}" />
56 <p class="help-block">{{:: ts('What permission is required to use this form?') }}</p>
57 </div>
58
59 </ng-form>