dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #16893
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 6557: [mobile] add date format indicator
------------------------------------------------------------
revno: 6557
committer: Long <thanhlongngo1988>
branch nick: dhis2
timestamp: Fri 2012-04-13 11:19:58 +0700
message:
[mobile] add date format indicator
modified:
dhis-2/dhis-web/dhis-web-light/src/main/java/org/hisp/dhis/light/namebaseddataentry/action/SaveProgramStageFormAction.java
dhis-2/dhis-web/dhis-web-light/src/main/webapp/dhis-web-light/beneficiaryRegistrationForm.vm
dhis-2/dhis-web/dhis-web-light/src/main/webapp/dhis-web-light/programStageForm.vm
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-web/dhis-web-light/src/main/java/org/hisp/dhis/light/namebaseddataentry/action/SaveProgramStageFormAction.java'
--- dhis-2/dhis-web/dhis-web-light/src/main/java/org/hisp/dhis/light/namebaseddataentry/action/SaveProgramStageFormAction.java 2012-04-10 06:49:47 +0000
+++ dhis-2/dhis-web/dhis-web-light/src/main/java/org/hisp/dhis/light/namebaseddataentry/action/SaveProgramStageFormAction.java 2012-04-13 04:19:58 +0000
@@ -205,8 +205,6 @@
dataElements = programStage.getDataElements();
- System.out.println( "Current: " + current );
-
HttpServletRequest request = (HttpServletRequest) ActionContext.getContext().get(
ServletActionContext.HTTP_REQUEST );
Map<String, String> parameterMap = ContextUtils.getParameterMap( request );
=== modified file 'dhis-2/dhis-web/dhis-web-light/src/main/webapp/dhis-web-light/beneficiaryRegistrationForm.vm'
--- dhis-2/dhis-web/dhis-web-light/src/main/webapp/dhis-web-light/beneficiaryRegistrationForm.vm 2012-04-13 03:30:35 +0000
+++ dhis-2/dhis-web/dhis-web-light/src/main/webapp/dhis-web-light/beneficiaryRegistrationForm.vm 2012-04-13 04:19:58 +0000
@@ -39,7 +39,7 @@
>$i18n.getString( "transgender" )</option>
</select>
- <label>$i18n.getString( "date_of_birth" )</label>
+ <label>$i18n.getString( "date_of_birth" ) [yyyy-MM-dd] </label>
#if( $validationMap.get( "dob" ) )
<br /><span style="color: #990000;"> $i18n.getString($validationMap.get( "dob" ))</span>
#end
=== modified file 'dhis-2/dhis-web/dhis-web-light/src/main/webapp/dhis-web-light/programStageForm.vm'
--- dhis-2/dhis-web/dhis-web-light/src/main/webapp/dhis-web-light/programStageForm.vm 2012-04-13 03:30:35 +0000
+++ dhis-2/dhis-web/dhis-web-light/src/main/webapp/dhis-web-light/programStageForm.vm 2012-04-13 04:19:58 +0000
@@ -32,7 +32,9 @@
#set( $categoryOptionCombo = $dataElement.getCategoryOptionCombos().getModels().get( 0 ) )
#set( $key = "DE${dataElement.id}OC${categoryOptionCombo.id}" )
- <label>$encoder.htmlEncode( $dataElementName ) #if( $categoryOptionCombo.name!="(default)")$encoder.htmlEncode( $categoryOptionCombo.name )#end</label>
+ <label>$encoder.htmlEncode( $dataElementName ) #if( $categoryOptionCombo.name!="(default)")$encoder.htmlEncode( $categoryOptionCombo.name )#end
+ #if($dataElement.type=="date") [yyyy-MM-dd] #end
+ </label>
#if( $typeViolations.get( $key ) )
#set( $typeViolation = $typeViolations.get( $key ) )