afHtmlEditor - Add descriptions. Add more missing fields.
authorTim Otten <totten@civicrm.org>
Tue, 1 Dec 2020 00:24:39 +0000 (16:24 -0800)
committerTim Otten <totten@civicrm.org>
Wed, 2 Dec 2020 02:47:38 +0000 (18:47 -0800)
ext/afform/html/ang/afHtmlEditor.aff.html

index d76178a2b1b073d3b5181d57c5e6f644d85c7560..ff981abf6febaa25c4d0479ad218dcc101eab45d 100644 (file)
               <label class="control-label">{{ts('Title')}}</label>
               <input ng-model="resultForm.title" type="text" class="form-control" />
             </div>
+            <div class="form-group">
+              <label class="control-label">{{ts('Description')}}</label>
+              <textarea class="form-control" ng-model="resultForm.description"></textarea>
+              <p class="help-block">{{ts('Semi-private description about the form\'s purpose.')}}</p>
+              <!-- "Semi-private": not generally public, but not audited for secrecy -->
+            </div>
             <div class="form-group">
               <label class="control-label">{{ts('Path')}}</label>
               <input ng-model="resultForm.server_route" type="text" class="form-control" />
+              <p class="help-block">{{ts('Expose the form as a standalone page on the web site. (Example: "civicrm/my-form")')}}</p>
+            </div>
+            <div class="form-group" ng-if="!!resultForm.server_route">
+              <label for="af_config_form_is_public">
+                <input type="checkbox" id="af_config_form_is_public" ng-model="resultForm.is_public">
+                {{ ts('Enable frontend styling') }}
+              </label>
+              <p class="help-block">{{ts('The general look/feel should match the frontend')}}</p>
             </div>
             <div class="form-group">
-              <label class="control-label">{{ts('Permission')}}</label>
-              <input ng-model="resultForm.permission" type="text" class="form-control" />
+              <label for="af_config_form_is_dashlet">
+                <input type="checkbox" id="af_config_form_is_dashlet" ng-model="resultForm.is_dashlet">
+                {{ ts('Enable dashlet') }}
+              </label>
+              <p class="help-block">{{ts('Allow backend users to embed the form on the dashboard.')}}</p>
             </div>
             <div class="form-group">
-              <label class="control-label">{{ts('Description')}}</label>
-              <textarea class="form-control" ng-model="resultForm.description"></textarea>
+              <label class="control-label">{{ts('Permission')}}</label>
+              <input ng-model="resultForm.permission" type="text" class="form-control" />
+              <p class="help-block">{{ts('What permission is required to use this form?')}}</p>
             </div>
-
           </div>
         </div>