Merge pull request #19061 from christianwach/lab-core-2217
[civicrm-core.git] / ext / afform / gui / 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 />
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">
20 <label for="af_config_form_server_route">
21 {{ ts('Path:') }}
22 </label>
23 <input ng-model="afform.server_route" class="form-control" id="af_config_form_server_route" />
24 <p class="help-block">{{ts('Expose the form as a standalone page on the web site. (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">
36 <label for="af_config_form_is_dashlet">
37 <input type="checkbox" id="af_config_form_is_dashlet" ng-model="afform.is_dashlet">
38 {{ ts('Enable dashlet') }}
39 </label>
40 <p class="help-block">{{ts('Allow backend users to embed the form on the dashboard.')}}</p>
41 </div>
42
43 <div class="form-group">
44 <label for="af_config_form_permission">
45 {{ ts('Permission:') }}
46 </label>
47 <input ng-model="afform.permission" class="form-control" id="af_config_form_permission" crm-ui-select="{data: editor.meta.permissions, placeholder: ts('Open access')}" />
48 <p class="help-block">{{ts('What permission is required to use this form?')}}</p>
49 </div>
50
51 </ng-form>