Browse Source

Task #860q0ukhh change to add multiple

pull/1/head
Wahyu Ramadhan 2 years ago
parent
commit
60bd9cc5b0
  1. 2
      edit-mode/function/humanResource.js
  2. 2
      edit-mode/index.html

2
edit-mode/function/humanResource.js

@ -176,7 +176,7 @@ $(document).ready(function () {
} }
$.ajax({ $.ajax({
data: JSON.stringify(payload), data: JSON.stringify(payload),
url: `${base_url}user-to-activity/add`, url: `${base_url}user-to-activity/add-multiple`,
type: "POST", type: "POST",
processData: false, processData: false,
contentType: false, contentType: false,

2
edit-mode/index.html

@ -128,7 +128,7 @@
<div class="form-row"> <div class="form-row">
<div class="col-md-10 form-group"> <div class="col-md-10 form-group">
<label>Human Resource</label> <label>Human Resource</label>
<select id="select-hr" name="user_id" class="form-control form-control-sm" style="width:100%;"></select> <select id="select-hr" name="user_id[]" multiple="multiple" class="form-control form-control-sm" style="width:100%;"></select>
</div> </div>
<div class="col-md-2 form-group"> <div class="col-md-2 form-group">
<button style="margin-top: 31px;" id="btn-assign-hr" type="submit" <button style="margin-top: 31px;" id="btn-assign-hr" type="submit"

Loading…
Cancel
Save