← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 10343: changed to checkbox for enable/disable multi-org unit

 

------------------------------------------------------------
revno: 10343
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Wed 2013-03-20 15:47:25 +0700
message:
  changed to checkbox for enable/disable multi-org unit
modified:
  dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-settings/src/main/webapp/dhis-web-maintenance-settings/systemGeneralSettings.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-maintenance/dhis-web-maintenance-settings/src/main/webapp/dhis-web-maintenance-settings/systemGeneralSettings.vm'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-settings/src/main/webapp/dhis-web-maintenance-settings/systemGeneralSettings.vm	2012-11-15 14:32:59 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-settings/src/main/webapp/dhis-web-maintenance-settings/systemGeneralSettings.vm	2013-03-20 08:47:25 +0000
@@ -11,7 +11,7 @@
 				factorDeviation: getFieldValue( 'factorDeviation' ),
 				completenessOffset: getFieldValue( 'completenessOffset' ),
 				phoneNumberAreaCode: getFieldValue( 'phoneNumberAreaCode' ),
-                multiOrganisationUnitForms: getFieldValue( 'multiOrganisationUnitForms' )
+                multiOrganisationUnitForms: jQuery( '#multiOrganisationUnitForms' ).is( ':checked' )
 			}, function( json ) {
 				if ( json.response == "success" ) {
 					setHeaderDelayMessage( json.message );
@@ -94,13 +94,9 @@
 	<input type="text" id="phoneNumberAreaCode" name="phoneNumberAreaCode" value="$!phoneNumberAreaCode"/>
 </div>
 
-<div class="settingLabel">$i18n.getString( "multi_organisation_unit_forms" )</div>
-
 <div class="setting">
-    <select id="multiOrganisationUnitForms" name="multiOrganisationUnitForms">
-        <option value="true" #if( $multiOrganisationUnitForms == true)selected="selected"#end>True</option>
-        <option value="false" #if( $multiOrganisationUnitForms == false)selected="selected"#end>False</option>
-    </select>
+    <input type="checkbox" id="multiOrganisationUnitForms" name="multiOrganisationUnitForms" #if( $multiOrganisationUnitForms )checked="checked"#end>
+    <label for="multiOrganisationUnitForms">$i18n.getString( "multi_organisation_unit_forms" )</label>
 </div>
 
 <div class="setting">