r101 - in trunk/chorem-web/src/main/resources: i18n org/chorem/billy/action
Author: vbriand Date: 2011-04-22 09:49:02 +0200 (Fri, 22 Apr 2011) New Revision: 101 Url: http://chorem.org/repositories/revision/chorem/101 Log: Added a date format check when adding a quotation Modified: trunk/chorem-web/src/main/resources/i18n/chorem-web_en_GB.properties trunk/chorem-web/src/main/resources/i18n/chorem-web_fr_FR.properties trunk/chorem-web/src/main/resources/org/chorem/billy/action/QuotationAction-addQuotation-validation.xml Modified: trunk/chorem-web/src/main/resources/i18n/chorem-web_en_GB.properties =================================================================== --- trunk/chorem-web/src/main/resources/i18n/chorem-web_en_GB.properties 2011-04-21 16:30:26 UTC (rev 100) +++ trunk/chorem-web/src/main/resources/i18n/chorem-web_en_GB.properties 2011-04-22 07:49:02 UTC (rev 101) @@ -104,6 +104,7 @@ chorem.date.wrongFormat=The date must be in the following format \: dd/mm/yyyy chorem.endDate.afterBegin=The end date cannot be posterior to the begin date chorem.error.internal=An internal error occurred +chorem.field.mandatory=You must fill in this field chorem.gepeto.home=Home chorem.gepeto.project=Project {0} chorem.gepeto.project.add=New project Modified: trunk/chorem-web/src/main/resources/i18n/chorem-web_fr_FR.properties =================================================================== --- trunk/chorem-web/src/main/resources/i18n/chorem-web_fr_FR.properties 2011-04-21 16:30:26 UTC (rev 100) +++ trunk/chorem-web/src/main/resources/i18n/chorem-web_fr_FR.properties 2011-04-22 07:49:02 UTC (rev 101) @@ -102,6 +102,7 @@ chorem.date.wrongFormat=La date doit respecter le format suivant \: jj/mm/yyyy chorem.endDate.afterBegin=La date de fin ne doit pas pas \u00EAtre ant\u00E9rieure \u00E0 la date de d\u00E9but chorem.error.internal=Une erreur interne s''est produite +chorem.field.mandatory=Vous devez remplir ce champ chorem.gepeto.home=Accueil chorem.gepeto.project=Projet {0} chorem.gepeto.project.add=Nouveau projet Modified: trunk/chorem-web/src/main/resources/org/chorem/billy/action/QuotationAction-addQuotation-validation.xml =================================================================== --- trunk/chorem-web/src/main/resources/org/chorem/billy/action/QuotationAction-addQuotation-validation.xml 2011-04-21 16:30:26 UTC (rev 100) +++ trunk/chorem-web/src/main/resources/org/chorem/billy/action/QuotationAction-addQuotation-validation.xml 2011-04-22 07:49:02 UTC (rev 101) @@ -35,5 +35,9 @@ <field-validator type="requiredstring"> <message key="chorem.billy.quotation.postedDate.required" /> </field-validator> + <field-validator type="regex"> + <param name="expression"><![CDATA[([0-9]{1,2})/([0-9]{1,2})/([0-9]{4})]]></param> + <message key="chorem.date.wrongFormat" /> + </field-validator> </field> </validators>
participants (1)
-
vbriand@users.chorem.org