dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #29657
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 15004: Load custom entry form in Add new TEI in single event with registration form.
------------------------------------------------------------
revno: 15004
committer: Tran Chau <tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Sat 2014-04-26 21:20:00 +0800
message:
Load custom entry form in Add new TEI in single event with registration form.
modified:
dhis-2/dhis-web/dhis-web-caseentry/src/main/resources/struts.xml
dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/addSingleEventRegistration.vm
dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/singleEvent.js
dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/singleDataEntryForm.vm
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/resources/struts.xml'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/resources/struts.xml 2014-04-24 16:30:48 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/resources/struts.xml 2014-04-26 13:20:00 +0000
@@ -317,7 +317,7 @@
</action>
<action name="showEventWithRegistrationForm"
- class="org.hisp.dhis.caseentry.action.trackedentity.ShowAddTrackedEntityInstanceFormAction">
+ class="org.hisp.dhis.caseentry.action.caseentry.ShowEventWithRegistrationFormAction">
<result name="success" type="velocity">/content.vm</result>
<param name="page">/dhis-web-caseentry/addSingleEventRegistration.vm</param>
<param name="stylesheets">style/style.css</param>
=== modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/addSingleEventRegistration.vm'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/addSingleEventRegistration.vm 2014-04-21 23:47:56 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/addSingleEventRegistration.vm 2014-04-26 13:20:00 +0000
@@ -35,8 +35,7 @@
#parse( "/dhis-web-caseentry/singleDataEntryForm.vm" )
</tbody>
<tr>
- <td></td>
- <td>
+ <td colspan='2'>
<input type="submit" class="button" value="$i18n.getString( 'add' )" onclick='_continue=false;' style="width:70px;"/>
<input type="submit" class="button" value="$i18n.getString( 'add_and_register_new' )" style="width:140px;" onclick="_continue=true;"/>
<input type="button" class="button" value="$i18n.getString( 'back' )" onclick="javascript:backEventList();" style="width:70px;"/>
=== modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/singleEvent.js'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/singleEvent.js 2014-04-21 16:30:29 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/singleEvent.js 2014-04-26 13:20:00 +0000
@@ -46,6 +46,7 @@
hideById('searchDiv');
hideById('advanced-search');
hideById('listRelationshipDiv');
+ hideById('listEntityInstanceDiv');
showById('entityInstanceMamagementLink');
hideById('mainLinkLbl');
setInnerHTML('addNewDiv','');
=== modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/singleDataEntryForm.vm'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/singleDataEntryForm.vm 2014-04-21 16:30:29 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/singleDataEntryForm.vm 2014-04-26 13:20:00 +0000
@@ -7,12 +7,13 @@
#end
#end
-#if( $customDataEntryFormCode )
- $customDataEntryFormCode
+<tr><th colspan="2">$i18n.getString("data_entry")</th></tr>
+#if( $customDataEntryFormCode )
+ <tr><td colspan="4">$customDataEntryFormCode<td></td>
#elseif( $sections && $sections.size() > 0 )
<tr>
- <th colspan='2'>$programStage.program.displayName</th>
+ <th colspan="2">$programStage.program.displayName</th>
</tr>
<!-- Identifiers/Attributes belong to the selected single program -->
#set($program = $programStage.program)