dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #25306
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 12520: Minor fix for advanced-search form.
------------------------------------------------------------
revno: 12520
committer: Tran Chau <tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Wed 2013-10-09 13:40:18 +0700
message:
Minor fix for advanced-search form.
modified:
dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/commons.js
dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/patient.js
dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/patientRegistrationList.vm
dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/searchPatientCriteria.vm
dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/style/style.css
--
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/javascript/commons.js'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/commons.js 2013-10-09 06:18:16 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/commons.js 2013-10-09 06:40:18 +0000
@@ -2384,15 +2384,10 @@
addAttributeOption();
jQuery("input[id=searchText]").last().val(value);
}
-
+ showById('hideSearchCriteriaDiv');
jQuery( "#loaderDiv" ).hide();
}
});
-
-
-
-
-
}
function advancedSearchOnclick()
@@ -2416,5 +2411,17 @@
});
addAttributeOption();
hideById('advanced-search');
-}
-
+ hideById('listPatientDiv');
+}
+
+function hideSearchCriteria()
+{
+ hideById('advanced-search');
+ showById('showSearchCriteriaDiv');
+}
+
+function showSearchCriteria()
+{
+ showById('advanced-search');
+ hideById('showSearchCriteriaDiv');
+}
=== modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/patient.js'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/patient.js 2013-10-05 05:15:03 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/patient.js 2013-10-09 06:40:18 +0000
@@ -60,6 +60,7 @@
setInnerHTML( 'listPatientDiv', html );
showById('listPatientDiv');
setFieldValue('listAll',false);
+ showById('hideSearchCriteriaDiv');
jQuery( "#loaderDiv" ).hide();
}
});
=== modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/patientRegistrationList.vm'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/patientRegistrationList.vm 2013-10-07 17:58:57 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/patientRegistrationList.vm 2013-10-09 06:40:18 +0000
@@ -15,7 +15,7 @@
setInnerHTML('enrollmentInfor', title);
}
</script>
- <input type="button" style='width:130px' value='$i18n.getString( "change" )' onclick="advancedSearchOnclick();" >
+ <input type="button" class="normal-button" value='$i18n.getString( "change" )' onclick="advancedSearchOnclick();" >
</td>
</tr>
<tr>
=== modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/searchPatientCriteria.vm'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/searchPatientCriteria.vm 2013-10-05 05:15:03 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/searchPatientCriteria.vm 2013-10-09 06:40:18 +0000
@@ -73,10 +73,13 @@
</tr>
</table>
+
+<div id='showSearchCriteriaDiv' class='hidden green-background'><img src='../images/move_bottom.png' onclick='showSearchCriteria();' > $i18n.getString("there_are_active_search_filter_click_on_arrow_to_show_them")</div>
<div id='advanced-search' name='advanced-search' class='hidden advanced-search'>
+ <div id='hideSearchCriteriaDiv' class='hidden'><img src='../images/move_top.png' onclick='hideSearchCriteria();' > $i18n.getString("hide_search_criteria")</div>
<table>
<tr>
- <td colspan='3'>
+ <td colspan='4'>
$i18n.getString('select_orgunit_for_search'): <span id='orgunitForSearch'>$!organisationUnit.name</span>
<input type='button' id='selectOtherOrgunitBtn' value='$i18n.getString("select_other_orgunit")' />
<input type='button' id='clearAndCloseSearchBtn' value='$i18n.getString("clear_and_close")' onclick='clearAndCloseSearch();'/>
@@ -92,7 +95,7 @@
<input type='checkbox' class='hidden' id='searchInAllFacility' name='searchInAllFacility' value='searchInAllOrgunits' />
#end
- <td>
+ <td class='hidden'>
$i18n.getString('search_by_user_orgunits')
<input type='checkbox' id='searchInUserOrgunits' name='searchInUserOrgunits' value='searchInUserOrgunits' />
</td>
@@ -109,7 +112,7 @@
<select id='statusEnrollment'>
<option value='0'>$i18n.getString('active_enrollments_only')</option>
<option value='1'>$i18n.getString('completed_enrollments_only')</option>
- <option value=''>$i18n.getString('both')</option>
+ <option value=''>$i18n.getString('active_and_completed_enrolments')</option>
</select>
</td>
</tr>
@@ -143,13 +146,13 @@
<tr>
<td></td>
<td></td>
+ <td name='addAndSearchBtn' rowspan='2' style='padding-bottom:2px;' valign='bottom' align="right" align="bottom">
+ <input type="button" class='normal-button' value='$i18n.getString( "search" )' onclick='validateAdvancedSearch();' id='searchPatientBtn'>
+ </td>
<td name='addAndSearchBtn' rowspan='2' style='padding-bottom:2px;' valign='bottom'>
<input type="button" class='normal-button' value='$i18n.getString( "add" )' onclick='addAttributeOption();'>
</td>
<td name='addAndSearchBtn' rowspan='2' style='padding-bottom:2px;' valign='bottom' align="right" align="bottom">
- <input type="button" class='normal-button' value='$i18n.getString( "search" )' onclick='validateAdvancedSearch();' id='searchPatientBtn'>
- </td>
- <td name='addAndSearchBtn' rowspan='2' style='padding-bottom:2px;' valign='bottom' align="right" align="bottom">
<input type="button" class='normal-button hidden' id='sendSmsToListBtn' value="$i18n.getString('sms')" onclick="setFieldValue('sendToList', true);showSendSmsForm();" >
</td>
</tr>
@@ -173,7 +176,7 @@
</td>
<td>
<input type="text" id="searchText" name="searchText" value="$!searchText" onkeyup='searchPatientsOnKeyUp( event );' style='width:200px;'>
- <input type="button" class='normal-button' name="clearSearchBtn" value='$i18n.getString( "clear" )' onclick="removeAttributeOption('advSearchBox0');" align='bottom'>
+ <input type="button" class='normal-button' name="clearSearchBtn" value='$i18n.getString( "clear" )' disabled onclick="removeAttributeOption('advSearchBox0');" align='bottom'>
</td>
</tr>
</tbody>
=== modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/style/style.css'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/style/style.css 2013-05-29 05:24:13 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/style/style.css 2013-10-09 06:40:18 +0000
@@ -144,6 +144,19 @@
border-radius: 3px;
}
+.green-background
+{
+ position: relative;
+ border: 1px solid #a4d2a3;
+ background-color: #d5efd5;
+ padding-top: 10px;
+ padding-right: 20px;
+ padding-bottom: 5px;
+ padding-left: 20px;
+ margin-bottom: 15px;
+ border-radius: 3px;
+}
+
/*----------------------------------------------------------------------------*/
/* Button list
/*----------------------------------------------------------------------------*/