specialty-action-edit.tpl 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365
  1. <script type='text/javascript' src="../js/sepe.js"></script>
  2. <link rel="stylesheet" type="text/css" href="../resources/plugin.css"/>
  3. <div class="row">
  4. <form class="form-horizontal" action="specialty-action-edit.php" method="post" name="form_specialty_action">
  5. <div class="col-md-3">
  6. <div id="course_category_well" class="well">
  7. <ul class="nav nav-list">
  8. <li class="nav-header"><h3>{{ 'Actions' | get_plugin_lang('SepePlugin') }}:</h3></li>
  9. <li>
  10. {% if new_action == "1" %}
  11. <input type="hidden" name="action_id" value="{{ action_id }}" />
  12. <input type="hidden" name="new_specialty" value="1" />
  13. {% else %}
  14. <input type="hidden" name="action_id" value="{{ action_id }}" />
  15. <input type="hidden" name="specialty_id" value="{{ specialty_id }}" />
  16. <input type="hidden" name="new_specialty" value="0" />
  17. {% endif %}
  18. <input type="hidden" name="sec_token" value="{{ sec_token }}" />
  19. <input class="btn btn-primary sepe-btn-menu-side" type="submit" value="{{ 'SaveChanges' | get_plugin_lang('SepePlugin') }}" />
  20. </li>
  21. <li>
  22. <input class="btn btn-warning sepe-btn-menu-side" type="reset" value="{{ 'Reset' | get_plugin_lang('SepePlugin') }}" />
  23. </li>
  24. </ul>
  25. </div>
  26. </div>
  27. <div class="col-md-9">
  28. {% if message_info != "" %}
  29. <div class="alert alert-success">
  30. {{ message_info }}
  31. </div>
  32. {% endif %}
  33. {% if message_error != "" %}
  34. <div class="alert alert-danger">
  35. {{ message_error }}
  36. </div>
  37. {% endif %}
  38. <div class="well_border">
  39. <fieldset>
  40. <legend>{{ 'SpecialtyFormativeAction' | get_plugin_lang('SepePlugin') }}</legend>
  41. <div class="well">
  42. <legend><h4>{{ 'SpecialtyIdentifier' | get_plugin_lang('SepePlugin') | upper}}: </h4></legend>
  43. <div class="form-group">
  44. <label class="col-sm-3 control-label">{{ 'SpecialtyOrigin' | get_plugin_lang('SepePlugin') }}: </label>
  45. <div class="col-sm-2">
  46. <input class="form-control" type="text" name="specialty_origin" value="{{ info.specialty_origin }}" />
  47. </div>
  48. </div>
  49. <div class="form-group">
  50. <label class="col-sm-3 control-label">{{ 'ProfessionalArea' | get_plugin_lang('SepePlugin') }}: </label>
  51. <div class="col-sm-2">
  52. <input class="form-control" type="text" name="professional_area" value="{{ info.professional_area }}" />
  53. </div>
  54. </div>
  55. <div class="form-group">
  56. <label class="col-sm-3 control-label">{{ 'SpecialtyCode' | get_plugin_lang('SepePlugin') }}: </label>
  57. <div class="col-sm-3">
  58. <input class="form-control" type="text" name="specialty_code" value="{{ info.specialty_code }}" />
  59. </div>
  60. </div>
  61. </div>
  62. <div class="well">
  63. <legend><h4>{{ 'DeliveryCenter' | get_plugin_lang('SepePlugin') | upper }}: </h4></legend>
  64. <div class="form-group">
  65. <label class="col-sm-3 control-label">{{ 'CenterOrigin' | get_plugin_lang('SepePlugin') }}: </label>
  66. <div class="col-sm-2">
  67. <input class="form-control" type="text" name="center_origin" value="{{ info.center_origin }}" />
  68. </div>
  69. </div>
  70. <div class="form-group">
  71. <label class="col-sm-3 control-label">{{ 'CenterCode' | get_plugin_lang('SepePlugin') }}: </label>
  72. <div class="col-sm-3">
  73. <input class="form-control" type="text" name="center_code" value="{{ info.center_code }}" />
  74. </div>
  75. </div>
  76. </div>
  77. <div class="form-group">
  78. <label class="col-lg-3 control-label">{{ 'StartDate' | get_plugin_lang('SepePlugin') }}: </label>
  79. <div class="col-lg-4">
  80. <select name="day_start" class="form-control sepe-slt-date">
  81. <option value=""></option>
  82. {% for i in 1..31 %}
  83. <option value="{{ i }}" {% if day_start == i %} selected="selected" {% endif %} >{{ "%02d"|format(i) }}</option>
  84. {% endfor %}
  85. </select>
  86. /
  87. <select name="month_start" class="form-control sepe-slt-date">
  88. <option value=""></option>
  89. {% for i in 1..12 %}
  90. <option value="{{ i }}" {% if month_start == i %} selected="selected" {% endif %} >{{ "%02d"|format(i) }}</option>
  91. {% endfor %}
  92. </select>
  93. /
  94. <select name="year_start" class="form-control sepe-slt-date">
  95. <option value=""></option>
  96. {% for i in list_year %}
  97. {% if year_start == i %}
  98. <option value="{{ i }}" selected="selected">{{ i }}</option>
  99. {% else %}
  100. <option value="{{ i }}">{{ i }}</option>
  101. {% endif %}
  102. {% endfor %}
  103. </select>
  104. </div>
  105. <div class="alert alert-info sepe-message-info col-lg-5">
  106. {{ 'SpecialtyStartDateMessage' | get_plugin_lang('SepePlugin') }}
  107. </div>
  108. </div>
  109. <div class="form-group">
  110. <label class="col-lg-3 control-label">{{ 'EndDate' | get_plugin_lang('SepePlugin') }}: </label>
  111. <div class="col-lg-4">
  112. <select name="day_end" class="form-control sepe-slt-date">
  113. <option value=""></option>
  114. {% for i in 1..31 %}
  115. <option value="{{ i }}" {% if day_end == i %} selected="selected" {% endif %} >{{ "%02d"|format(i) }}</option>
  116. {% endfor %}
  117. </select>
  118. /
  119. <select name="month_end" class="form-control sepe-slt-date">
  120. {% for i in 1..12 %}
  121. <option value="{{ i }}" {% if month_end == i %} selected="selected" {% endif %} >{{ "%02d"|format(i) }}</option>
  122. {% endfor %}
  123. </select>
  124. /
  125. <select name="year_end" class="form-control sepe-slt-date">
  126. <option value=""></option>
  127. {% for i in list_year %}
  128. {% if year_end == i %}
  129. <option value="{{ i }}" selected="selected">{{ i }}</option>
  130. {% else %}
  131. <option value="{{ i }}">{{ i }}</option>
  132. {% endif %}
  133. {% endfor %}
  134. </select>
  135. </div>
  136. <div class="col-lg-5 sepe-message-info alert alert-info">
  137. {{ 'SpecialtyEndDateMessage' | get_plugin_lang('SepePlugin') }}
  138. </div>
  139. </div>
  140. <div class="form-group">
  141. <label class="col-sm-3 control-label">{{ 'ModalityImpartition' | get_plugin_lang('SepePlugin') }}: </label>
  142. <div class="col-sm-9">
  143. <select name="modality_impartition" class="chzn-select">
  144. <option value=""></option>
  145. {% if info.modality_impartition == "TF" %}
  146. <option value="TF" selected="selected">Teleformación</option>
  147. {% else %}
  148. <option value="TF">Teleformación</option>
  149. {% endif %}
  150. {% if info.modality_impartition == "PR" %}
  151. <option value="PR" selected="selected">Presencial</option>
  152. {% else %}
  153. <option value="PR">Presencial</option>
  154. {% endif %}
  155. {% if info.modality_impartition == "PE" %}
  156. <option value="PE" selected="selected">Práctica no laboral (formación) en centro de trabajo</option>
  157. {% else %}
  158. <option value="PE">Práctica no laboral (formación) en centro de trabajo</option>
  159. {% endif %}
  160. </select>
  161. <em class="alert alert-info sepe-message-info sepe-margin-top">
  162. {{ 'ModalityImpartitionMessage' | get_plugin_lang('SepePlugin') }}
  163. </em>
  164. </div>
  165. </div>
  166. <div class="well sepe-subfield">
  167. <legend><h4>{{ 'DurationData' | get_plugin_lang('SepePlugin') | upper }}: </h4></legend>
  168. <div class="form-group">
  169. <label class="col-sm-3 control-label">{{ 'ClassroomHours' | get_plugin_lang('SepePlugin') }}: </label>
  170. <div class="col-sm-2">
  171. <input class="form-control" type="number" name="classroom_hours" value="{{ info.classroom_hours }}" />
  172. </div>
  173. <div class="col-sm-7 alert alert-info sepe-message-info">{{ 'ClassroomHoursMessage' | get_plugin_lang('SepePlugin') }}</div>
  174. </div>
  175. <div class="form-group">
  176. <label class="col-sm-3 control-label">{{ 'DistanceHours' | get_plugin_lang('SepePlugin') }}: </label>
  177. <div class="col-sm-2">
  178. <input class="form-control" type="number" name="distance_hours" value="{{ info.distance_hours }}" />
  179. </div>
  180. <div class="col-sm-7 alert alert-info sepe-message-info">{{ 'DistanceHoursMessage' | get_plugin_lang('SepePlugin') }}</div>
  181. </div>
  182. </div>
  183. <div class="well">
  184. {% if new_action == "1" %}
  185. <legend><h4>{{ 'ClassroomSessionCenter' | get_plugin_lang('SepePlugin') | upper}}: </h4></legend>
  186. <div class="alert alert-warning">{{ 'ClassroomSessionCenterMessage' | get_plugin_lang('SepePlugin') }}</div>
  187. {% else %}
  188. <legend>
  189. <h4>
  190. {{ 'ClassroomSessionCenter' | get_plugin_lang('SepePlugin') }}:
  191. <a href="specialty-classroom-edit.php?new_classroom=1&specialty_id={{ info.id }}&action_id={{ action_id }}" class="btn btn-sm btn-info pull-right">{{ 'CreateClassroomCenter' | get_plugin_lang('SepePlugin') }}</a>
  192. </h4>
  193. </legend>
  194. <input type="hidden" id="confirmDeleteClassroom" value="{{ 'confirmDeleteClassroom'|get_plugin_lang('SepePlugin') }}" />
  195. {% for classroom in listClassroom %}
  196. <div class="form-group">
  197. <label class="col-sm-3 control-label">{{ 'ClassroomCenter' | get_plugin_lang('SepePlugin') }}: </label>
  198. <div class="col-sm-9">
  199. <label class="campo_texto">{{ classroom.center_origin }} {{ classroom.center_code }}
  200. <a href="#" class="btn btn-danger btn-sm pull-right sepe-margin-side delete-classroom" id="classroom{{ classroom.id }}">{{ 'Delete' | get_plugin_lang('SepePlugin') }}</a>
  201. <a href="specialty-classroom-edit.php?new_classroom=0&specialty_id={{ info.id }}&classroom_id={{ classroom.id }}&action_id={{ action_id }}" class="btn btn-warning btn-sm pull-right sepe-margin-side">{{ 'Edit' | get_plugin_lang('SepePlugin') }}</a>
  202. </label>
  203. </div>
  204. </div>
  205. {% endfor %}
  206. {% endif %}
  207. </div>
  208. <div class="well">
  209. {% if new_action == "1" %}
  210. <legend><h4>{{ 'TrainingTutors' | get_plugin_lang('SepePlugin') | upper }}: </h4></legend>
  211. <div class="alert alert-warning">{{ 'TrainingTutorsMessage' | get_plugin_lang('SepePlugin') }}</div>
  212. {% else %}
  213. <legend>
  214. <h4>
  215. {{ 'TrainingTutors' | get_plugin_lang('SepePlugin') }}:
  216. <a href="specialty-tutor-edit.php?new_tutor=1&specialty_id={{ info.id }}&action_id={{ action_id }}" class="btn btn-sm btn-info pull-right">{{ 'CreateTrainingTutor' | get_plugin_lang('SepePlugin') }}</a>
  217. </h4>
  218. </legend>
  219. <input type="hidden" id="confirmDeleteTutor" value="{{ 'confirmDeleteTutor'|get_plugin_lang('SepePlugin') }}" />
  220. {% for tutor in listTutors %}
  221. <div class="form-group">
  222. <label class="col-sm-3 control-label">{{ 'TrainingTutor' | get_plugin_lang('SepePlugin') }}: </label>
  223. <div class="col-sm-9">
  224. <label class="campo_texto">
  225. {{ tutor.firstname }} {{ tutor.lastname }}
  226. ( {{ tutor.document_number }}-{{ tutor.document_letter }} )
  227. <a href="#" class="btn btn-danger btn-sm pull-right sepe-margin-side delete-tutor" id="tutor{{ tutor.id }}">{{ 'Delete' | get_plugin_lang('SepePlugin') }}</a>
  228. <a href="specialty-tutor-edit.php?new_tutor=0&specialty_id={{ info.id }}&tutor_id={{ tutor.id }}&action_id={{ action_id }}" class="btn btn-warning btn-sm pull-right sepe-margin-side">{{ 'Edit' | get_plugin_lang('SepePlugin') }}</a>
  229. </label>
  230. </div>
  231. </div>
  232. {% endfor %}
  233. {% endif %}
  234. </div>
  235. <div class="well">
  236. <legend><h4>{{ 'ContentUse' | get_plugin_lang('SepePlugin') | upper }}</h4></legend>
  237. <div class="well">
  238. <legend class="sepe-subfield2">{{ 'MorningSchedule' | get_plugin_lang('SepePlugin') | upper }}</legend>
  239. <div class="alert alert-info sepe-message-info">{{ 'MorningScheduleMessage' | get_plugin_lang('SepePlugin') }}</div>
  240. <div class="form-group">
  241. <label class="col-sm-3 control-label">{{ 'ParticipantsNumber' | get_plugin_lang('SepePlugin') }}: </label>
  242. <div class="col-sm-2">
  243. <input class="form-control" type="number" name="mornings_participants_number" value="{{ info.mornings_participants_number }}" />
  244. </div>
  245. </div>
  246. <div class="form-group">
  247. <label class="col-sm-3 control-label">{{ 'AccessNumber' | get_plugin_lang('SepePlugin') }}: </label>
  248. <div class="col-sm-2">
  249. <input class="form-control" type="number" name="mornings_access_number" value="{{ info.mornings_access_number }}" />
  250. </div>
  251. </div>
  252. <div class="form-group">
  253. <label class="col-sm-3 control-label">{{ 'TotalDuration' | get_plugin_lang('SepePlugin') }}: </label>
  254. <div class="col-sm-2">
  255. <input class="form-control" type="number" name="morning_total_duration" value="{{ info.morning_total_duration }}"/>
  256. </div>
  257. </div>
  258. </div>
  259. <hr />
  260. <div class="well">
  261. <legend class="sepe-subfield2">{{ 'AfternoonSchedule' | get_plugin_lang('SepePlugin') | upper }}</legend>
  262. <div class="alert alert-info sepe-message-info">{{ 'AfternoonScheduleMessage' | get_plugin_lang('SepePlugin') }}</div>
  263. <div class="form-group">
  264. <label class="col-sm-3 control-label">{{ 'ParticipantsNumber' | get_plugin_lang('SepePlugin') }}: </label>
  265. <div class="col-sm-2">
  266. <input class="form-control" type="number" name="afternoon_participants_number" value="{{ info.afternoon_participants_number }}" />
  267. </div>
  268. </div>
  269. <div class="form-group">
  270. <label class="col-sm-3 control-label">{{ 'AccessNumber' | get_plugin_lang('SepePlugin') }}: </label>
  271. <div class="col-sm-2">
  272. <input class="form-control" type="number" name="afternoon_access_number" value="{{ info.afternoon_access_number }}" />
  273. </div>
  274. </div>
  275. <div class="form-group">
  276. <label class="col-sm-3 control-label">{{ 'TotalDuration' | get_plugin_lang('SepePlugin') }}: </label>
  277. <div class="col-sm-2">
  278. <input class="form-control" type="number" name="afternoon_total_duration" value="{{ info.afternoon_total_duration }}"/>
  279. </div>
  280. </div>
  281. </div>
  282. <hr />
  283. <div class="well">
  284. <legend class="sepe-subfield2">{{ 'NightSchedule' | get_plugin_lang('SepePlugin') | upper }}</legend>
  285. <div class="alert alert-info sepe-message-info">{{ 'NightScheduleMessage' | get_plugin_lang('SepePlugin') }}</div>
  286. <div class="form-group">
  287. <label class="col-sm-3 control-label">{{ 'ParticipantsNumber' | get_plugin_lang('SepePlugin') }}: </label>
  288. <div class="col-sm-2">
  289. <input class="form-control" type="number" name="night_participants_number" value="{{ info.night_participants_number }}" />
  290. </div>
  291. </div>
  292. <div class="form-group">
  293. <label class="col-sm-3 control-label">{{ 'AccessNumber' | get_plugin_lang('SepePlugin') }}: </label>
  294. <div class="col-sm-2">
  295. <input class="form-control" type="number" name="night_access_number" value="{{ info.night_access_number }}" />
  296. </div>
  297. </div>
  298. <div class="form-group">
  299. <label class="col-sm-3 control-label">{{ 'TotalDuration' | get_plugin_lang('SepePlugin') }}: </label>
  300. <div class="col-sm-2">
  301. <input class="form-control" type="number" name="night_total_duration" value="{{ info.night_total_duration }}"/>
  302. </div>
  303. </div>
  304. </div>
  305. <hr />
  306. <div class="well">
  307. <legend class="sepe-subfield2">{{ 'MonitoringAndEvaluation' | get_plugin_lang('SepePlugin') | upper }}</legend>
  308. <div class="form-group">
  309. <label class="col-sm-3 control-label">{{ 'ParticipantsNumber' | get_plugin_lang('SepePlugin') }}: </label>
  310. <div class="col-sm-2">
  311. <input class="form-control" type="number" name="attendees_count" value="{{ info.attendees_count }}" />
  312. </div>
  313. </div>
  314. <div class="form-group">
  315. <label class="col-sm-3 control-label">{{ 'LearningActivityCount' | get_plugin_lang('SepePlugin') }}: </label>
  316. <div class="col-sm-2">
  317. <input class="form-control" type="number" name="learning_activity_count" value="{{ info.learning_activity_count }}" />
  318. </div>
  319. </div>
  320. <div class="form-group">
  321. <label class="col-sm-3 control-label">{{ 'AttemptCount' | get_plugin_lang('SepePlugin') }}: </label>
  322. <div class="col-sm-2">
  323. <input class="form-control" type="number" name="attempt_count" value="{{ info.attempt_count }}"/>
  324. </div>
  325. </div>
  326. <div class="form-group">
  327. <label class="col-sm-3 control-label">{{ 'EvaluationActivityCount' | get_plugin_lang('SepePlugin') }}: </label>
  328. <div class="col-sm-2">
  329. <input class="form-control" type="number" name="evaluation_activity_count" value="{{ info.evaluation_activity_count }}"/>
  330. </div>
  331. </div>
  332. </div>
  333. <hr />
  334. </div>
  335. </fieldset>
  336. </div>
  337. </div>
  338. </form>
  339. </div>