$message.message.sender.name
=== modified file 'dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/history.vm'
--- dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/history.vm 2011-07-28 07:34:34 +0000
+++ dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/history.vm 2011-07-28 09:34:27 +0000
@@ -6,24 +6,21 @@
#set( $width = 40 * $dataElementHistory.historyLength )
#set( $lastIndex = $dataElementHistory.historyLength - 1 )
#set( $average = $dataElementHistory.historyPoints.get( $lastIndex ).average )
-
-
- $encoder.htmlEncode( $dataElementHistory.dataElement.name )
- $encoder.htmlEncode( $dataElementHistory.optionCombo.name )
- #if ( $dataValue && $dataValue.isFollowup() )
-
- #elseif ( $dataValue )
-
- #else
-
- #end
-
-
+#set( $dataValueAuditSize = $dataValueAudits.size() )
+
@@ -74,11 +71,11 @@
$encoder.htmlEncode( $i18n.getString( "dataelement_history" ) )
#if( !$isHistoryValid )
$encoder.htmlEncode( $i18n.getString( "history_not_valid" ) )
- #end
-
-
+ #end
+
+ #if( $dataValueAuditSize > 0 )
@@ -87,9 +84,10 @@
$encoder.htmlEncode( $i18n.getString( "on" ) ) $eachDataValueAudit.timeStamp,
$eachDataValueAudit.storedBy
- $encoder.htmlEncode( $i18n.getString( "change_from" ) ) $eachDataValueAudit.value.
+ $encoder.htmlEncode( $i18n.getString( "change_from" ) ) $eachDataValueAudit.value
#end
|
+ #end
=== modified file 'dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/javascript/form.js'
--- dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/javascript/form.js 2011-07-28 08:10:02 +0000
+++ dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/javascript/form.js 2011-07-28 09:34:27 +0000
@@ -558,11 +558,11 @@
// History
// -----------------------------------------------------------------------------
-function displayHistoryDialog()
+function displayHistoryDialog( operandName )
{
$( '#historyDiv' ).dialog( {
modal: true,
- title: 'History',
+ title: operandName,
width: 580,
height: 710
} );
@@ -572,9 +572,14 @@
{
var periodId = $( '#selectedPeriodId' ).val();
+ var dataElementName = dataElements[dataElementId].name;
+ var optionComboName = $( '#' + optionComboId + '-optioncombo' ).html();
+ var operandName = dataElementName + ' ' + optionComboName;
+
$( '#historyDiv' ).load( 'viewHistory.action', {
- dataElementId: dataElementId, optionComboId: optionComboId, periodId: periodId },
- displayHistoryDialog
+ dataElementId: dataElementId, optionComboId: optionComboId, periodId: periodId }, function() {
+ displayHistoryDialog( operandName );
+ }
);
}
=== modified file 'dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/select.vm'
--- dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/select.vm 2011-07-28 07:34:34 +0000
+++ dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/select.vm 2011-07-28 09:34:27 +0000
@@ -108,8 +108,8 @@
#parse( "dhis-web-commons/loader/loader.vm" )
-
-
-
-
-
+
+
+
+
+
=== modified file 'dhis-2/dhis-web/dhis-web-validationrule/src/main/webapp/dhis-web-validationrule/viewValidationResultForm.vm'
--- dhis-2/dhis-web/dhis-web-validationrule/src/main/webapp/dhis-web-validationrule/viewValidationResultForm.vm 2011-07-28 08:10:02 +0000
+++ dhis-2/dhis-web/dhis-web-validationrule/src/main/webapp/dhis-web-validationrule/viewValidationResultForm.vm 2011-07-28 09:34:27 +0000
@@ -124,4 +124,4 @@
#end
-
+