setting.list.employee.employee.work.time.php 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <?php
  2. global $myUser;
  3. User::check_access('employee','configure');
  4. require_once(__DIR__.SLASH.'EmployeeWorkTime.class.php');
  5. ?>
  6. <br>
  7. <h3>Réglages Fiche employé</h3>
  8. <hr/>
  9. <div class="row">
  10. <div class="col-md-4">
  11. <?php if($myUser->can('employee', 'edit')) : ?>
  12. <a href="index.php?module=employee&page=sheet.employee.work.time" class="btn btn-success right"><i class="fas fa-plus"></i> Ajouter</a>
  13. <?php endif; ?>
  14. </div>
  15. </div>
  16. <br/>
  17. <div class="row">
  18. <!-- search results -->
  19. <div class="col-xl-12">
  20. <table id="employee-work-times" class="table table-striped " data-entity-search="employee_employee_work_time_search">
  21. <thead>
  22. <tr>
  23. <th>#</th>
  24. <th data-sortable="label">Libellé</th>
  25. <th data-sortable="hourByWeek">Heures par semaine</th>
  26. <th data-sortable="dayByYear">Jours par an</th>
  27. <th data-sortable="recovertype">Récuperation</th>
  28. <th></th>
  29. </tr>
  30. </thead>
  31. <thead>
  32. <tr id="employee-work-time-form" data-action="employee_employee_work_time_save" data-id="">
  33. <th>#</th>
  34. <th><input value="<?php echo $employeeworktime->label; ?>" class="form-control" type="text" id="label" ></th>
  35. <th><input value="<?php echo $employeeworktime->hourByWeek; ?>" class="form-control" type="text" data-type="decimal" id="hourByWeek" ></th>
  36. <th><input value="<?php echo $employeeworktime->dayByYear; ?>" class="form-control" type="text" data-type="decimal" id="dayByYear" ></th>
  37. <th><select class="form-control select-control" type="text" id="recovertype" ><option value="recovertype-1">Récuperation</option></select></th>
  38. <th><div onclick="employee_employee_work_time_save();" class="btn btn-success"><i class="fas fa-check"></i> Enregistrer</div></th>
  39. </tr>
  40. </thead>
  41. <tbody>
  42. <tr data-id="{{id}}" class="hidden">
  43. <td></td>s
  44. <td>{{label}}</td>s
  45. <td>{{hourByWeek}}</td>s
  46. <td>{{dayByYear}}</td>s
  47. <td>{{recovertype}}</td>
  48. <td class="text-right">
  49. <div class="btn-group btn-group-sm" role="group">
  50. <div class="btn btn-info " onclick="employee_employee_work_time_edit(this);"><i class="fas fa-pencil-alt"></i></div>
  51. <div class="btn btn-danger " onclick="employee_employee_work_time_delete(this);"><i class="far fa-trash-alt"></i></div>
  52. </div>
  53. </td>
  54. </tr>
  55. </tbody>
  56. </table>
  57. </div>
  58. </div>