afform_{admin,html} - Expose the 'is_token' property to GUI
authorTim Otten <totten@civicrm.org>
Tue, 23 Feb 2021 09:23:17 +0000 (01:23 -0800)
committerTim Otten <totten@civicrm.org>
Wed, 3 Mar 2021 20:19:05 +0000 (12:19 -0800)
ext/afform/admin/ang/afGuiEditor/config-form.html
ext/afform/html/ang/afHtmlEditor.aff.html

index 46acccdc8ff4272867cc47bb8e5153f7c3c289b0..4b834f5c7436f4866ca6ba0598f34149cb612644 100644 (file)
   <p class="help-block">{{ts('The general look/feel should match the frontend')}}</p>
 </div>
 
+<div class="form-group" ng-if="!!afform.server_route">
+  <label for="af_config_form_is_token">
+    <input type="checkbox" id="af_config_form_is_token" ng-model="afform.is_token">
+    {{:: ts('Enable email token') }}
+  </label>
+  <p class="help-block">{{ts('Allow email authors to easily link to this form')}}</p>
+</div>
+
 <div class="form-group">
   <label for="af_config_form_is_dashlet">
     <input type="checkbox" id="af_config_form_is_dashlet" ng-model="afform.is_dashlet">
index 782ea3a256c11b57f0f40b43ba5cd506cf4f111e..1caefb11a4026f56d8f481ff55296d3df8c498ca 100644 (file)
               </label>
               <p class="help-block">{{ts('The general look/feel should match the frontend')}}</p>
             </div>
+            <div class="form-group" ng-if="!!resultForm.server_route">
+              <label for="af_config_form_is_token">
+                <input type="checkbox" id="af_config_form_is_token" ng-model="resultForm.is_token">
+                {{ ts('Enable email token') }}
+              </label>
+              <p class="help-block">{{ts('Allow email authors to easily link to this form')}}</p>
+            </div>
             <div class="form-group">
               <label for="af_config_form_is_dashlet">
                 <input type="checkbox" id="af_config_form_is_dashlet" ng-model="resultForm.is_dashlet">