<div class="form-group">
<label for="af_config_form_title">
- {{:: ts('Title:') }} <span class="crm-marker">*</span>
+ {{:: ts('Title') }} <span class="crm-marker">*</span>
</label>
<p class="help-block">{{:: ts('Public title (usually displayed at the top of the form).') }}</p>
<input ng-model="afform.title" class="form-control" id="af_config_form_title" required title="{{:: ts('Required') }}" />
<div class="form-group">
<label for="af_config_form_description">
- {{:: ts('Description:') }}
+ {{:: ts('Description') }}
</label>
<textarea ng-model="afform.description" class="form-control" id="af_config_form_description"></textarea>
<p class="help-block">{{:: ts("Internal note about the form's purpose (not displayed on form).") }}</p>
<div class="form-group">
<label for="af_config_form_permission">
- {{:: ts('Permission:') }}
+ {{:: ts('Permission') }}
</label>
<input ng-model="afform.permission" class="form-control" id="af_config_form_permission" crm-ui-select="{data: editor.meta.permissions}" />
<p class="help-block">{{:: ts('What permission is required to use this form?') }}</p>
<div class="form-group" ng-class="{'has-error': !!config_form.server_route.$error.pattern}">
<label for="af_config_form_server_route">
- {{:: ts('Page:') }}
+ {{:: ts('Page') }}
</label>
- <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/"') }}">
+ <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/"') }}">
<p class="help-block">{{:: ts('Expose the form as a standalone webpage. (Example: "civicrm/my-form")') }}</p>
</div>
<div class="form-group" ng-if="!!afform.server_route">
<label>
<input type="checkbox" ng-model="afform.is_token">
- {{:: ts('Provide email token') }}
+ {{:: ts('Provide Email Token') }}
</label>
<p class="help-block">{{:: ts('Allows CiviMail authors to easily link to this page') }}</p>
</div>
<div class="form-group">
<label>
<input type="checkbox" ng-model="afform.is_dashlet">
- {{:: ts('Add to dashboard') }}
+ {{:: ts('Add to Dashboard') }}
</label>
<p class="help-block">{{:: ts('Allow CiviCRM users to add the form to their home dashboard.') }}</p>
</div>
<div class="form-inline">
<label>
<input type="checkbox" ng-checked="afform.contact_summary" ng-click="editor.toggleContactSummary()">
- {{:: ts('Add to contact summary page') }}
+ {{:: ts('Add to Contact Summary Page') }}
</label>
<select class="form-control" ng-model="afform.contact_summary" ng-if="afform.contact_summary">
<option value="block">{{:: ts('As Block') }}</option>
<p class="help-block">{{:: ts('Choose which contact from the search should match the contact being viewed.') }}</p>
</div>
</fieldset>
+ <fieldset>
+
+ <legend>{{:: ts('Submit Actions') }}</legend>
+ <div class="form-group" ng-class="{'has-error': !!config_form.redirect.$error.pattern}">
+ <label for="af_config_redirect">
+ {{:: ts('Post-Submit Page') }}
+ </label>
+ <input ng-model="afform.redirect" name="redirect" class="form-control" id="af_config_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>
+ </fieldset>
</ng-form>