=== modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/resources/org/hisp/dhis/caseentry/i18n_module.properties' --- dhis-2/dhis-web/dhis-web-caseentry/src/main/resources/org/hisp/dhis/caseentry/i18n_module.properties 2012-08-20 03:18:20 +0000 +++ dhis-2/dhis-web/dhis-web-caseentry/src/main/resources/org/hisp/dhis/caseentry/i18n_module.properties 2012-08-20 08:50:44 +0000 @@ -416,4 +416,6 @@ post_comment = Post comment comments = Comments no_sms_service_available = No Sms service available -due_date_from_to = Due date (from-to) \ No newline at end of file +due_date_from_to = Due date (from-to) +no_phone_number = No phone number +no_comment = No comment \ No newline at end of file === added file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/images/comments.png' Binary files dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/images/comments.png 1970-01-01 00:00:00 +0000 and dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/images/comments.png 2012-08-20 08:50:44 +0000 differ === modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/smsReminder.js' --- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/smsReminder.js 2012-08-17 09:17:56 +0000 +++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/smsReminder.js 2012-08-20 08:50:44 +0000 @@ -97,6 +97,28 @@ height:250 }); } + +function showCommentList( programStageInstanceId, isSendSMS ) +{ + setFieldValue('sendToList', "false"); + $('#smsManagementDiv' ).load("getOutboundSmsList.action", + { + programStageInstanceId: programStageInstanceId + } + , function(){ + hideById('smsManagementForm'); + }).dialog( + { + title:i18n_sms_message_management, + maximize:true, + closable:true, + modal:false, + overlay:{background:'#000000', opacity:0.1}, + width:800, + height:500 + }); +} + function sendSMS() { var sendToList = getFieldValue('sendToList'); === added file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/tooltip.js' --- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/tooltip.js 1970-01-01 00:00:00 +0000 +++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/tooltip.js 2012-08-20 08:50:44 +0000 @@ -0,0 +1,54 @@ +var toolTip = { + offsetY : 10, + offsetX : 10, + preview : function(obj, event) { + var target = obj.attr('id') + '-content'; + if (target.length > 0) { + if (event.type == 'mouseover') { + if (!$('#' + target).hasClass('selected')) { + $('#' + target) + .css('top', (event.pageY - toolTip.offsetX) + 'px') + .css('left', (event.pageX + toolTip.offsetY) + 'px') + .fadeIn(100); + } + } else if (event.type == 'mouseout') { + if (!$('#' + target).hasClass('selected')) { + $('#' + target).hide(); + } + } else if (event.type == 'mousemove') { + if (!$('#' + target).hasClass('selected')) { + $('#' + target) + .css('top', (event.pageY - toolTip.offsetX) + 'px') + .css('left', (event.pageX + toolTip.offsetY) + 'px'); + } + } else { + if (!$('#' + target).hasClass('selected')) { + $('.tooltip-target').removeClass('selected'); + $('.tooltip-target').hide(); + $('#' + target).addClass('selected'); + $('#' + target) + .css('top', (event.pageY - toolTip.offsetX) + 'px') + .css('left', (event.pageX + toolTip.offsetY) + 'px') + .show(); + } else { + $('#' + target).removeClass('selected'); + $('#' + target).hide(); + } + } + } + } +}; +$(function() { + + $('.tooltip').live('mouseover mouseout mousemove click', function(event) { + toolTip.preview($(this), event); + return false; + }); + + $('.tooltip-target').live('click', function() { + $(this).removeClass('selected'); + $(this).hide(); + return false; + }); + +}); \ No newline at end of file === modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/smsPatientRecords.vm' --- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/smsPatientRecords.vm 2012-08-20 03:18:20 +0000 +++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/smsPatientRecords.vm 2012-08-20 08:50:44 +0000 @@ -1,3 +1,4 @@ + @@ -51,7 +52,17 @@
$i18n.getString( "search_result_matching_the_search_criteria" ): - + +#end \ No newline at end of file === modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/smsReminderList.vm' --- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/smsReminderList.vm 2012-08-17 06:42:32 +0000 +++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/smsReminderList.vm 2012-08-20 08:50:44 +0000 @@ -1,6 +1,6 @@
+ + + +