commit | b9a21c4824b0743415d4cf3049b807dec183b9b1 | [log] [tgz] |
---|---|---|
author | Rucha Mahabal <ruchamahabal2@gmail.com> | Fri Jan 22 09:00:40 2021 +0530 |
committer | Rucha Mahabal <ruchamahabal2@gmail.com> | Fri Jan 22 09:00:40 2021 +0530 |
tree | c0e93762ae2978fe86d8f98af6fa0b040a72f50d | |
parent | ded08245cc7cb1b0f0ec6d7801de800e51aff3ab [diff] |
feat: added search to the Select fields dialog in Patient History Settings
diff --git a/erpnext/healthcare/doctype/patient_history_settings/patient_history_settings.js b/erpnext/healthcare/doctype/patient_history_settings/patient_history_settings.js index 92922b2..5ea17af 100644 --- a/erpnext/healthcare/doctype/patient_history_settings/patient_history_settings.js +++ b/erpnext/healthcare/doctype/patient_history_settings/patient_history_settings.js
@@ -53,6 +53,14 @@ ] }); + d.$body.prepend(` + <div class="columns-search"> + <input type="text" placeholder="${__('Search')}" data-element="search" class="form-control input-xs"> + </div>` + ); + + frappe.utils.setup_search(d.$body, '.unit-checkbox', '.label-area'); + d.set_primary_action(__('Save'), () => { let values = d.get_values().fields;