=== modified file 'dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/multiOrgSectionForm.vm' --- dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/multiOrgSectionForm.vm 2013-06-24 05:33:13 +0000 +++ dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/multiOrgSectionForm.vm 2013-07-09 04:48:34 +0000 @@ -10,6 +10,7 @@ #set( $marker = 1 ) #end +#if( !$dataSet.renderHorizontally )
@@ -106,4 +107,82 @@
+#else + + + + + + + +
+

$encoder.htmlEncode( $section.displayName )

+
+
+ + #set( $categoryComboId = $sectionCombos.get( $section.id ) ) + #set( $colCount = $numberOfTotalColumns.get( $categoryComboId ) ) + #set( $categories = $orderedCategories.get( $categoryComboId ) ) + #set( $optionsMap = $orderedOptionsMap.get( $categoryComboId ) ) + #set( $colRepeat = $catColRepeat.get( $categoryComboId ) ) + #set( $isDefaultCategory = $categories.get( 0 ).name == "default" ) + + + + #foreach( $organisationUnit in $organisationUnits ) + + #end + + + #set( $count = 0 ) + #set( $mark = 0 ) + #set( $optionCombos = $orderedCategoryOptionCombos.get( $categoryComboId ) ) + #foreach( $optionCombo in $optionCombos )#end + + #foreach( $dataElement in $section.dataElements ) + #if( $mark == 1 ) + #set( $mark = 0 ) + #else + #set( $mark = 1 ) + #end + #set( $count = $count + 1 ) + + + + + #foreach( $organisationUnit in $organisationUnits ) + #if( $isDefaultCategory ) + + #foreach( $optionCombo in $optionCombos ) + #set( $dataEntryId = "${organisationUnit.id}-${dataElement.uid}-${optionCombo.uid}-val" ) + #set( $greyedField = false ) + #set( $greyedField = $greyedFields.get( "$dataElement.uid:$optionCombo.uid" ) ) + #if( $dataElement.type == "bool" ) + + #elseif( $dataElement.type == 'trueOnly' ) + + #else + #if( $dataElement.optionSet ) + + #else + + #end + #end + + #set( $tabIndex = $tabIndex + 1 ) + #end + #else + #end + #end + + #end + +
${encoder.htmlEncode( $organisationUnit.displayName )}
${encoder.htmlEncode( $dataElement.displayName )}
+
+
+#end #end