Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 
 
 

827 rindas
56 KiB

  1. <h4>
  2. <a href="javascript:history.back()"><i class="fas fa-chevron-left"></i></a>&nbsp;<%= _lc( 'CREATE_APPOINTMENT' ) %>
  3. <%=raw app.core.View.getTemplate( 'gui-header-help-button' ) %>
  4. </h4>
  5. <% var mNow = moment().add( '1', 'days' ); mNow.minute( 0 ).second( 0 ); %>
  6. <% var mReject = mNow.clone(); mReject.subtract( '1', 'days' ); %>
  7. <div class="row">
  8. <div class="col-sm-12">
  9. <div class="card">
  10. <div class="card-body">
  11. <div class="row">
  12. <div class="col">
  13. </div>
  14. </div>
  15. <form data-id="form-appointment"
  16. class="needs-validation"
  17. novalidate>
  18. <div class="form-group">
  19. <div class="form-row">
  20. <div class="col">
  21. <label for="select-team-id">
  22. <%= _lc( 'APPOINTMENT_FOR_TEAM' ) %>
  23. </label>
  24. <select class="form-control"
  25. name="team-id"
  26. data-id="select-team-id"
  27. id="select-team-id">
  28. <% for ( var gi = 0; gi < groups.length; gi++ ) { %>
  29. <option value="<%= groups[ gi ].getId() %>"><%= groups[ gi ].getName() %></option>
  30. <% } %>
  31. </select>
  32. <div class="invalid-feedback">
  33. <%= _lc( 'VALIDATION_APPOINTMENT_MIN_ATTENDEE' ) %>
  34. </div>
  35. </div>
  36. </div>
  37. </div>
  38. <div class="form-group">
  39. <div class="form-row">
  40. <div class="col">
  41. <label>
  42. <%= _lc( 'APPOINTMENT_ICON' ) %>
  43. </label>
  44. <div class="radio-icons" id="radio-icons">
  45. <p class="d-flex justify-content-between align-items-center">
  46. <span>
  47. <span class="selected-icon">Ohne</span>
  48. </span>
  49. <i class="fas fa-chevron-down"></i>
  50. </p>
  51. <div class="radio-icons-inner">
  52. <label for="input-subject-icon">
  53. <input type="radio" value="" name="categoryicon" id="input-subject-icon" checked />
  54. Ohne
  55. </label>
  56. <label for="input-subject-icon-wrench">
  57. <input type="radio" value="fa-wrench" name="categoryicon" id="input-subject-icon-wrench" />
  58. <i class="fas fa-wrench"></i>
  59. </label>
  60. <label for="input-subject-icon-weight">
  61. <input type="radio" value="fa-weight" name="categoryicon" id="input-subject-icon-weight" />
  62. <i class="fas fa-weight"></i>
  63. </label>
  64. <label for="input-subject-icon-walking">
  65. <input type="radio" value="fa-walking" name="categoryicon" id="input-subject-icon-walking" />
  66. <i class="fas fa-walking"></i>
  67. </label>
  68. <label for="input-subject-icon-volume-up">
  69. <input type="radio" value="fa-volume-up" name="categoryicon" id="input-subject-icon-volume-up" />
  70. <i class="fas fa-volume-up"></i>
  71. </label>
  72. <label for="input-subject-icon-video">
  73. <input type="radio" value="fa-video" name="categoryicon" id="input-subject-icon-video" />
  74. <i class="fas fa-video"></i>
  75. </label>
  76. <label for="input-subject-icon-utensils">
  77. <input type="radio" value="fa-utensils" name="categoryicon" id="input-subject-icon-utensils" />
  78. <i class="fas fa-utensils"></i>
  79. </label>
  80. <label for="input-subject-icon-user-friends">
  81. <input type="radio" value="fa-user-friends" name="categoryicon" id="input-subject-icon-user-friends" />
  82. <i class="fas fa-user-friends"></i>
  83. </label>
  84. <label for="input-subject-icon-umbrella-beach">
  85. <input type="radio" value="fa-umbrella-beach" name="categoryicon" id="input-subject-icon-umbrella-beach" />
  86. <i class="fas fa-umbrella-beach"></i>
  87. </label>
  88. <label for="input-subject-icon-trophy">
  89. <input type="radio" value="fa-trophy" name="categoryicon" id="input-subject-icon-trophy" />
  90. <i class="fas fa-trophy"></i>
  91. </label>
  92. <label for="input-subject-icon-tree">
  93. <input type="radio" value="fa-tree" name="categoryicon" id="input-subject-icon-tree" />
  94. <i class="fas fa-tree"></i>
  95. </label>
  96. <label for="input-subject-icon-toolbox">
  97. <input type="radio" value="fa-toolbox" name="categoryicon" id="input-subject-icon-toolbox" />
  98. <i class="fas fa-toolbox"></i>
  99. </label>
  100. <label for="input-subject-icon-thumbtack">
  101. <input type="radio" value="fa-thumbtack" name="categoryicon" id="input-subject-icon-thumbtack" />
  102. <i class="fas fa-thumbtack"></i>
  103. </label>
  104. <label for="input-subject-icon-tags">
  105. <input type="radio" value="fa-tags" name="categoryicon" id="input-subject-icon-tags" />
  106. <i class="fas fa-tags"></i>
  107. </label>
  108. <label for="input-subject-icon-tachometer-alt">
  109. <input type="radio" value="fa-tachometer-alt" name="categoryicon" id="input-subject-icon-tachometer-alt" />
  110. <i class="fas fa-tachometer-alt"></i>
  111. </label>
  112. <label for="input-subject-icon-swimmer">
  113. <input type="radio" value="fa-swimmer" name="categoryicon" id="input-subject-icon-swimmer" />
  114. <i class="fas fa-swimmer"></i>
  115. </label>
  116. <label for="input-subject-icon-surprise">
  117. <input type="radio" value="fa-surprise" name="categoryicon" id="input-subject-icon-surprise" />
  118. <i class="fas fa-surprise"></i>
  119. </label>
  120. <label for="input-subject-icon-street-view">
  121. <input type="radio" value="fa-street-view" name="categoryicon" id="input-subject-icon-street-view" />
  122. <i class="fas fa-street-view"></i>
  123. </label>
  124. <label for="input-subject-icon-stopwatch">
  125. <input type="radio" value="fa-stopwatch" name="categoryicon" id="input-subject-icon-stopwatch" />
  126. <i class="fas fa-stopwatch"></i>
  127. </label>
  128. <label for="input-subject-icon-star">
  129. <input type="radio" value="fa-star" name="categoryicon" id="input-subject-icon-star" />
  130. <i class="fas fa-star"></i>
  131. </label>
  132. <label for="input-subject-icon-smile-wink">
  133. <input type="radio" value="fa-smile-wink" name="categoryicon" id="input-subject-icon-smile-wink" />
  134. <i class="fas fa-smile-wink"></i>
  135. </label>
  136. <label for="input-subject-icon-shuttle-van">
  137. <input type="radio" value="fa-shuttle-van" name="categoryicon" id="input-subject-icon-shuttle-van" />
  138. <i class="fas fa-shuttle-van"></i>
  139. </label>
  140. <label for="input-subject-icon-shopping-cart">
  141. <input type="radio" value="fa-shopping-cart" name="categoryicon" id="input-subject-icon-shopping-cart" />
  142. <i class="fas fa-shopping-cart"></i>
  143. </label>
  144. <label for="input-subject-icon-running">
  145. <input type="radio" value="fa-running" name="categoryicon" id="input-subject-icon-running" />
  146. <i class="fas fa-running"></i>
  147. </label>
  148. <label for="input-subject-icon-rocket">
  149. <input type="radio" value="fa-rocket" name="categoryicon" id="input-subject-icon-rocket" />
  150. <i class="fas fa-rocket"></i>
  151. </label>
  152. <label for="input-subject-icon-recycle">
  153. <input type="radio" value="fa-recycle" name="categoryicon" id="input-subject-icon-recycle" />
  154. <i class="fas fa-recycle"></i>
  155. </label>
  156. <label for="input-subject-icon-question-circle">
  157. <input type="radio" value="fa-question-circle" name="categoryicon" id="input-subject-icon-question-circle" />
  158. <i class="fas fa-question-circle"></i>
  159. </label>
  160. <label for="input-subject-icon-puzzle-piece">
  161. <input type="radio" value="fa-puzzle-piece" name="categoryicon" id="input-subject-icon-puzzle-piece" />
  162. <i class="fas fa-puzzle-piece"></i>
  163. </label>
  164. <label for="input-subject-icon-poll">
  165. <input type="radio" value="fa-poll" name="categoryicon" id="input-subject-icon-poll" />
  166. <i class="fas fa-poll"></i>
  167. </label>
  168. <label for="input-subject-icon-plus-circle">
  169. <input type="radio" value="fa-plus-circle" name="categoryicon" id="input-subject-icon-plus-circle" />
  170. <i class="fas fa-plus-circle"></i>
  171. </label>
  172. <label for="input-subject-icon-play-circle">
  173. <input type="radio" value="fa-play-circle" name="categoryicon" id="input-subject-icon-play-circle" />
  174. <i class="fas fa-play-circle"></i>
  175. </label>
  176. <label for="input-subject-icon-phone-square">
  177. <input type="radio" value="fa-phone-square" name="categoryicon" id="input-subject-icon-phone-square" />
  178. <i class="fas fa-phone-square"></i>
  179. </label>
  180. <label for="input-subject-icon-pepper-hot">
  181. <input type="radio" value="fa-pepper-hot" name="categoryicon" id="input-subject-icon-pepper-hot" />
  182. <i class="fas fa-pepper-hot"></i>
  183. </label>
  184. <label for="input-subject-icon-paw">
  185. <input type="radio" value="fa-paw" name="categoryicon" id="input-subject-icon-paw" />
  186. <i class="fas fa-paw"></i>
  187. </label>
  188. <label for="input-subject-icon-paper-plane">
  189. <input type="radio" value="fa-paper-plane" name="categoryicon" id="input-subject-icon-paper-plane" />
  190. <i class="fas fa-paper-plane"></i>
  191. </label>
  192. <label for="input-subject-icon-motorcycle">
  193. <input type="radio" value="fa-motorcycle" name="categoryicon" id="input-subject-icon-motorcycle" />
  194. <i class="fas fa-motorcycle"></i>
  195. </label>
  196. <label for="input-subject-icon-mobile">
  197. <input type="radio" value="fa-mobile" name="categoryicon" id="input-subject-icon-mobile" />
  198. <i class="fas fa-mobile"></i>
  199. </label>
  200. <label for="input-subject-icon-medal">
  201. <input type="radio" value="fa-medal" name="categoryicon" id="input-subject-icon-medal" />
  202. <i class="fas fa-medal"></i>
  203. </label>
  204. <label for="input-subject-icon-map-signs">
  205. <input type="radio" value="fa-map-signs" name="categoryicon" id="input-subject-icon-map-signs" />
  206. <i class="fas fa-map-signs"></i>
  207. </label>
  208. <label for="input-subject-icon-map-marked">
  209. <input type="radio" value="fa-map-marked" name="categoryicon" id="input-subject-icon-map-marked" />
  210. <i class="fas fa-map-marked"></i>
  211. </label>
  212. <label for="input-subject-icon-male">
  213. <input type="radio" value="fa-male" name="categoryicon" id="input-subject-icon-male" />
  214. <i class="fas fa-male"></i>
  215. </label>
  216. <label for="input-subject-icon-female">
  217. <input type="radio" value="fa-female" name="categoryicon" id="input-subject-icon-female" />
  218. <i class="fas fa-female"></i>
  219. </label>
  220. <label for="input-subject-icon-magic">
  221. <input type="radio" value="fa-magic" name="categoryicon" id="input-subject-icon-magic" />
  222. <i class="fas fa-magic"></i>
  223. </label>
  224. <label for="input-subject-icon-lock">
  225. <input type="radio" value="fa-lock" name="categoryicon" id="input-subject-icon-lock" />
  226. <i class="fas fa-lock"></i>
  227. </label>
  228. <label for="input-subject-icon-lock-open">
  229. <input type="radio" value="fa-lock-open" name="categoryicon" id="input-subject-icon-lock-open" />
  230. <i class="fas fa-lock-open"></i>
  231. </label>
  232. <label for="input-subject-icon-laugh">
  233. <input type="radio" value="fa-laugh" name="categoryicon" id="input-subject-icon-laugh" />
  234. <i class="fas fa-laugh"></i>
  235. </label>
  236. <label for="input-subject-icon-layer-group">
  237. <input type="radio" value="fa-layer-group" name="categoryicon" id="input-subject-icon-layer-group" />
  238. <i class="fas fa-layer-group"></i>
  239. </label>
  240. <label for="input-subject-icon-key">
  241. <input type="radio" value="fa-key" name="categoryicon" id="input-subject-icon-key" />
  242. <i class="fas fa-key"></i>
  243. </label>
  244. <label for="input-subject-icon-info-circle">
  245. <input type="radio" value="fa-info-circle" name="categoryicon" id="input-subject-icon-info-circle" />
  246. <i class="fas fa-info-circle"></i>
  247. </label>
  248. <label for="input-subject-icon-horse">
  249. <input type="radio" value="fa-horse" name="categoryicon" id="input-subject-icon-horse" />
  250. <i class="fas fa-horse"></i>
  251. </label>
  252. <label for="input-subject-icon-home">
  253. <input type="radio" value="fa-home" name="categoryicon" id="input-subject-icon-home" />
  254. <i class="fas fa-home"></i>
  255. </label>
  256. <label for="input-subject-icon-hiking">
  257. <input type="radio" value="fa-hiking" name="categoryicon" id="input-subject-icon-hiking" />
  258. <i class="fas fa-hiking"></i>
  259. </label>
  260. <label for="input-subject-icon-heart">
  261. <input type="radio" value="fa-heart" name="categoryicon" id="input-subject-icon-heart" />
  262. <i class="fas fa-heart"></i>
  263. </label>
  264. <label for="input-subject-icon-helicopter">
  265. <input type="radio" value="fa-helicopter" name="categoryicon" id="input-subject-icon-helicopter" />
  266. <i class="fas fa-helicopter"></i>
  267. </label>
  268. <label for="input-subject-icon-handshake">
  269. <input type="radio" value="fa-handshake" name="categoryicon" id="input-subject-icon-handshake" />
  270. <i class="fas fa-handshake"></i>
  271. </label>
  272. <label for="input-subject-icon-hand-holding-usd">
  273. <input type="radio" value="fa-hand-holding-usd" name="categoryicon" id="input-subject-icon-hand-holding-usd" />
  274. <i class="fas fa-hand-holding-usd"></i>
  275. </label>
  276. <label for="input-subject-icon-hand-holding-medical">
  277. <input type="radio" value="fa-hand-holding-medical" name="categoryicon" id="input-subject-icon-hand-holding-medical" />
  278. <i class="fas fa-hand-holding-medical"></i>
  279. </label>
  280. <label for="input-subject-icon-hand-holding-heart">
  281. <input type="radio" value="fa-hand-holding-heart" name="categoryicon" id="input-subject-icon-hand-holding-heart" />
  282. <i class="fas fa-hand-holding-heart"></i>
  283. </label>
  284. <label for="input-subject-icon-hammer">
  285. <input type="radio" value="fa-hammer" name="categoryicon" id="input-subject-icon-hammer" />
  286. <i class="fas fa-hammer"></i>
  287. </label>
  288. <label for="input-subject-icon-globe">
  289. <input type="radio" value="fa-globe" name="categoryicon" id="input-subject-icon-globe" />
  290. <i class="fas fa-globe"></i>
  291. </label>
  292. <label for="input-subject-icon-glass-cheers">
  293. <input type="radio" value="fa-glass-cheers" name="categoryicon" id="input-subject-icon-glass-cheers" />
  294. <i class="fas fa-glass-cheers"></i>
  295. </label>
  296. <label for="input-subject-icon-ghost">
  297. <input type="radio" value="fa-ghost" name="categoryicon" id="input-subject-icon-ghost" />
  298. <i class="fas fa-ghost"></i>
  299. </label>
  300. <label for="input-subject-icon-futbol">
  301. <input type="radio" value="fa-futbol" name="categoryicon" id="input-subject-icon-futbol" />
  302. <i class="fas fa-futbol"></i>
  303. </label>
  304. <label for="input-subject-icon-fish">
  305. <input type="radio" value="fa-fish" name="categoryicon" id="input-subject-icon-fish" />
  306. <i class="fas fa-fish"></i>
  307. </label>
  308. <label for="input-subject-icon-fire-alt">
  309. <input type="radio" value="fa-fire-alt" name="categoryicon" id="input-subject-icon-fire-alt" />
  310. <i class="fas fa-fire-alt"></i>
  311. </label>
  312. <label for="input-subject-icon-fan">
  313. <input type="radio" value="fa-fan" name="categoryicon" id="input-subject-icon-fan" />
  314. <i class="fas fa-fan"></i>
  315. </label>
  316. <label for="input-subject-icon-eye">
  317. <input type="radio" value="fa-eye" name="categoryicon" id="input-subject-icon-eye" />
  318. <i class="fas fa-eye"></i>
  319. </label>
  320. <label for="input-subject-icon-exclamation-circle">
  321. <input type="radio" value="fa-exclamation-circle" name="categoryicon" id="input-subject-icon-exclamation-circle" />
  322. <i class="fas fa-exclamation-circle"></i>
  323. </label>
  324. <label for="input-subject-icon-euro-sign">
  325. <input type="radio" value="fa-euro-sign" name="categoryicon" id="input-subject-icon-euro-sign" />
  326. <i class="fas fa-euro-sign"></i>
  327. </label>
  328. <label for="input-subject-icon-envelope">
  329. <input type="radio" value="fa-envelope" name="categoryicon" id="input-subject-icon-envelope" />
  330. <i class="fas fa-envelope"></i>
  331. </label>
  332. <label for="input-subject-icon-dot-circle">
  333. <input type="radio" value="fa-dot-circle" name="categoryicon" id="input-subject-icon-dot-circle" />
  334. <i class="fas fa-dot-circle"></i>
  335. </label>
  336. <label for="input-subject-icon-dollar-sign">
  337. <input type="radio" value="fa-dollar-sign" name="categoryicon" id="input-subject-icon-dollar-sign" />
  338. <i class="fas fa-dollar-sign"></i>
  339. </label>
  340. <label for="input-subject-icon-dog">
  341. <input type="radio" value="fa-dog" name="categoryicon" id="input-subject-icon-dog" />
  342. <i class="fas fa-dog"></i>
  343. </label>
  344. <label for="input-subject-icon-directions">
  345. <input type="radio" value="fa-directions" name="categoryicon" id="input-subject-icon-directions" />
  346. <i class="fas fa-directions"></i>
  347. </label>
  348. <label for="input-subject-icon-concierge-bell">
  349. <input type="radio" value="fa-concierge-bell" name="categoryicon" id="input-subject-icon-concierge-bell" />
  350. <i class="fas fa-concierge-bell"></i>
  351. </label>
  352. <label for="input-subject-icon-compass">
  353. <input type="radio" value="fa-compass" name="categoryicon" id="input-subject-icon-compass" />
  354. <i class="fas fa-compass"></i>
  355. </label>
  356. <label for="input-subject-icon-comments">
  357. <input type="radio" value="fa-comments" name="categoryicon" id="input-subject-icon-comments" />
  358. <i class="fas fa-comments"></i>
  359. </label>
  360. <label for="input-subject-icon-coffee">
  361. <input type="radio" value="fa-coffee" name="categoryicon" id="input-subject-icon-coffee" />
  362. <i class="fas fa-coffee"></i>
  363. </label>
  364. <label for="input-subject-icon-cloud">
  365. <input type="radio" value="fa-cloud" name="categoryicon" id="input-subject-icon-cloud" />
  366. <i class="fas fa-cloud"></i>
  367. </label>
  368. <label for="input-subject-icon-child">
  369. <input type="radio" value="fa-child" name="categoryicon" id="input-subject-icon-child" />
  370. <i class="fas fa-child"></i>
  371. </label>
  372. <label for="input-subject-icon-cat">
  373. <input type="radio" value="fa-cat" name="categoryicon" id="input-subject-icon-cat" />
  374. <i class="fas fa-cat"></i>
  375. </label>
  376. <label for="input-subject-icon-certificate">
  377. <input type="radio" value="fa-certificate" name="categoryicon" id="input-subject-icon-certificate" />
  378. <i class="fas fa-certificate"></i>
  379. </label>
  380. <label for="input-subject-icon-car">
  381. <input type="radio" value="fa-car" name="categoryicon" id="input-subject-icon-car" />
  382. <i class="fas fa-car"></i>
  383. </label>
  384. <label for="input-subject-icon-calendar-alt">
  385. <input type="radio" value="fa-calendar-alt" name="categoryicon" id="input-subject-icon-calendar-alt" />
  386. <i class="fas fa-calendar-alt"></i>
  387. </label>
  388. <label for="input-subject-icon-bus">
  389. <input type="radio" value="fa-bus" name="categoryicon" id="input-subject-icon-bus" />
  390. <i class="fas fa-bus"></i>
  391. </label>
  392. <label for="input-subject-icon-bullhorn">
  393. <input type="radio" value="fa-bullhorn" name="categoryicon" id="input-subject-icon-bullhorn" />
  394. <i class="fas fa-bullhorn"></i>
  395. </label>
  396. <label for="input-subject-icon-bookmark">
  397. <input type="radio" value="fa-bookmark" name="categoryicon" id="input-subject-icon-bookmark" />
  398. <i class="fas fa-bookmark"></i>
  399. </label>
  400. <label for="input-subject-icon-bolt">
  401. <input type="radio" value="fa-bolt" name="categoryicon" id="input-subject-icon-bolt" />
  402. <i class="fas fa-bolt"></i>
  403. </label>
  404. <label for="input-subject-icon-biking">
  405. <input type="radio" value="fa-biking" name="categoryicon" id="input-subject-icon-biking" />
  406. <i class="fas fa-biking"></i>
  407. </label>
  408. <label for="input-subject-icon-baby-carriage">
  409. <input type="radio" value="fa-baby-carriage" name="categoryicon" id="input-subject-icon-baby-carriage" />
  410. <i class="fas fa-baby-carriage"></i>
  411. </label>
  412. <label for="input-subject-icon-award">
  413. <input type="radio" value="fa-award" name="categoryicon" id="input-subject-icon-award" />
  414. <i class="fas fa-award"></i>
  415. </label>
  416. <label for="input-subject-icon-arrow-alt-circle-up">
  417. <input type="radio" value="fa-arrow-alt-circle-up" name="categoryicon" id="input-subject-icon-arrow-alt-circle-up" />
  418. <i class="fas fa-arrow-alt-circle-up"></i>
  419. </label>
  420. <label for="input-subject-icon-arrow-alt-circle-down">
  421. <input type="radio" value="fa-arrow-alt-circle-down" name="categoryicon" id="input-subject-icon-arrow-alt-circle-down" />
  422. <i class="fas fa-arrow-alt-circle-down"></i>
  423. </label>
  424. <label for="input-subject-icon-arrow-alt-circle-right">
  425. <input type="radio" value="fa-arrow-alt-circle-right" name="categoryicon" id="input-subject-icon-arrow-alt-circle-right" />
  426. <i class="fas fa-arrow-alt-circle-right"></i>
  427. </label>
  428. <label for="input-subject-icon-arrow-alt-circle-left">
  429. <input type="radio" value="fa-arrow-alt-circle-left" name="categoryicon" id="input-subject-icon-arrow-alt-circle-left" />
  430. <i class="fas fa-arrow-alt-circle-left"></i>
  431. </label>
  432. </div>
  433. </div>
  434. </div>
  435. </div>
  436. </div>
  437. <div class="form-group">
  438. <div class="form-row">
  439. <div class="col">
  440. <label for="input-subject">
  441. <%= _lc( 'APPOINTMENT_SUBJECT' ) %>
  442. </label>
  443. <input type="text"
  444. minlength="3"
  445. maxlength="255"
  446. name="subject"
  447. data-id="input-subject"
  448. id="input-subject"
  449. class="form-control"
  450. autocomplete="off"
  451. required />
  452. <div class="invalid-feedback">
  453. <%= _lc( 'VALIDATION_INPUT_REQUIRED' ) %>
  454. </div>
  455. </div>
  456. </div>
  457. </div>
  458. <% for ( var gi = 0; gi < groups.length; gi++ ) { %>
  459. <% mTeam = groups[ gi ]; %>
  460. <section data-id="section-category-selection-<%= mTeam.getId() %>"
  461. data-type="section-category-selection"
  462. style="display: <%= ( gi === 0 ) ? 'block' : 'none' %>">
  463. <% var categories = mTeam.getAdminCourseCategoriesForProfile( currentProfile ); %>
  464. <div class="form-group">
  465. <div class="form-row">
  466. <div class="col">
  467. <label for="select-category-<%= mTeam.getId() %>">
  468. <%= _lc( 'APPOINTMENT_CATEGORY' ) %> <small>(<%= _lc( 'APPOINTMENT_CATEGORY_MULTIPLE_SELECTION_POSSIBLE' ) %>)</small>
  469. </label>
  470. <select class="form-control"
  471. name="category"
  472. multiple
  473. size="<%= ~~Math.min( 4, categories.length ) %>"
  474. data-id="select-category-<%= mTeam.getId() %>"
  475. id="select-category-<%= mTeam.getId() %>">
  476. <% for ( var ci = 0; ci < categories.length; ci++ ) { %>
  477. <option value="<%= categories[ ci ].id %>"><%= categories[ ci ].name %></option>
  478. <% } %>
  479. </select>
  480. <div class="invalid-feedback">
  481. <%= _lc( 'VALIDATION_SELECT_AT_LEAST_ONE_CATEGORY' ) %>
  482. </div>
  483. </div>
  484. </div>
  485. <%=raw app.core.View.getTemplate( 'gui-form-help', { help : _lc( 'FORMHELP_APPOINTMENT_CATEGORY' ) } ) %>
  486. <% if ( 0 === categories.length ) { %>
  487. <div class="alert alert-warning" role="alert">
  488. <%= _lc( 'APPOINTMENT_CATEGORIES_MISSING_FOR_ADMIN' ) %>
  489. </div>
  490. <% } %>
  491. </div>
  492. </section>
  493. <% } %>
  494. <div class="form-group">
  495. <label><%= _lc( 'APPOINTMENT_VISIBLE_FOR' ) %></label><br />
  496. <div class="custom-control custom-radio custom-control-inline">
  497. <input type="radio"
  498. id="input-visibility-all"
  499. data-id="input-visibility-all"
  500. name="input-visibility"
  501. value="visibility-all"
  502. class="custom-control-input"
  503. checked="checked"
  504. >
  505. <label class="custom-control-label"
  506. for="input-visibility-all"><%= _lc( 'APPOINTMENT_VISIBLE_FOR_ALL' ) %></label>
  507. </div>
  508. <div class="custom-control custom-radio custom-control-inline">
  509. <input type="radio"
  510. id="input-visibility-category_only"
  511. data-id="input-visibility-category_only"
  512. name="input-visibility"
  513. value="visibility-category-only"
  514. class="custom-control-input">
  515. <label class="custom-control-label"
  516. for="input-visibility-category_only"><%= _lc( 'APPOINTMENT_VISIBLE_FOR_CATEGORY_ONLY' ) %></label>
  517. </div>
  518. <div data-id="max-bookers" style="display: none; margin-left: 22px">
  519. <small>
  520. <%= _lc( 'MAX_BOOKERS' ) %>: <span data-id="span-max-bookers">0</span>
  521. </small>
  522. </div>
  523. </div>
  524. <div class="form-group">
  525. <div class="form-row">
  526. <div class="col">
  527. <label for="input-start-date">
  528. <%= _lc( 'APPOINTMENT_START_DATE' ) %>
  529. </label>
  530. <input type="date"
  531. id="input-start-date"
  532. data-id="input-start-date"
  533. name="start-date"
  534. class="form-control"
  535. value="<%= mNow.format( 'YYYY-MM-DD' ) %>"
  536. required />
  537. <div class="invalid-feedback">
  538. <%= _lc( 'VALIDATION_APPOINTMENT_STARTTIME_CANNOT_BE_IN_PAST' ) %>
  539. </div>
  540. </div>
  541. <div class="col">
  542. <label for="input-start-time">
  543. <%= _lc( 'APPOINTMENT_START_TIME' ) %>
  544. </label>
  545. <input type="time"
  546. id="input-start-time"
  547. data-id="input-start-time"
  548. name="start-time"
  549. value="<%= mNow.format( 'HH:mm' ) %>"
  550. class="form-control"
  551. required />
  552. </div>
  553. </div>
  554. </div>
  555. <% mNow.add( 1, 'hours' ) %>
  556. <div class="form-group">
  557. <div class="form-row">
  558. <div class="col">
  559. <label for="input-end-date">
  560. <%= _lc( 'APPOINTMENT_END_DATE' ) %>
  561. </label>
  562. <input type="date"
  563. id="input-end-date"
  564. data-id="input-end-date"
  565. name="end-date"
  566. class="form-control"
  567. value="<%= mNow.format( 'YYYY-MM-DD' ) %>"
  568. required />
  569. <div class="invalid-feedback">
  570. <%= _lc( 'VALIDATION_APPOINTMENT_ENDTIME_CANNOT_BE_BEFORE_STARTTIME' ) %>
  571. </div>
  572. </div>
  573. <div class="col">
  574. <label for="input-end-time">
  575. <%= _lc( 'APPOINTMENT_END_TIME' ) %>
  576. </label>
  577. <input type="time"
  578. id="input-end-time"
  579. data-id="input-end-time"
  580. name="end-time"
  581. value="<%= mNow.format( 'HH:mm' ) %>"
  582. class="form-control"
  583. required />
  584. </div>
  585. </div>
  586. </div>
  587. <% mNow.subtract( 1, 'hours' ) %>
  588. <div class="form-group">
  589. <div class="form-row">
  590. <div class="col">
  591. <label for="input-deadline-date">
  592. <%= _lc( 'APPOINTMENT_DEADLINE_DATE' ) %>
  593. </label>
  594. <input type="date"
  595. id="input-deadline-date"
  596. data-id="input-deadline-date"
  597. name="deadline-date"
  598. class="form-control"
  599. value="<%= mNow.format( 'YYYY-MM-DD' ) %>"
  600. required />
  601. <div class="invalid-feedback">
  602. <%= _lc( 'VALIDATION_APPOINTMENT_DEADLINE_CANNOT_BE_AFTER_STARTTIME' ) %>
  603. </div>
  604. </div>
  605. <div class="col">
  606. <label for="input-end-time">
  607. <%= _lc( 'APPOINTMENT_DEADLINE_TIME' ) %>
  608. </label>
  609. <input type="time"
  610. id="input-deadline-time"
  611. data-id="input-deadline-time"
  612. name="deadline-time"
  613. value="<%= mNow.format( 'HH:mm' ) %>"
  614. class="form-control"
  615. required />
  616. </div>
  617. </div>
  618. <%=raw app.core.View.getTemplate( 'gui-form-help', { help : _lc( 'FORMHELP_APPOINTMENT_DEADLINE' ) } ) %>
  619. </div>
  620. <div class="form-group">
  621. <div class="form-row">
  622. <div class="col">
  623. <label for="input-deadline-reject-date">
  624. <%= _lc( 'APPOINTMENT_DEADLINE_REJECT_DATE' ) %>
  625. </label>
  626. <input type="date"
  627. id="input-deadline-reject-date"
  628. data-id="input-deadline-reject-date"
  629. name="deadline-date"
  630. class="form-control"
  631. value="<%= mReject.format( 'YYYY-MM-DD' ) %>"
  632. required />
  633. <div class="invalid-feedback">
  634. <%= _lc( 'GENERAL_VALIDATION_REQUIRED' ) %>
  635. </div>
  636. </div>
  637. <div class="col">
  638. <label for="input-deadline-reject-time">
  639. <%= _lc( 'APPOINTMENT_DEADLINE_REJECT_TIME' ) %>
  640. </label>
  641. <input type="time"
  642. id="input-deadline-reject-time"
  643. data-id="input-deadline-reject-time"
  644. name="deadline-time"
  645. value="<%= mReject.format( 'HH:mm' ) %>"
  646. class="form-control"
  647. required />
  648. <div class="invalid-feedback">
  649. <%= _lc( 'GENERAL_VALIDATION_REQUIRED' ) %>
  650. </div>
  651. </div>
  652. </div>
  653. <%=raw app.core.View.getTemplate( 'gui-form-help', { help : _lc( 'FORMHELP_APPOINTMENT_DEADLINE_REJECT' ) } ) %>
  654. </div>
  655. <div class="form-group">
  656. <label for="input-location">
  657. <%= _lc( 'APPOINTMENT_LOCATION' ) %>
  658. </label>
  659. <input type="text"
  660. maxlength="256"
  661. data-id="input-location"
  662. id="input-location"
  663. autocomplete="off"
  664. class="form-control" />
  665. </div>
  666. <div class="form-group">
  667. <div class="form-row">
  668. <!--
  669. <div class="col">
  670. <label for="select-min-attendee">
  671. <%= _lc( 'APPOINTMENT_MIN_ATTENDEE' ) %>
  672. </label>
  673. <select class="form-control"
  674. name="min-attendee"
  675. data-id="select-min-attendee"
  676. id="select-min-attendee">
  677. <option value="0"><%= _lc( 'DOESNT_MATTER' ) %></option>
  678. <% for ( var ma = 1; ma <= 500; ma++ ) { %>
  679. <option value="<%= ma %>"><%= ma %></option>
  680. <% } %>
  681. </select>
  682. <div class="invalid-feedback">
  683. <%= _lc( 'VALIDATION_APPOINTMENT_MIN_ATTENDEE' ) %>
  684. </div>
  685. </div>
  686. -->
  687. <div class="col">
  688. <label for="select-max-attendee">
  689. <%= _lc( 'APPOINTMENT_MAX_ATTENDEE' ) %>
  690. </label>
  691. <select class="form-control"
  692. name="max-attendee"
  693. data-id="select-max-attendee"
  694. id="select-max-attendee">
  695. <option value="0"><%= _lc( 'DOESNT_MATTER' ) %></option>
  696. <% for ( var ma = 1; ma <= 500; ma++ ) { %>
  697. <option value="<%= ma %>"><%= ma %></option>
  698. <% } %>
  699. </select>
  700. <div class="invalid-feedback">
  701. <%= _lc( 'VALIDATION_APPOINTMENT_MAX_ATTENDEE' ) %>
  702. </div>
  703. <%=raw app.core.View.getTemplate( 'gui-form-help', { help : _lc( 'FORMHELP_APPOINTMENT_MAX_ATTENDEES' ) } ) %>
  704. </div>
  705. </div>
  706. </div>
  707. <div class="form-group">
  708. <label><%= _lc( 'APPOINTMENT_FREQUENCY' ) %></label><br />
  709. <div class="custom-control custom-radio custom-control-inline">
  710. <input type="radio"
  711. id="input-frequency-single"
  712. data-id="input-frequency-single"
  713. name="input-frequency"
  714. value="frequency-single"
  715. class="custom-control-input"
  716. checked="checked"
  717. >
  718. <label class="custom-control-label"
  719. for="input-frequency-single"><%= _lc( 'APPOINTMENT_SINGLE' ) %></label>
  720. </div>
  721. <div class="custom-control custom-radio custom-control-inline">
  722. <input type="radio"
  723. id="input-frequency-multiple"
  724. data-id="input-frequency-multiple"
  725. name="input-frequency"
  726. value="frequency-multiple"
  727. class="custom-control-input">
  728. <label class="custom-control-label"
  729. for="input-frequency-multiple"><%= _lc( 'APPOINTMENT_MULTIPLE' ) %></label>
  730. </div>
  731. </div>
  732. <div class="collapse"
  733. data-id="collapse-frequency-details"
  734. id="collapse-frequency-details">
  735. <div class="form-group">
  736. <div class="form-row">
  737. <div class="col">
  738. <label for="select-frequency-unit">
  739. <%= _lc( 'APPOINTMENT_FREQUENCY_UNIT' ) %>
  740. </label>
  741. <select class="form-control"
  742. name="frequency-unit"
  743. data-id="select-frequency-unit"
  744. id="select-frequency-unit">
  745. <option value="daily"><%= _lc( 'APPOINTMENT_FREQUENCY_DAILY' ) %></option>
  746. <option value="weekly"><%= _lc( 'APPOINTMENT_FREQUENCY_WEEKLY' ) %></option>
  747. <option value="twoweek"><%= _lc( 'APPOINTMENT_FREQUENCY_TWO_WEEK' ) %></option>
  748. <option value="monthly"><%= _lc( 'APPOINTMENT_FREQUENCY_MONTHLY' ) %></option>
  749. <option value="yearly"><%= _lc( 'APPOINTMENT_FREQUENCY_YEARLY' ) %></option>
  750. </select>
  751. </div>
  752. <div class="col">
  753. <label for="select-frequency-num-repetition">
  754. <%= _lc( 'APPOINTMENT_FREQUENCY_NUM_REPETITION' ) %>
  755. </label>
  756. <select class="form-control"
  757. name="frequency-num-repetition"
  758. data-id="select-frequency-num-repetition"
  759. id="select-frequency-num-repetition">
  760. <% for ( var rpi = 1; rpi < 53; rpi++ ) { %>
  761. <option value="<%= rpi %>"><%= rpi %></option>
  762. <% } %>
  763. </select>
  764. </div>
  765. </div>
  766. </div>
  767. </div>
  768. <div class="form-group">
  769. <label for="textarea-comment">
  770. <%= _lc( 'APPOINTMENT_ADDITIONAL_NOTES' ) %>
  771. </label>
  772. <textarea id="textarea-comment"
  773. data-id="textarea-comment"
  774. class="form-control"></textarea>
  775. </div>
  776. <div class="form-group">
  777. <label for="input-location">
  778. Abrechnungsfaktor
  779. </label>
  780. <input type="number"
  781. min="0"
  782. data-id="input-price-factor"
  783. id="input-price-factor"
  784. value="1"
  785. step="0.5"
  786. class="form-control" />
  787. </div>
  788. <hr />
  789. <div class="form-group">
  790. <div class="custom-control custom-checkbox">
  791. <input type="checkbox"
  792. id="appointment-state"
  793. data-id="checkbox-appointment-state"
  794. class="custom-control-input"
  795. />
  796. <label class="custom-control-label"
  797. for="appointment-state"
  798. style="vertical-align: top;"><%= _lc( 'DIRECTLY_PUBLISH_APPOINTMENT' ) %></label>
  799. </div>
  800. <%=raw app.core.View.getTemplate( 'gui-form-help', { help : _lc( 'FORMHELP_APPOINTMENT_PUBLISH_DIRECTLY' ) } ) %>
  801. </div>
  802. </div>
  803. <div class="card-footer">
  804. <a href="javascript:history.back()"
  805. class="btn btn-sm btn-secondary">
  806. <%= _lc( 'BTN_CANCEL' ) %>
  807. </a>
  808. <button type="button"
  809. data-id="btn-create"
  810. class="btn btn-sm btn-primary">
  811. <%= _lc( 'BTN_CREATE' ) %>
  812. </button>
  813. </div>
  814. </form>
  815. </div>
  816. </div>
  817. </div>
  818. </div>