setting.global.employee.php 4.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <?php
  2. global $myUser,$conf;
  3. User::check_access('employee','configure');
  4. require_once(__DIR__.SLASH.'EmployeeWorkTime.class.php');
  5. ?>
  6. <div class="row">
  7. <div class="col-xl-12"><br>
  8. <h3 class="mb-0"><i class="fas fa-user-tie"></i> Réglages Fiche employé <div onclick="employee_setting_save();" class="btn btn-sm btn-success float-right"><i class="fas fa-check"></i> Enregistrer</div></h3>
  9. <div class="clear"></div>
  10. <hr>
  11. </div>
  12. <div class="col-xl-12">
  13. <?php echo Configuration::html('employee'); ?>
  14. <h4>Type de poste</h4>
  15. <div data-type="dictionnary-table" data-dictionnary="employee_employee_job"></div>
  16. <h4>Status</h4>
  17. <div data-type="dictionnary-table" data-dictionnary="employee_employee_statute"></div>
  18. <h4>Types de contrats</h4>
  19. <div data-type="dictionnary-table" data-dictionnary="employee_employee_contractType"></div>
  20. <h4>Temps de travail</h4>
  21. <div data-type="dictionnary-table" data-dictionnary="employee_employee_workTime"></div>
  22. <h4>Matériel alloué</h4>
  23. <div data-type="dictionnary-table" data-dictionnary="employee_employee_hardware"></div>
  24. <h4>Temps de travail</h4>
  25. <table id="employee-work-times" class="table table-striped " data-entity-search="employee_employee_work_time_search">
  26. <thead>
  27. <tr>
  28. <th>#</th>
  29. <th data-sortable="label">Libellé</th>
  30. <th data-sortable="hourByWeek">Heures par semaine</th>
  31. <th data-sortable="dayByYear">Jours par an</th>
  32. <th data-sortable="recovertype">Récuperation</th>
  33. <th data-sortable="hourByWeek">Heures par jour <small class="text-muted">[Heures lundi, Heures mardi ...]</small></th>
  34. <th></th>
  35. </tr>
  36. </thead>
  37. <thead>
  38. <tr id="employee-work-time-form" data-action="employee_employee_work_time_save" data-id="">
  39. <th>#</th>
  40. <th><input value="" class="form-control" type="text" id="label" ></th>
  41. <th><input value="" class="form-control" type="text" data-type="decimal" id="hourByWeek" ></th>
  42. <th><input value="" class="form-control" type="text" data-type="decimal" id="dayByYear" ></th>
  43. <th>
  44. <select class="form-control select-control" type="text" id="recovertype" >
  45. <?php foreach(EmployeeWorkTime::recovertypes() as $slug=>$recovertype): ?>
  46. <option value="<?php echo $slug; ?>"><?php echo $recovertype['label']; ?></option>
  47. <?php endforeach ?>
  48. </select>
  49. </th>
  50. <th><textarea class="form-control" type="text" id="hourByDay"></textarea></th>
  51. <th><div onclick="employee_employee_work_time_save();" class="btn btn-success"><i class="fas fa-check"></i> Enregistrer</div></th>
  52. </tr>
  53. </thead>
  54. <tbody>
  55. <tr data-id="{{id}}" class="hidden item-line">
  56. <td></td>
  57. <td>{{label}}</td>
  58. <td>{{hourByWeek}}</td>
  59. <td>{{dayByYear}}</td>
  60. <td>{{recovertype.label}}</td>
  61. <td><ul>{{#hourByDay}}<li>{{day}} : <strong>{{hours}} H</strong></li>{{/hourByDay}}</ul></td>
  62. <td class="text-right">
  63. <div class="btn-group btn-group-sm" role="group">
  64. <div class="btn btn-info " onclick="employee_employee_work_time_edit(this);"><i class="fas fa-pencil-alt"></i></div>
  65. <div class="btn btn-danger " onclick="employee_employee_work_time_delete(this);"><i class="far fa-trash-alt"></i></div>
  66. </div>
  67. </td>
  68. </tr>
  69. </tbody>
  70. </table>
  71. </div>
  72. </div>