Bert Leunis pushed to branch bugfix/CMS-10120 at cms-community / hippo-cms

Commits:
0a7b29dd by Bert Leunis at 2016-06-02T16:59:11+02:00
CMS-10120 update labels for DateOnly field; make show.today.button configurable 
through the document type editor.

- - - - -


3 changed files:

- 
api/src/main/java/org/hippoecm/frontend/plugins/yui/datetime/YuiDateField.properties
- 
editor/frontend/src/main/java/org/hippoecm/frontend/editor/plugins/DateOnlyPickerPlugin.java
- editor/repository/src/main/resources/namespace-system.xml


Changes:

=====================================
api/src/main/java/org/hippoecm/frontend/plugins/yui/datetime/YuiDateField.properties
=====================================
--- 
a/api/src/main/java/org/hippoecm/frontend/plugins/yui/datetime/YuiDateField.properties
+++ 
b/api/src/main/java/org/hippoecm/frontend/plugins/yui/datetime/YuiDateField.properties
@@ -1,5 +1,5 @@
 picker-format=M/d/yyyy
-set-to-current-date=Set to now
-set-to-current-date-tooltip=Click to set current date and time
+set-to-current-date=Set to today
+set-to-current-date-tooltip=Click to set current date
 date-label=Date
 IConverter.Date=${input}' in field '${label}' must be a date.


=====================================
editor/frontend/src/main/java/org/hippoecm/frontend/editor/plugins/DateOnlyPickerPlugin.java
=====================================
--- 
a/editor/frontend/src/main/java/org/hippoecm/frontend/editor/plugins/DateOnlyPickerPlugin.java
+++ 
b/editor/frontend/src/main/java/org/hippoecm/frontend/editor/plugins/DateOnlyPickerPlugin.java
@@ -23,7 +23,6 @@ import 
org.hippoecm.frontend.plugins.yui.datetime.DateOnlyFieldWidget;
 import org.hippoecm.frontend.service.IEditor.Mode;
 import org.hippoecm.frontend.service.render.RenderPlugin;
 
-import java.time.format.DateTimeFormatter;
 import java.time.format.FormatStyle;
 import java.util.Date;
 


=====================================
editor/repository/src/main/resources/namespace-system.xml
=====================================
--- a/editor/repository/src/main/resources/namespace-system.xml
+++ b/editor/repository/src/main/resources/namespace-system.xml
@@ -319,6 +319,7 @@
         </sv:property>
         <sv:property sv:name="frontend:properties" sv:type="String">
           <sv:value>mode</sv:value>
+          <sv:value>show.today.button</sv:value>
         </sv:property>
         <sv:property sv:name="frontend:references" sv:type="String">
           <sv:value>wicket.model</sv:value>
@@ -381,6 +382,7 @@
         </sv:property>
         <sv:property sv:name="frontend:properties" sv:type="String">
           <sv:value>mode</sv:value>
+          <sv:value>show.today.button</sv:value>
         </sv:property>
         <sv:property sv:name="frontend:references" sv:type="String">
           <sv:value>wicket.model</sv:value>



View it on GitLab: 
https://code.onehippo.org/cms-community/hippo-cms/commit/0a7b29dd600c3790a61b8cad490b1acff1b14c55
_______________________________________________
Hippocms-svn mailing list
Hippocms-svn@lists.onehippo.org
https://lists.onehippo.org/mailman/listinfo/hippocms-svn

Reply via email to