← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 10380: minor ui fixes for dxf2 export

 

------------------------------------------------------------
revno: 10380
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2013-03-21 19:17:21 +0700
message:
  minor ui fixes for dxf2 export
modified:
  dhis-2/dhis-web/dhis-web-importexport/src/main/webapp/dhis-web-importexport/dxf2MetaDataExport.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-importexport/src/main/webapp/dhis-web-importexport/dxf2MetaDataExport.vm'
--- dhis-2/dhis-web/dhis-web-importexport/src/main/webapp/dhis-web-importexport/dxf2MetaDataExport.vm	2013-03-14 18:14:45 +0000
+++ dhis-2/dhis-web/dhis-web-importexport/src/main/webapp/dhis-web-importexport/dxf2MetaDataExport.vm	2013-03-21 12:17:21 +0000
@@ -15,6 +15,46 @@
 
     function exportMetaData()
     {
+        if( $( '#dataSets' ).is(':checked'))
+        {
+            $( '#sections' ).attr('checked', true);
+        }
+        else
+        {
+            $( '#sections' ).attr('checked', false);
+        }
+
+        if( $( '#categories' ).is(':checked'))
+        {
+            $( '#categoryCombos' ).attr('checked', true);
+            $( '#categoryOptionCombos' ).attr('checked', true);
+            $( '#categoryOptions' ).attr('checked', true);
+        }
+        else
+        {
+            $( '#categoryCombos' ).attr( 'checked', false );
+            $( '#categoryOptionCombos' ).attr('checked', false);
+            $( '#categoryOptions' ).attr('checked', false);
+        }
+
+        if( $( '#mapLegendSets' ).is(':checked') )
+        {
+            $( '#mapLegends' ).attr('checked', true);
+        }
+        else
+        {
+            $( '#mapLegends' ).attr('checked', false);
+        }
+
+        if( $( '#maps' ).is(':checked') )
+        {
+            $( '#mapViews' ).attr('checked', true);
+        }
+        else
+        {
+            $( '#mapViews' ).attr('checked', false);
+        }
+
         var url = "../api/metaData";
         var format = $("#format").val();
         var compression = $("#compression").val();
@@ -42,10 +82,44 @@
 
 <form id="exportForm" name="exportForm">
 
+<input id="categoryCombos" name="categoryCombos" type="checkbox" value="false" style="display: none;" />
+<input id="categoryOptionCombos" name="categoryOptionCombos" type="checkbox" value="false" style="display: none;" />
+<input id="categoryOptions" name="categoryOptions" type="checkbox" value="false" style="display: none;" />
+<input id="sections" name="sections" type="checkbox" value="false" style="display: none;" />
+<input id="mapViews" name="mapViews" type="checkbox" value="false" style="display: none;" />
+<input id="mapLegends" name="mapLegends" type="checkbox" value="false" style="display: none;" />
+
 <fieldset style="width: 80%; border: 1px solid #ccc; padding: 15px;">
-    #foreach( $key in $exportClasses.keySet() )
-        <div style="width: 200px; float: left;"><input id="$key" name="$key" type="checkbox" value="true" /> <label for="$key">$exportClasses.get( $key )</label></div>
-    #end
+    <div style="width: 200px; float: left;"><input id="attributeTypes" name="attributeTypes" type="checkbox" value="true" /> <label for="attributeTypes"> Attribute Types</label></div>
+    <div style="width: 200px; float: left;"><input id="categories" name="categories" type="checkbox" value="true" /> <label for="categories">Categories</label></div>
+    <div style="width: 200px; float: left;"><input id="charts" name="charts" type="checkbox" value="true" /> <label for="charts">Charts</label></div>
+    <div style="width: 200px; float: left;"><input id="concepts" name="concepts" type="checkbox" value="true" /> <label for="concepts">Concepts</label></div>
+    <div style="width: 200px; float: left;"><input id="constants" name="constants" type="checkbox" value="true" /> <label for="constants">Constants</label></div>
+    <div style="width: 200px; float: left;"><input id="dataDictionaries" name="dataDictionaries" type="checkbox" value="true" /> <label for="dataDictionaries"> Data Dictionaries</label></div>
+    <div style="width: 200px; float: left;"><input id="dataElementGroupSets" name="dataElementGroupSets" type="checkbox" value="true" /> <label for="dataElementGroupSets"> Data Element Group Sets</label></div>
+    <div style="width: 200px; float: left;"><input id="dataElementGroups" name="dataElementGroups" type="checkbox" value="true" /> <label for="dataElementGroups"> Data Element Groups</label></div>
+    <div style="width: 200px; float: left;"><input id="dataElements" name="dataElements" type="checkbox" value="true" /> <label for="dataElements"> Data Elements</label></div>
+    <div style="width: 200px; float: left;"><input id="dataSets" name="dataSets" type="checkbox" value="true" /> <label for="dataSets"> Data Sets</label></div>
+    <div style="width: 200px; float: left;"><input id="documents" name="documents" type="checkbox" value="true" /> <label for="documents">Documents</label></div>
+    <div style="width: 200px; float: left;"><input id="indicatorGroupSets" name="indicatorGroupSets" type="checkbox" value="true" /> <label for="indicatorGroupSets"> Indicator Group Sets</label></div>
+    <div style="width: 200px; float: left;"><input id="indicatorGroups" name="indicatorGroups" type="checkbox" value="true" /> <label for="indicatorGroups"> Indicator Groups</label></div>
+    <div style="width: 200px; float: left;"><input id="indicatorTypes" name="indicatorTypes" type="checkbox" value="true" /> <label for="indicatorTypes"> Indicator Types</label></div>
+    <div style="width: 200px; float: left;"><input id="indicators" name="indicators" type="checkbox" value="true" /> <label for="indicators">Indicators</label></div>
+    <div style="width: 200px; float: left;"><input id="mapLegendSets" name="mapLegendSets" type="checkbox" value="true" /> <label for="mapLegendSets"> Map Legend Sets</label></div>
+    <div style="width: 200px; float: left;"><input id="maps" name="maps" type="checkbox" value="true" /> <label for="maps">Maps</label></div>
+    <div style="width: 200px; float: left;"><input id="optionSets" name="optionSets" type="checkbox" value="true" /> <label for="optionSets"> Option Sets</label></div>
+    <div style="width: 200px; float: left;"><input id="organisationUnitGroupSets" name="organisationUnitGroupSets" type="checkbox" value="true" /> <label for="organisationUnitGroupSets"> Organisation Unit Group Sets</label></div>
+    <div style="width: 200px; float: left;"><input id="organisationUnitGroups" name="organisationUnitGroups" type="checkbox" value="true" /> <label for="organisationUnitGroups"> Organisation Unit Groups</label></div>
+    <div style="width: 200px; float: left;"><input id="organisationUnitLevels" name="organisationUnitLevels" type="checkbox" value="true" /> <label for="organisationUnitLevels"> Organisation Unit Levels</label></div>
+    <div style="width: 200px; float: left;"><input id="organisationUnits" name="organisationUnits" type="checkbox" value="true" /> <label for="organisationUnits"> Organisation Units</label></div>
+    <div style="width: 200px; float: left;"><input id="reportTables" name="reportTables" type="checkbox" value="true" /> <label for="reportTables"> Report Tables</label></div>
+    <div style="width: 200px; float: left;"><input id="reports" name="reports" type="checkbox" value="true" /> <label for="reports">Reports</label></div>
+    <div style="width: 200px; float: left;"><input id="sqlViews" name="sqlViews" type="checkbox" value="true" /> <label for="sqlViews"> Sql Views</label></div>
+    <div style="width: 200px; float: left;"><input id="userGroups" name="userGroups" type="checkbox" value="true" /> <label for="userGroups"> User Groups</label></div>
+    <div style="width: 200px; float: left;"><input id="userRoles" name="userRoles" type="checkbox" value="true" /> <label for="userRoles"> User Roles</label></div>
+    <div style="width: 200px; float: left;"><input id="users" name="users" type="checkbox" value="true" /> <label for="users">Users</label></div>
+    <div style="width: 200px; float: left;"><input id="validationRuleGroups" name="validationRuleGroups" type="checkbox" value="true" /> <label for="validationRuleGroups"> Validation Rule Groups</label></div>
+    <div style="width: 200px; float: left;"><input id="validationRules" name="validationRules" type="checkbox" value="true" /> <label for="validationRules"> Validation Rules</label></div>
 </fieldset>
 
 <br />