event.modal.php 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273
  1. <div id="planning-event-panel" class="planning-event-panel fold hidden">
  2. <div id="planning-event-form" data-planning="">
  3. <div class="planning-event-panel-head">
  4. <i onclick="$('.planning-event-panel').addClass('fold');" class="fas fa-times pointer right"></i>
  5. <div class="planning-agenda-block">
  6. <span>Agenda</span>
  7. <select id="event-planning"></select>
  8. </div>
  9. <h1>Édition événement</h1>
  10. </div>
  11. <div class="planning-event-panel-body">
  12. <div class="row mb-2">
  13. <div class="col-md-12">
  14. <div class="input-group input-group-sm">
  15. <div class="input-group-prepend">
  16. <span class="input-group-text">Type</span>
  17. </div>
  18. <div class="input-group-append">
  19. <select data-type="dropdown-select" id="planning-event-type" onchange="planning_set_type()">
  20. <?php foreach(PlanningEventType::getAll(array('parent'=>0,'state'=>PlanningEventType::ACTIVE),array('sort')) as $type): ?>
  21. <option style="background-color:<?php echo $type->color; ?>" data-icon="<?php echo $type->icon; ?>" value="<?php echo $type->id; ?>" ><?php echo $type->label; ?></option>
  22. <?php endforeach; ?>
  23. </select>
  24. </div>
  25. <div class="input-group-prepend planning-subtype">
  26. <span class="input-group-text">Sous Type</span>
  27. </div>
  28. <div class="input-group-append planning-subtype">
  29. <select data-type="dropdown-select" id="planning-event-subtype"></select>
  30. </div>
  31. </div>
  32. </div>
  33. </div>
  34. <div class="row mb-2">
  35. <div class="input-group input-group-sm col-md-12">
  36. <div class="input-group-prepend">
  37. <span class="input-group-text">Libellé</span>
  38. </div>
  39. <input type="text" id="label" autocomplete="new-password" class="form-control">
  40. </div>
  41. </div>
  42. <!-- start / end -->
  43. <div class="row mb-2">
  44. <div class="col-md-6 startTime">
  45. <input type="text" id="startDate" class="form-control form-control-sm col-sm-6 d-inline-block " onchange="planning_checkstart_end()" data-type="date" value="" maxlength="10" placeholder="jj/mm/aaaa" pattern="[0-9/]{10}">
  46. <input type="text" id="startTime" data-step="15" data-type="hour" onchange="planning_checkstart_end()" class="form-control form-control-sm col-sm-5 d-inline-block" value="13">
  47. </div>
  48. <div class="col-md-6">
  49. <input type="text" id="endDate" class="form-control form-control-sm col-sm-6 d-inline-block col-sm-5 d-inline-block" onchange="planning_checkstart_end()" data-type="date" maxlength="10" placeholder="jj/mm/aaaa" pattern="[0-9/]{10}" title="Format jj/mm/aaaa">
  50. <input type="text" id="endTime" data-step="15" onchange="planning_checkstart_end()" data-type="hour" class="form-control form-control-sm col-sm-5 d-inline-block" value="18">
  51. </div>
  52. </div>
  53. <!-- notifications -->
  54. <div class="row mt-2">
  55. <div class="input-group input-group-sm col-md-12">
  56. <div class="input-group-prepend">
  57. <span class="input-group-text"><i class="far fa-bell mr-1"></i> Rappel</span>
  58. </div>
  59. <input type="number" id="notificationNumber" class="form-control">
  60. <select type="text" id="notificationUnity" class="form-control">
  61. <option value="minut">Minute</option>
  62. <option value="hour">Heure</option>
  63. <option value="day">Jour</option>
  64. </select>
  65. <div class="input-group-prepend">
  66. <span class="input-group-text"> Avant l'évenènement.</span>
  67. </div>
  68. </div>
  69. </div>
  70. <div class="row mt-2">
  71. <div class="col-md-12">
  72. <textarea id="description" placeholder="Commentaire..." class="form-control w-100"></textarea>
  73. </div>
  74. </div>
  75. <div id="event-advanced" class="row hidden mt-2">
  76. <div class="col-md-12">
  77. <div class="row">
  78. <div class="input-group input-group-sm col-md-12">
  79. <div class="input-group-prepend">
  80. <span class="input-group-text">Lieu</span>
  81. </div>
  82. <div class="input-group-prepend">
  83. <input type="text" data-type="location" id="street" placeholder="Rue" class="form-control">
  84. </div>
  85. <input type="text" id="zip" placeholder="Code postal" class="form-control">
  86. <input type="text" id="city" placeholder="Ville" class="form-control">
  87. </div>
  88. </div>
  89. <div class="row mt-2 teammate-row">
  90. <div class="input-group input-group-sm col-md-12">
  91. <div class="input-group-prepend">
  92. <span class="input-group-text">Équipiers</span>
  93. </div>
  94. <input type="text" data-type="user" data-multiple id="user" class="form-control">
  95. </div>
  96. </div>
  97. <div class="row mt-2 resources-row">
  98. <div class="input-group input-group-sm col-md-12 ">
  99. <ul class="event-resources w-100 d-block">
  100. <li class="hidden mb-1">
  101. <div class="input-group input-group-sm">
  102. <div class="input-group-prepend" style="position: relative;">
  103. <div class="btn resource-state" title="Veuillez sélectionner une ressource" data-tooltip>
  104. <i class="far fa-question-circle text-muted"></i>
  105. </div>
  106. </div>
  107. <select class="form-control select-control" data-id="resource" type="text" data-type="dictionary" data-slug="planning_event_resource" data-depth="1" key=data-disable-label data-value="" class="resource"></select>
  108. <div class="input-group-append">
  109. <div class="btn text-muted"><i onclick="$(this).closest('li').remove()" class="fas fa-times"></i></div>
  110. </div>
  111. </div>
  112. </li>
  113. </ul>
  114. <div class="btn text-muted pl-0" onclick="planning_event_resource_add()"><i class="fas fa-video mr-2"></i> <span class="font-weight-bold">Ajouter une ressource</span></div>
  115. </div>
  116. </div>
  117. <!-- récurrence a terminer coté fullcalendar / dav et a decommenter-->
  118. <div class="row mt-2">
  119. <div class="col-md-12">
  120. <div class="input-group input-group-sm">
  121. <div class="input-group-prepend">
  122. <span class="input-group-text"><i class="fas fa-redo-alt mr-1"></i> Répéter l'évenement </span>
  123. </div>
  124. <select type="text" onchange="planning_event_repeat_change();" id="event-repeat-type" class="form-control">
  125. <option value="never" selected="selected">Jamais</option>
  126. <option value="daily">Quotidiennement</option>
  127. <option value="weekly">Hebdomadairement</option>
  128. <option value="monthly">Mensuelement</option>
  129. <option value="yearly">Annuellement</option>
  130. </select>
  131. </div>
  132. </div>
  133. </div>
  134. <div id="event-repeat-options" class="hidden">
  135. <div class="row mt-2 hidden justify-content-md-center" data-type-form="daily">
  136. <div class="col-md-3 form-inline">
  137. <label><input type="radio" data-value="allDays" checked="checked" name="dailyRepeatFrequency" onclick="$('#event-repeat-daily-number').val('')" class="mr-1"> Tous les jours</label>
  138. </div>
  139. <div class="col-md-2 text-muted pt-2 font-weight-bold text-uppercase">Ou</div>
  140. <div class="col-md-4 input-group">
  141. <div class="input-group-prepend">
  142. <span class="input-group-text"><label class="m-0"><input name="dailyRepeatFrequency" onclick="$('#event-repeat-daily-number').focus()" data-value="selectDays" type="radio"> Tous les </label></span>
  143. </div>
  144. <input type="text" onclick="$('input[data-value=\'selectDays\']').click()" id="event-repeat-daily-number" class="form-control">
  145. <div class="input-group-append">
  146. <span class="input-group-text"> Jours </span>
  147. </div>
  148. </div>
  149. </div>
  150. <div class="row mt-2 hidden justify-content-md-center" data-type-form="weekly">
  151. <div class="col-md-12 form-inline">
  152. <label>Jour de la semaine</label>
  153. <label class="m-1"><input data-type="checkbox" type="checkbox" data-value="1" checked="checked"> Lundi </label>
  154. <label class="m-1"><input data-type="checkbox" type="checkbox" data-value="2" checked="checked"> Mardi </label>
  155. <label class="m-1"><input data-type="checkbox" type="checkbox" data-value="3" checked="checked"> Mercredi </label>
  156. <label class="m-1"><input data-type="checkbox" type="checkbox" data-value="4" checked="checked"> Jeudi </label>
  157. <label class="m-1"><input data-type="checkbox" type="checkbox" data-value="5" checked="checked"> Vendredi </label>
  158. <label class="m-1"><input data-type="checkbox" type="checkbox" data-value="6"> Samedi </label>
  159. <label class="m-1"><input data-type="checkbox" type="checkbox" data-value="7"> Dimanche </label>
  160. </div>
  161. </div>
  162. <div class="row mt-2 hidden justify-content-md-center" data-type-form="monthly">
  163. <div class="col-md-6 input-group input-group-sm">
  164. <div class="input-group-prepend">
  165. <span class="input-group-text">Le</span>
  166. </div>
  167. <input type="number" id="event-repeat-monthly-number" placeholder="1,2,3,4..." class="form-control">
  168. <select class="form-control" id="event-repeat-monthly-day">
  169. <option value="1">Lundi</option>
  170. <option value="2">Mardi</option>
  171. <option value="3">Mercredi</option>
  172. <option value="4">Jeudi</option>
  173. <option value="5">Vendredi</option>
  174. <option value="6">Samedi</option>
  175. <option value="7">Dimanche</option>
  176. </select>
  177. <div class="input-group-append">
  178. <span class="input-group-text">du mois</span>
  179. </div>
  180. </div>
  181. </div>
  182. <div class="row mt-2 hidden justify-content-md-center" data-type-form="yearly">
  183. <div class="col-md-6 input-group input-group-sm">
  184. <div class="input-group-prepend">
  185. <span class="input-group-text">Le</span>
  186. </div>
  187. <input type="number" placeholder="1,2,3,4..." id="event-repeat-yearly-number" class="form-control">
  188. <select class="form-control" id="event-repeat-yearly-month">
  189. <option value="1">Janvier</option>
  190. <option value="2">Février</option>
  191. <option value="3">Mars</option>
  192. <option value="4">Avril</option>
  193. <option value="5">Mai</option>
  194. <option value="6">Juin</option>
  195. <option value="7">Juillet</option>
  196. <option value="8">Aout</option>
  197. <option value="9">Septembre</option>
  198. <option value="10">Octobre</option>
  199. <option value="11">Novembre</option>
  200. <option value="12">Décembre</option>
  201. </select>
  202. </div>
  203. </div>
  204. <div class="row mt-2">
  205. <div class="col-md-4 input-group input-group-sm">
  206. <span class="input-group-text w-100"><label class="m-0 w-100"><input data-value="allTime" checked="checked" name="repeatEndType" onclick="$('#event-repeat-until,#event-repeat-occurences').val('')" type="radio"> Tout le temps </label></span>
  207. </div>
  208. <div class="col-md-4 input-group input-group-sm">
  209. <div class="input-group-prepend">
  210. <span class="input-group-text"> <label class="m-0"><input data-value="until" name="repeatEndType" type="radio" onclick="$('#event-repeat-occurences').val('')"> Jusqu'au </label></span>
  211. <input type="text" onclick="$('input[data-value=\'until\']').click()" id="event-repeat-until" data-type="date" class="form-control">
  212. </div>
  213. </div>
  214. <div class="col-md-4 input-group input-group-sm">
  215. <div class="input-group-prepend">
  216. <span class="input-group-text"> <label class="m-0"><input data-value="occurences" name="repeatEndType" onclick="$('#event-repeat-until').val('')" type="radio"> Répéter </label></span>
  217. <input type="number" onclick="$('input[data-value=\'occurences\']').click()" id="event-repeat-occurences" class="form-control">
  218. <span class="input-group-text"> fois </span>
  219. </div>
  220. </div>
  221. </div>
  222. </div>
  223. </div>
  224. </div>
  225. </div>
  226. <div class="planning-event-panel-footer">
  227. <div onclick="$('#event-advanced').toggleClass('hidden')" class="btn btn-light text-muted font-weight-bold btn-small">Autres options</div>
  228. <div class="btn btn-primary btn-save btn-save-event btn-small" onclick="planning_event_save()"><i class="fa fa-check"></i> Enregistrer</div>
  229. </div>
  230. </div>
  231. </div>