Merge pull request #23697 from bsilvern/CRM-3495
[civicrm-core.git] / ext / afform / html / ang / afHtmlEditor.aff.html
index 782ea3a256c11b57f0f40b43ba5cd506cf4f111e..ede9f512271c03239f2ca7d4c855a47cbc02c0be 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">
         </div>
 
         <div class="clearfix"></div>
+
+        <div class="panel panel-default">
+          <div class="panel-heading">{{ts('Submit Actions')}}</div>
+          <div class="panel-body">
+            <ng-form name="submitActions">
+              <div class="form-group" ng-class="{'has-error': !!submitActions.redirect.$error.pattern}">
+                <label class="control-label" for="af_config_redirect">{{ ts('Post-Submit Page') }}</label>
+                <input ng-model="resultForm.redirect" name="redirect" class="form-control" id="af_result_from_redirect" title="{{ ts('Post-Submit Page') }}" pattern="^((http|https):\/\/|\/|civicrm\/)[-0-9a-zA-Z\/_.]\S+$" title="{{ ts('Post-Submit Page must be either an absolute url, a relative url or a path starting with CiviCRM') }}"/>
+                <p class="help-block">{{ts('Enter a URL or path that the form should redirect to following a successful submission.') }}</p>
+              </div>
+            </ng-form>
+          </div>
+        </div>
+
+        <div class="clearfix"></div>
+
       </div>
 
       <div class="col-sm-12 col-md-8">