=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/javascript/programStageSection.js' --- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/javascript/programStageSection.js 2012-10-01 09:38:04 +0000 +++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/javascript/programStageSection.js 2014-02-03 04:55:39 +0000 @@ -1,3 +1,10 @@ +$(function() { + dhis2.contextmenu.makeContextMenu({ + menuId: 'contextMenu', + menuItemActiveClass: 'contextMenuItemActive', + listItemProps: ['id', 'uid', 'name', 'type', 'psid'] + }); +}); function programStageSectionList( programStageId ) { @@ -8,16 +15,20 @@ // View details // ----------------------------------------------------------------------------- -function showSectionDetails( sectionId ) +function showSectionDetails( context ) { - jQuery.getJSON( 'getProgramStageSection.action', { id: sectionId }, function ( json ) { + jQuery.getJSON( 'getProgramStageSection.action', { id: context.id }, function ( json ) { setInnerHTML( 'nameField', json.programStageSection.name ); setInnerHTML( 'dataElementCountField', json.programStageSection.dataElementCount ); showDetails(); }); } -function removeSection( id, name ) +function removeSection( context ) { - removeItem( id, name, i18n_confirm_delete, 'removeProgramStageSection.action' ); + removeItem( context.id, context.name, i18n_confirm_delete, 'removeProgramStageSection.action' ); +} + +function showUpdateProgramStageSectionForm( context ) { + location.href = 'showUpdateProgramStageSectionForm.action?id=' + context.id + '&programStageId=' + context.psid; } === modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/programStageSection.vm' --- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/programStageSection.vm 2013-06-29 14:16:34 +0000 +++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/programStageSection.vm 2014-02-03 04:55:39 +0000 @@ -2,6 +2,15 @@

$programStage.displayName

+
+ +
+ @@ -15,28 +24,21 @@
- - - #set( $mark = false ) #foreach( $section in $sections ) - - - - - #set( $mark = !$mark ) + + + #end
$i18n.getString( "name" )$i18n.getString( "operations" )
$encoder.htmlEncode( $section.displayName ) - $i18n.getString( 'edit' ) - $i18n.getString( 'translation_translate' ) - $i18n.getString( 'remove' ) - $i18n.getString( 'show_details' ) -
$encoder.htmlEncode( $!section.displayName )