rename options
authorKurund Jalmi <kurundjalmi@thirdsectordesign.org>
Fri, 3 Nov 2023 17:57:10 +0000 (17:57 +0000)
committerKurund Jalmi <kurundjalmi@thirdsectordesign.org>
Fri, 3 Nov 2023 17:57:10 +0000 (17:57 +0000)
ext/afform/admin/ang/afGuiEditor/elements/afGuiField-menu.html
ext/afform/admin/ang/afGuiEditor/elements/afGuiField.component.js

index 5f01636f58e76c958f4885879b9ba8b170ac4cd5..73f89776ac2c30e68a22ff095cf864968297b50b 100644 (file)
@@ -59,8 +59,8 @@
 <li ng-if="$ctrl.fieldDefn.input_type === 'Date' && $ctrl.hasDefaultValue">
   <div ng-click="setDefaultDateType(); $event.stopPropagation(); $event.target.blur();" class="af-gui-field-select-in-dropdown form-inline">
     <select class="form-control" ng-model="getSet('default_date_type')" ng-model-options="{getterSetter: true}">
-      <option value="fixed_date">{{:: ts('Fixed Date') }}</option>
-      <option value="current_date">{{:: ts('Current Date') }}</option>
+      <option value="fixed">{{:: ts('Pick Date') }}</option>
+      <option value="now">{{:: ts('Now') }}</option>
     </select>
   </div>
 </li>
index ace876defb116c8e642478e0dc6ac2d5eacfed37..512f7e48ace40303b14b00ebb8de72e9a337e3bc 100644 (file)
@@ -55,7 +55,7 @@
         setDateOptions();
 
         if (ctrl.getDefn().input_type == 'Date' && !getSet('default_date_type')) {
-          ctrl.defaultDateType = getSet('default_date_type', 'fixed_date');
+          ctrl.defaultDateType = getSet('default_date_type', 'fixed');
         }
       };