1 <ng-form name=
"config_form">
3 <div class=
"form-group">
4 <label for=
"af_config_form_title">
5 {{:: ts('Title:') }}
<span class=
"crm-marker">*
</span>
7 <input ng-model=
"afform.title" class=
"form-control" id=
"af_config_form_title" required
title=
"{{:: ts('Required') }}" />
10 <div class=
"form-group">
11 <label for=
"af_config_form_description">
12 {{:: ts('Description:') }}
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 -->
19 <div class=
"form-group" ng-class=
"{'has-error': !!config_form.server_route.$error.pattern}">
20 <label for=
"af_config_form_server_route">
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 "civicrm/"') }}">
24 <p class=
"help-block">{{:: ts('Expose the form as a standalone webpage. (Example:
"civicrm/my-form")') }}
</p>
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') }}
32 <p class=
"help-block">{{ts('The general look/feel should match the frontend')}}
</p>
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') }}
40 <p class=
"help-block">{{ts('Allow email authors to easily link to this form')}}
</p>
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') }}
48 <p class=
"help-block">{{:: ts('Allow backend users to embed the form on the dashboard.') }}
</p>
51 <div class=
"form-group">
52 <label for=
"af_config_form_permission">
53 {{:: ts('Permission:') }}
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>