← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 6427: (patient) Minor fix for Enrollment form.

 

------------------------------------------------------------
revno: 6427
committer: Tran Chau <tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2012-03-29 11:23:14 +0700
message:
  (patient) Minor fix for Enrollment form.
modified:
  dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/programEnrollmentForm.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-caseentry/src/main/webapp/dhis-web-caseentry/programEnrollmentForm.vm'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/programEnrollmentForm.vm	2012-03-29 04:15:07 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/programEnrollmentForm.vm	2012-03-29 04:23:14 +0000
@@ -33,7 +33,7 @@
 						<tr #alternate( $mark )>
 							<td class='text-column'><label>$identifierType.name #if($identifierType.mandatory == true )<em title="$i18n.getString( 'required' )" class="required">*</em> #end</label></td>       
 							<td class="input-column">
-								<input type="text" id="iden$identifierType.id" objectId='$identifierType.id' objectType='iden' name="iden$identifierType.id" value='$!identifier' class="{validate:{required:$identifierType.mandatory, #if($!identifierType.noChars) maxlength:$identifierType.noChars, #end #if($identifierType.type=='number') number:true #elseif($!identifierType.type=='letter') lettersonly:true #end }}" />
+								<input type="text" id="iden$identifierType.id" name="iden$identifierType.id" value='$!identifier' class="{validate:{required:$identifierType.mandatory, #if($!identifierType.noChars) maxlength:$identifierType.noChars, #end #if($identifierType.type=='number') number:true #elseif($!identifierType.type=='letter') lettersonly:true #end }}" />
 							</td>
 						</tr>
 						#set( $mark = !$mark  )
@@ -52,7 +52,7 @@
 								<td class='text-column'><label>$attribute.name #if($attribute.mandatory)<em title="$i18n.getString( "required" )" class="required">*</em> #end</label></td>
 								<td class="input-column" >
 									#if( $attribute.valueType == "YES/NO" )
-										<select id="attr$attribute.id" name="attr$attribute.id" objectId='$attribute.id' objectType='attr' >              
+										<select id="attr$attribute.id" name="attr$attribute.id" >              
 											<option value="">[$i18n.getString( "please_select" )]</option>
 											<option value="true" #if( $attributeValue=='true') selected="selected" #end>$i18n.getString( "yes" )</option>
 											<option value="false" #if( $attributeValue=='false') selected="selected" #end>$i18n.getString( "no" )</option>
@@ -63,14 +63,14 @@
 											datePickerValid( 'attr$attribute.id' );
 										</script>                 
 									#elseif( $attribute.valueType == "COMBO" )
-										<select  id="attr$attribute.id" name="attr$attribute.id"  objectId='$attribute.id' objectType='attr' class=' #validate( "default"  $attribute.mandatory )' >
+										<select  id="attr$attribute.id" name="attr$attribute.id" class=' #validate( "default"  $attribute.mandatory )' >
 											 <option value="">[$i18n.getString( "please_select" )]</option>
 										#foreach ($option in $attribute.attributeOptions )
 											<option value="$option.id" #if($attributeValue == $option.name) selected="selected" #end>$option.name</option>
 										#end
 										</select>
 									#else 
-										<input type="text"  id="attr$attribute.id" name="attr$attribute.id"  objectId='$attribute.id' objectType='attr' value="$!attributeValue" class="{validate:{required:$attribute.mandatory #if($!attribute.noChars),maxlength:$attribute.noChars #end #if($attribute.valueType=='NUMBER'),number:true #end }}"  > 
+										<input type="text"  id="attr$attribute.id" name="attr$attribute.id" value="$!attributeValue" class="{validate:{required:$attribute.mandatory #if($!attribute.noChars),maxlength:$attribute.noChars #end #if($attribute.valueType=='NUMBER'),number:true #end }}"  > 
 									#end
 								</td>		
 							</tr>
@@ -93,25 +93,25 @@
 								<td class='text-column'><label>$attribute.name #if($attribute.mandatory)<em title="$i18n.getString( "required" )" class="required">*</em> #end</label></td>
 								<td class="input-column" >
 									#if( $attribute.valueType == "YES/NO" )
-										<select id="attr$attribute.id"  name="attr$attribute.id"  objectId='$attribute.id' objectType='attr' >              
+										<select id="attr$attribute.id"  name="attr$attribute.id" >              
 											<option value="">[$i18n.getString( "please_select" )]</option>
 											<option value="true" #if( $attributeValue ) selected="selected" #end>$i18n.getString( "yes" )</option>
 											<option value="false" #if( !$attributeValue ) selected="selected" #end>$i18n.getString( "no" )</option>
 										</select>                
 									#elseif( $attribute.valueType == "DATE" )
-										<input type="text" id="attr$attribute.id" name="attr$attribute.id"  objectId='$attribute.id' objectType='attr' value="$!attributeValue" class=' #validate( "default"  $attribute.mandatory )' >
+										<input type="text" id="attr$attribute.id" name="attr$attribute.id" value="$!attributeValue" class=' #validate( "default"  $attribute.mandatory )' >
 										<script type="text/javascript">
 											datePickerValid( 'attr$attribute.id' );
 										</script>                    
 									#elseif( $attribute.valueType == "COMBO" )
-										<select  id="attr$attribute.id"  name="attr$attribute.id"  objectId='$attribute.id' objectType='attr' class=' #validate( "default"  $attribute.mandatory )' >
+										<select  id="attr$attribute.id"  name="attr$attribute.id" class=' #validate( "default"  $attribute.mandatory )' >
 											 <option value="">[$i18n.getString( "please_select" )]</option>
 										#foreach ($option in $attribute.attributeOptions )
 											<option value="$option.id" #if($attributeValue == $option.name) selected="selected" #end>$option.name</option>
 										#end
 										</select>
 									#else
-										<input type="text"  id="attr$attribute.id" name="attr$attribute.id"  objectId='$attribute.id' objectType='attr' value="$!attributeValue" class="{validate:{required:$attribute.mandatory #if($!attribute.noChars),maxlength:$attribute.noChars #end #if($attribute.valueType=='NUMBER'),number:true #end }}" >
+										<input type="text"  id="attr$attribute.id" name="attr$attribute.id" value="$!attributeValue" class="{validate:{required:$attribute.mandatory #if($!attribute.noChars),maxlength:$attribute.noChars #end #if($attribute.valueType=='NUMBER'),number:true #end }}" >
 									#end
 								</td>		
 							</tr>
@@ -121,7 +121,7 @@
 				#end
 				<tr>
 					<td></td>
-					<td><input type='submit' value='$i18n.getString("save")' /></td>
+					<td><input type='submit' value='$i18n.getString("save")' class='button' /></td>
 				</tr>
 			</table>
 			#end
@@ -233,11 +233,12 @@
 			saveIdentifierAndAttribute();
 		});	
 	});
-		
+
 	#if( $programInstance || $hasDataEntry == 'true')
+		
 		$('#tabs').tabs();
 		
-		#if( $identifierTypes || $noGroupAttributes || $attributeGroups )
+		#if( $identifierTypes && $noGroupAttributes && $attributeGroups )
 			$( "#tabs" ).tabs( "option", "selected", 1 );
 			$( "#tabs" ).tabs( "option", "disabled", [0] );
 		#end