← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 9997: Small changes UI of data entry form.

 

------------------------------------------------------------
revno: 9997
committer: Tran Chau <tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Wed 2013-03-06 10:50:29 +0700
message:
  Small changes UI of data entry form.
modified:
  dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/dataEntryForm.vm
  dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/programStageInstanceFlow.vm
  dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/style/style.css


--
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-caseentry/src/main/webapp/dhis-web-caseentry/dataEntryForm.vm'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/dataEntryForm.vm	2013-03-02 15:09:06 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/dataEntryForm.vm	2013-03-06 03:50:29 +0000
@@ -31,30 +31,27 @@
 <input type='hidden' name='blockEntryForm' id='blockEntryForm'  value='$!programStageInstance.programInstance.program.blockEntryForm'>
 
 <div id='entryForm' #if($!programStageInstance.executionDate) class='visible' #else class='hidden' #end>					
-	#if($programStageInstance.programStage.captureCoordinates=='true')
-		<table style="width:600px;margin-top:-9px" class="listTable">
-			<tr>
-				<th class='coordinates1'><label for="longitude">$i18n.getString( "longitude" )</label></th>
-				<th class='coordinates2'><input type="text" class='criteria' id="longitude" name="longitude" value="$!{longitude}" class="{validate:{number:true,min:-180,max:180}}" placeholder='$i18n.getString("enter_a_number")' ></th>
-				<th class='coordinates1'><label for="latitude">$i18n.getString( "latitude" )</label></th>
-				<th class='coordinates2'>
-					<input type="text" class='criteria' id="latitude" name="latitude" value="$!{latitude}" class="{validate:{number:true,min:-90,max:90}}" placeholder='$i18n.getString("enter_a_number")' >
-					<img style='cursor:pointer' src='images/save.png' title='$i18n.getString("save")' onclick='saveCoordinatesEvent($!programStageInstance.id);' />
-				</th>
-			</tr>
-		</table>
-	#end
-	
-	<br>
-	
-	<table id="postCommentTbl" class="hidden">
-		<tr>
-			<td class="text-column">$i18n.getString('post_comment'):</td>
-			<td><input type="text" class="{validate:{maxlength:160}}" name="comment_$programStageInstance.id" id="comment_$programStageInstance.id" style="width:450px;" onkeypress="keypressOnComent(event,this,$programStageInstance.id);"></td>
+	<table style="width:600px;margin-top:-9px" class="listTable">
+		#if($programStageInstance.programStage.captureCoordinates=='true')
+		<tr>
+			<th class='coordinates1'><label for="longitude">$i18n.getString( "longitude" )</label></th>
+			<th class='coordinates2'><input type="text" class='criteria' id="longitude" name="longitude" value="$!{longitude}" class="{validate:{number:true,min:-180,max:180}}" placeholder='$i18n.getString("enter_a_number")' ></th>
+			<th class='coordinates1'><label for="latitude">&nbsp;$i18n.getString( "latitude" )</label></th>
+			<th class='coordinates2'>
+				<input type="text" class='criteria' id="latitude" name="latitude" value="$!{latitude}" class="{validate:{number:true,min:-90,max:90}}" placeholder='$i18n.getString("enter_a_number")' >
+				<img style='cursor:pointer' src='images/save.png' title='$i18n.getString("save")' onclick='saveCoordinatesEvent($!programStageInstance.id);' />
+			</th>
+		</tr>
+		#end
+		<tr>
+			<th class='coordinates1'><label for="postComment">$i18n.getString('post_comment'):</label></td>
+			<th colspan='3'>
+				<input type="text" class="{validate:{maxlength:160}} criteria" name="comment_$programStageInstance.id" id="comment_$programStageInstance.id" style="width:430px;#if($programStageInstance.programStage.captureCoordinates=='false') margin-left:10px; #end " onkeypress="keypressOnComent(event,this,$programStageInstance.id);">
+			</td>
 		</tr>
 		
 		<tr>
-			<td></td>
+			<td class='coordinates1'></td>
 			<td colspan='3'>
 				<table>
 					<tbody id="commentTB">
@@ -62,7 +59,7 @@
 						<tr>
 							<td>$format.formatDateTime($comment.createdDate) </td>
 							<td>$comment.creator </td>
-							<td>$comment.commentText</td>
+							<td>$!comment.commentText</td>
 						</tr>
 						#end
 					</tbody>
@@ -70,6 +67,10 @@
 			</td>
 		</tr>
 	</table>
+	</table>
+	
+	<br>
+	
 	#if( $customDataEntryFormCode )
 		#parse( "/dhis-web-caseentry/customDataEntryForm.vm" )
 	#elseif( $sections && $sections.size() > 0 )

=== modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/programStageInstanceFlow.vm'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/programStageInstanceFlow.vm	2013-03-05 13:55:46 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/programStageInstanceFlow.vm	2013-03-06 03:50:29 +0000
@@ -30,7 +30,7 @@
 								reportDateDes="$programStageInstance.programStage.reportDateDescription"
 								dueDate="$format.formatDate( $programStageInstance.dueDate )"
 								class="stage-object" 
-								value="$programStageInstance.programStage.displayName&#13;&#10;$valueDate" 
+								value="$programStageInstance.programStage.displayName&#13;&#10;&nbsp;$valueDate" 
 								onclick="javascript:loadDataEntry( $programStageInstance.id );">
 							<script>	
 								var status = $programStageInstance.getEventStatus();

=== modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/style/style.css'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/style/style.css	2013-03-06 03:06:28 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/style/style.css	2013-03-06 03:50:29 +0000
@@ -522,7 +522,8 @@
 // -------------------------------------------------------------- */
 
 .coordinates1{
-    width: 100px;
+    width: 110px;
+	white-space: normal;
 }
 
 .coordinates2{