dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #19834
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 8816: Styling person custom forms
------------------------------------------------------------
revno: 8816
committer: Lars Helge Øverland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2012-11-01 11:43:33 +0300
message:
Styling person custom forms
modified:
dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/customDataEntryForm.vm
dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/dataEntryForm.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/webapp/dhis-web-caseentry/customDataEntryForm.vm'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/customDataEntryForm.vm 2012-08-24 10:09:45 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/customDataEntryForm.vm 2012-11-01 08:43:33 +0000
@@ -1,3 +1,8 @@
+<script type="text/javascript">
+jQuery( document ).ready( function() {
+ $( "input[name='entryfield']" ).addClass( "formInputField" ).css( "width", "20em" );
+} );
+</script>
<div id="customEntryScreenContainer">
$customDataEntryFormCode
</div>
\ No newline at end of file
=== modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/dataEntryForm.vm'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/dataEntryForm.vm 2012-10-22 06:49:19 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/dataEntryForm.vm 2012-11-01 08:43:33 +0000
@@ -46,8 +46,7 @@
<script>
var i18n_create_new_event = '$encoder.jsEscape( $i18n.getString( "create_new_event" ) , "'" )';
- #if( $programStageInstance.programInstance.program.type=='1' &&
- $programStageInstance.programInstance.completed=="true")
+ #if( $programStageInstance.programInstance.program.type=='1' && $programStageInstance.programInstance.completed=="true")
jQuery("[id=entryFormContainer] :input").prop('disabled', true);
jQuery("[id=entryFormContainer] :input").datepicker("destroy");
jQuery("[id=executionDate]").prop('disabled', true);