Team 2 (Purview Doctor Tagging ) Only Doctors in dropdown
Specific Folder FTP Upload / ftp-deploy (push) Successful in 41s
Details
Specific Folder FTP Upload / ftp-deploy (push) Successful in 41s
Details
This commit is contained in:
parent
ef0325e325
commit
2ffe5342dc
|
|
@ -47,7 +47,7 @@
|
||||||
|
|
||||||
|
|
||||||
@endphp
|
@endphp
|
||||||
@if(count($submissions) ==0)
|
@if(count($submissions) ==0 || !empty($id) )
|
||||||
<form method="POST" action="/form/submit" id="report-form" enctype="multipart/form-data">
|
<form method="POST" action="/form/submit" id="report-form" enctype="multipart/form-data">
|
||||||
<input type="hidden" name="form_id" value="{{$form_id}}">
|
<input type="hidden" name="form_id" value="{{$form_id}}">
|
||||||
<input type="hidden" name="user_id" value="{{$form->user_id}}">
|
<input type="hidden" name="user_id" value="{{$form->user_id}}">
|
||||||
|
|
@ -231,7 +231,7 @@
|
||||||
// All contacts loaded for each hierarchy
|
// All contacts loaded for each hierarchy
|
||||||
// Example usage: console.log(contacts);
|
// Example usage: console.log(contacts);
|
||||||
// Filter out contacts where value == 'sample'
|
// Filter out contacts where value == 'sample'
|
||||||
contacts = contacts.filter(function(itm) { return itm.value !== 'sample'; });
|
contacts = contacts.filter(function(itm) { return itm.value !== 'sample'; && itm.contact && itm.contact.type === 'doctor' });
|
||||||
console.log(contacts);
|
console.log(contacts);
|
||||||
|
|
||||||
// Loop through contacts and append options to select elements whose id starts with 'field-contact_id'
|
// Loop through contacts and append options to select elements whose id starts with 'field-contact_id'
|
||||||
|
|
@ -249,68 +249,7 @@
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/* function enforceUniqueDoctorSelections() {
|
|
||||||
var selectedValues = [];
|
|
||||||
|
|
||||||
// Collect selected values (ignore empty)
|
|
||||||
$("[id^='field-contact_id']").each(function () {
|
|
||||||
var v = $(this).val();
|
|
||||||
if (v) selectedValues.push(String(v));
|
|
||||||
});
|
|
||||||
|
|
||||||
// Reset all option disabled states, then disable duplicates across selects
|
|
||||||
$("[id^='field-contact_id']").each(function () {
|
|
||||||
var currentSelect = $(this);
|
|
||||||
var currentVal = currentSelect.val() ? String(currentSelect.val()) : "";
|
|
||||||
|
|
||||||
currentSelect.find("option").prop("disabled", false);
|
|
||||||
|
|
||||||
// Disable values selected in OTHER selects (keep current selection enabled)
|
|
||||||
selectedValues.forEach(function (v) {
|
|
||||||
if (v && v !== currentVal) {
|
|
||||||
currentSelect
|
|
||||||
.find("option[value=\"" + v.replace(/"/g, '\\"') + "\"]")
|
|
||||||
.prop("disabled", true);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
// Refresh select2 UI if present
|
|
||||||
if (currentSelect.data("select2")) {
|
|
||||||
currentSelect.trigger("change.select2");
|
|
||||||
}
|
|
||||||
});
|
|
||||||
} */
|
|
||||||
|
|
||||||
|
|
||||||
/* function enforceUniqueDoctorSelections() {
|
|
||||||
var selectedValues = [];
|
|
||||||
|
|
||||||
// Collect selected values from select dropdowns only
|
|
||||||
$("select[id^='field-contact_id']").each(function () {
|
|
||||||
var v = $(this).val();
|
|
||||||
if (v) selectedValues.push(String(v));
|
|
||||||
});
|
|
||||||
|
|
||||||
// Reset all option disabled states, then disable duplicates across selects
|
|
||||||
$("select[id^='field-contact_id']").each(function () {
|
|
||||||
var currentSelect = $(this);
|
|
||||||
var currentVal = currentSelect.val() ? String(currentSelect.val()) : "";
|
|
||||||
|
|
||||||
currentSelect.find("option").prop("disabled", false);
|
|
||||||
|
|
||||||
selectedValues.forEach(function (v) {
|
|
||||||
if (v && v !== currentVal) {
|
|
||||||
currentSelect
|
|
||||||
.find("option[value=\"" + v.replace(/"/g, '\\"') + "\"]")
|
|
||||||
.prop("disabled", true);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
if (currentSelect.data("select2")) {
|
|
||||||
currentSelect.trigger("change.select2");
|
|
||||||
}
|
|
||||||
});
|
|
||||||
} */
|
|
||||||
|
|
||||||
|
|
||||||
function enforceUniqueDoctorSelections() {
|
function enforceUniqueDoctorSelections() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue