Afform - Standardize labels with Title Case and no colon
authorColeman Watts <coleman@civicrm.org>
Wed, 19 May 2021 13:18:03 +0000 (09:18 -0400)
committerColeman Watts <coleman@civicrm.org>
Thu, 20 May 2021 12:23:52 +0000 (08:23 -0400)
ext/afform/admin/ang/afGuiEditor/config-form.html
ext/afform/admin/ang/afGuiEditor/entityConfig/Contact.html
ext/afform/admin/ang/afGuiEditor/entityConfig/Generic.html
ext/afform/admin/ang/afGuiEditor/saveBlock.html

index 0bce83afd6d3ebd8d6f87fdfe4f3ae106cd55f78..a37cb6a3f39e946489391464a3aeafb3a6ee86ed 100644 (file)
@@ -2,7 +2,7 @@
 
   <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') }}" />
@@ -10,7 +10,7 @@
 
   <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>
@@ -19,7 +19,7 @@
 
   <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>
@@ -30,7 +30,7 @@
 
     <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 &quot;civicrm/&quot;') }}">
       <p class="help-block">{{:: ts('Expose the form as a standalone webpage. (Example: "civicrm/my-form")') }}</p>
@@ -46,7 +46,7 @@
     <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>
@@ -54,7 +54,7 @@
     <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>
@@ -63,7 +63,7 @@
       <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>
index f81fdda0f73891acc06634732085a3ff624b118d..cfa51ea41d1454325c5d12211873fe1b329d6d67 100644 (file)
@@ -1,7 +1,7 @@
 <div ng-include="'~/afGuiEditor/entityConfig/Generic.html'"></div>
 <div class="form-inline">
   <label>
-    {{:: ts('Autofill as:') }}
+    {{:: ts('Autofill as') }}
   </label>
   <select ng-model="$ctrl.entity.autofill" class="form-control">
     <option value="">{{:: ts('None') }}</option>
index 3ed33fb94ab95d0131d800ad50f522c5d5ddd58a..aee1e37621a74dd647ae759983adc70995d9afcb 100644 (file)
@@ -3,13 +3,13 @@
     {{:: ts('Security') }}
   </label>
   <select ng-model="$ctrl.entity.security" class="form-control">
-    <option value="RBAC">{{:: ts('Role-based')}}</option>
-    <option value="FBAC">{{:: ts('Form-based')}}</option>
+    <option value="RBAC">{{:: ts('Role-Based')}}</option>
+    <option value="FBAC">{{:: ts('Form-Based')}}</option>
   </select>
 </div>
 <div class="form-group">
   <label>
-    {{:: ts('Actions:') }}
+    {{:: ts('Allowed Actions') }}
   </label>
   <div class="checkbox-inline">
     <label><input type="checkbox" ng-model="$ctrl.entity.actions.create">{{:: ts('Create') }}</label>
@@ -21,6 +21,6 @@
 <div class="checkbox">
   <label>
     <input type="checkbox" ng-model="$ctrl.entity['url-autofill']" ng-true-value="'1'" ng-false-value="'0'" />
-    {{:: ts('Allow url autofill') }}
+    {{:: ts('Allow URL Autofill') }}
   </label>
 </div>
index ff119a3945f434c195e5e7f94cbb6c8c8de7b8da..c88160d55224a56b4e46af104fa3d3ab18fb2929 100644 (file)
@@ -15,7 +15,7 @@
       &nbsp;
       <label>
         <input type="radio" name="save-as" ng-value="null" ng-model="model.name" />
-        {{:: ts('Save new block') }}
+        {{:: ts('Save New Block') }}
       </label>
     </div>
     <div class="alert alert-warning" ng-show="model.name">