=== modified file 'dhis-2/dhis-web/dhis-web-dataentry/src/main/java/org/hisp/dhis/de/action/LoadFormAction.java'
--- dhis-2/dhis-web/dhis-web-dataentry/src/main/java/org/hisp/dhis/de/action/LoadFormAction.java 2014-08-20 14:06:29 +0000
+++ dhis-2/dhis-web/dhis-web-dataentry/src/main/java/org/hisp/dhis/de/action/LoadFormAction.java 2014-09-17 10:40:52 +0000
@@ -337,13 +337,14 @@
dataSet.getSections().add( section );
section.getDataElements().addAll( orderedDataElements.get( orderedCategoryCombos.get( i ) ) );
+ section.setIndicators( new ArrayList<>( dataSet.getIndicators() ) );
}
displayMode = DataSet.TYPE_SECTION;
}
// ---------------------------------------------------------------------
- // For multi-org unit we only support section forms
+ // For multi-org unit only section forms supported
// ---------------------------------------------------------------------
if ( CodeGenerator.isValidCode( multiOrganisationUnit ) )
@@ -372,7 +373,7 @@
displayMode = DataSet.TYPE_SECTION_MULTIORG;
}
-
+
if ( displayMode.equals( DataSet.TYPE_SECTION ) )
{
getSectionForm( dataElements, dataSet );
@@ -396,7 +397,7 @@
Collections.sort( sections, new SectionOrderComparator() );
for ( Section section : sections )
- {
+ {
DataElementCategoryCombo sectionCategoryCombo = section.getCategoryCombo();
if ( sectionCategoryCombo != null )
=== modified file 'dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/sectionForm.vm'
--- dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/sectionForm.vm 2014-08-29 16:13:52 +0000
+++ dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/sectionForm.vm 2014-09-17 10:40:52 +0000
@@ -17,23 +17,24 @@
#foreach( $section in $sections )
#set( $categoryComboId = $sectionCombos.get( $section.id ) )
- #renderSection( $categoryComboId $section.dataElements )
+ #renderSection( $categoryComboId $section.dataElements $section.indicators )
#end
#else
#foreach( $section in $sections )
#set( $categoryComboId = $sectionCombos.get( $section.id ) )
- #renderSection( $categoryComboId $section.dataElements $section.displayName $section.description )
+ #renderSection( $categoryComboId $section.dataElements $section.indicators $section.displayName $section.description )
#end
#end
#*
- @param $categoryComboId
- @param $dataElements Data Elements to be rendered in your section
- @param $args.title Include if you want a title rendered in your section
+@param $categoryComboId category combo identifier.
+@param $dataElements data elements to be rendered in section.
+@param $indicators indicators to be rendered in section.
+@param $args.title include if you want a title rendered in section.
*#
-#macro( renderSection $categoryComboId $dataElements $title $description )
+#macro( renderSection $categoryComboId $dataElements $indicators $title $description )
+
+ #if( $indicators.size() > 0 )
+ #set( $mark = 0 )
+
+ #end
+
=== modified file 'dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/style/dhis-web-dataentry.css'
--- dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/style/dhis-web-dataentry.css 2014-09-03 01:48:33 +0000
+++ dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/style/dhis-web-dataentry.css 2014-09-17 10:40:52 +0000
@@ -153,6 +153,13 @@
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06);
}
+.indicatorArea
+{
+ margin-top: 20px;
+ padding-top: 16px;
+ border-top: 1px solid #ddd;
+}
+
/* jQuery UI tab style overrides for data value history view */
#historyTabs
=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataset/src/main/java/org/hisp/dhis/dataset/action/section/UpdateSectionAction.java'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataset/src/main/java/org/hisp/dhis/dataset/action/section/UpdateSectionAction.java 2014-09-16 16:40:46 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataset/src/main/java/org/hisp/dhis/dataset/action/section/UpdateSectionAction.java 2014-09-17 10:40:52 +0000
@@ -145,7 +145,8 @@
if ( dataSet != null ) // Check if version must be updated
{
- if ( !( equalsNullSafe( sectionName, section.getName() ) && dataElements.equals( section.getDataElements() ) ) )
+ if ( !( equalsNullSafe( sectionName, section.getName() ) &&
+ dataElements.equals( section.getDataElements() ) && indicators.equals( section.getIndicators() ) ) )
{
dataSetService.updateDataSet( dataSet.increaseVersion() );
}