modified assests
This commit is contained in:
@@ -110,7 +110,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Modal Laboratory -->
|
||||
<!-- Modal Organization -->
|
||||
<div class="modal fade modal-primary" id="modal-comment">
|
||||
<div class="modal-dialog modal-lg">
|
||||
<div class="modal-content">
|
||||
@@ -133,7 +133,7 @@
|
||||
{{__('department.form_select_all_lab')}}
|
||||
</label>
|
||||
</div>
|
||||
<select class="form-control select2-multiple" multiple name="lab_ids" id="lab-ids" style="width: 100% !important;">
|
||||
<select class="form-control select2-multiple" multiple name="organization_ids" id="lab-ids" style="width: 100% !important;">
|
||||
@foreach($labs as $lab)
|
||||
<option value="{{$lab->id}}">{{$lab->name_en}}</option>
|
||||
@endforeach
|
||||
@@ -207,7 +207,7 @@
|
||||
start_date: $('#start-date').val(),
|
||||
end_date: $('#end-date').val(),
|
||||
description: $('#description').val(),
|
||||
lab_ids: $('#lab-ids').val()
|
||||
organization_ids: $('#lab-ids').val()
|
||||
},
|
||||
success:function(res){
|
||||
handleMessage(res.success, res.message.replace('Comment', 'Message'))
|
||||
@@ -298,7 +298,7 @@
|
||||
modal.find('.modal-body input[name="start_date"]').val(data.start_date);
|
||||
modal.find('.modal-body input[name="end_date"]').val(data.end_date);
|
||||
$('#description').val(data.description)
|
||||
modal.find('.modal-body #lab-ids').val(_.pluck(data.receivers, 'lab_id')).change();
|
||||
modal.find('.modal-body #lab-ids').val(_.pluck(data.receivers, 'organization_id')).change();
|
||||
|
||||
if(!res.success) handleMessage(res.success, res.message.replace('Comment', 'Message'))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user