participant-specialty-edit.tpl 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323
  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="participant-specialty-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_specialty == "1" %}
  11. <input type="hidden" name="action_id" value="{{ action_id }}" />
  12. <input type="hidden" name="participant_id" value="{{ participant_id }}" />
  13. <input type="hidden" name="new_specialty" value="1" />
  14. {% else %}
  15. <input type="hidden" name="action_id" value="{{ action_id }}" />
  16. <input type="hidden" name="specialty_id" value="{{ specialty_id }}" />
  17. <input type="hidden" name="participant_id" value="{{ participant_id }}" />
  18. <input type="hidden" name="new_specialty" value="0" />
  19. {% endif %}
  20. <input type="hidden" name="sec_token" value="{{ sec_token }}" />
  21. <input class="btn btn-primary sepe-btn-menu-side" type="submit" value="{{ 'SaveChanges' | get_plugin_lang('SepePlugin') }}" />
  22. </li>
  23. <li>
  24. <input class="btn btn-warning sepe-btn-menu-side" type="reset" value="{{ 'Reset' | get_plugin_lang('SepePlugin') }}" />
  25. </li>
  26. </ul>
  27. </div>
  28. </div>
  29. <div class="col-md-9">
  30. {% if message_info != "" %}
  31. <div class="alert alert-success">
  32. {{ message_info }}
  33. </div>
  34. {% endif %}
  35. {% if message_error != "" %}
  36. <div class="alert alert-danger">
  37. {{ message_error }}
  38. </div>
  39. {% endif %}
  40. <div class="well_border">
  41. <fieldset>
  42. <legend>{{ 'SpecialtiesParcipant' | get_plugin_lang('SepePlugin') | upper }}</legend>
  43. <div class="well sepe-subfield">
  44. <legend><h4>{{ 'SpecialtyIdentifier' | get_plugin_lang('SepePlugin') | upper }}: </h4></legend>
  45. <div class="form-group">
  46. <label class="control-label col-sm-3">{{ 'SpecialtyOrigin' | get_plugin_lang('SepePlugin') }}: </label>
  47. <div class="col-sm-9">
  48. <input class="form-control" type="text" name="specialty_origin" value="{{ info.specialty_origin }}" />
  49. </div>
  50. </div>
  51. <div class="form-group">
  52. <label class="control-label col-sm-3">{{ 'ProfessionalArea' | get_plugin_lang('SepePlugin') }}: </label>
  53. <div class="col-sm-9">
  54. <input class="form-control" type="text" name="professional_area" value="{{ info.professional_area }}" />
  55. </div>
  56. </div>
  57. <div class="form-group">
  58. <label class="control-label col-sm-3">{{ 'SpecialtyCode' | get_plugin_lang('SepePlugin') }}: </label>
  59. <div class="col-sm-9">
  60. <input class="form-control" type="text" name="specialty_code" value="{{ info.specialty_code }}" />
  61. </div>
  62. </div>
  63. </div>
  64. <div class="form-group">
  65. <label class="control-label col-lg-3">{{ 'RegistrationDate' | get_plugin_lang('SepePlugin') }}: </label>
  66. <div class="col-lg-4">
  67. <select name="day_registration" class="form-control sepe-slt-date">
  68. <option value=""></option>
  69. {% for i in 1..31 %}
  70. <option value="{{ i }}" {% if day_registration == i %} selected="selected" {% endif %} >{{ "%02d"|format(i) }}</option>
  71. {% endfor %}
  72. </select>
  73. /
  74. <select name="month_registration" class="form-control sepe-slt-date">
  75. <option value=""></option>
  76. {% for i in 1..12 %}
  77. <option value="{{ i }}" {% if month_registration == i %} selected="selected" {% endif %} >{{ "%02d"|format(i) }}</option>
  78. {% endfor %}
  79. </select>
  80. /
  81. <select name="year_registration" class="form-control sepe-slt-date">
  82. <option value=""></option>
  83. {% for i in list_year %}
  84. {% if year_registration == i %}
  85. <option value="{{ i }}" selected="selected">{{ i }}</option>
  86. {% else %}
  87. <option value="{{ i }}">{{ i }}</option>
  88. {% endif %}
  89. {% endfor %}
  90. </select>
  91. </div>
  92. <div class="alert alert-info col-lg-5 sepe-message-info">
  93. {{ 'RegistrationDateMessage' | get_plugin_lang('SepePlugin') }}
  94. </div>
  95. </div>
  96. <div class="form-group">
  97. <label class="control-label col-lg-3">{{ 'LeavingDate' | get_plugin_lang('SepePlugin') }}: </label>
  98. <div class="col-lg-4">
  99. <select name="day_leaving" class="form-control sepe-slt-date">
  100. <option value=""></option>
  101. {% for i in 1..31 %}
  102. <option value="{{ i }}" {% if day_leaving == i %} selected="selected" {% endif %} >{{ "%02d"|format(i) }}</option>
  103. {% endfor %}
  104. </select>
  105. /
  106. <select name="month_leaving" class="form-control sepe-slt-date">
  107. <option value=""></option>
  108. {% for i in 1..12 %}
  109. <option value="{{ i }}" {% if month_leaving == i %} selected="selected" {% endif %} >{{ "%02d"|format(i) }}</option>
  110. {% endfor %}
  111. </select>
  112. /
  113. <select name="year_leaving" class="form-control sepe-slt-date">
  114. <option value=""></option>
  115. {% for i in list_year %}
  116. {% if year_leaving == i %}
  117. <option value="{{ i }}" selected="selected">{{ i }}</option>
  118. {% else %}
  119. <option value="{{ i }}">{{ i }}</option>
  120. {% endif %}
  121. {% endfor %}
  122. </select>
  123. </div>
  124. <div class="alert alert-info col-lg-5">
  125. {{ 'LeavingDateMessage' | get_plugin_lang('SepePlugin') }}
  126. </div>
  127. </div>
  128. <div class="well sepe-subfield">
  129. {% if new_specialty == "1" %}
  130. <legend>{{ 'ClassroomTutorials' | get_plugin_lang('SepePlugin') | upper }}: </legend>
  131. <div class="alert alert-warning">
  132. {{ 'ClassroomTutorialsMessage' | get_plugin_lang('SepePlugin') }}
  133. </div>
  134. {% else %}
  135. <legend>{{ 'ClassroomTutorials' | get_plugin_lang('SepePlugin') | upper }}:
  136. <a href="specialty-tutorial-edit.php?new_tutorial=1&specialty_id={{ info.id }}&action_id={{ action_id }}" class="btn btn-sm btn-info pull-right">{{ 'CreateClassroomTutorial' | get_plugin_lang('SepePlugin') }}</a>
  137. </legend>
  138. {% for tutorial in listSpecialtyTutorials %}
  139. <div class="form-group">
  140. <label class="control-label col-sm-3">{{ 'ClassroomTutorial' | get_plugin_lang('SepePlugin') }}: </label>
  141. <div class="col-sm-9">
  142. <label class="campo_texto">{{ tutorial.center_origin }} {{ tutorial.center_code }}
  143. <a href="#" class="btn btn-danger btn-sm pull-right sepe-margin-side del_classroom" id="tutorial{{ tutorial.id }}">{{ 'Delete' | get_plugin_lang('SepePlugin') }}</a>
  144. <a href="specialty-tutorial-edit.php?new_tutorial=0&specialty_id={{ info.id }}&tutorial_id={{ tutorial.id }}&action_id={{ action_id }}" class="btn btn-warning btn-sm pull-right sepe-margin-side">{{ 'Edit' | get_plugin_lang('SepePlugin') }}</a>
  145. </label>
  146. </div>
  147. </div>
  148. {% endfor %}
  149. {% endif %}
  150. </div>
  151. <div class="well sepe-subfield">
  152. <legend><h4>{{ 'FinalEvaluation' | get_plugin_lang('SepePlugin') | upper }}: </h4></legend>
  153. <div class="well">
  154. <legend class="sepe-subfield2">{{ 'FinalEvaluationClassroom' | get_plugin_lang('SepePlugin') | upper }}</legend>
  155. <div class="form-group">
  156. <label class="control-label col-sm-3">{{ 'CenterOrigin' | get_plugin_lang('SepePlugin') }}: </label>
  157. <div class="col-sm-9">
  158. <input class="form-control" type="text" name="center_origin" value="{{ info.center_origin }}" />
  159. </div>
  160. </div>
  161. <div class="form-group">
  162. <label class="control-label col-sm-3">{{ 'CenterCode' | get_plugin_lang('SepePlugin') }}: </label>
  163. <div class="col-sm-9">
  164. <input class="form-control" type="text" name="center_code" value="{{ info.center_code }}" />
  165. </div>
  166. </div>
  167. </div>
  168. <div class="form-group">
  169. <label class="control-label col-lg-3">{{ 'StartDate' | get_plugin_lang('SepePlugin') }}: </label>
  170. <div class="col-lg-4">
  171. <select name="day_start" class="form-control sepe-slt-date">
  172. <option value=""></option>
  173. {% for i in 1..31 %}
  174. <option value="{{ i }}" {% if day_start == i %} selected="selected" {% endif %} >{{ "%02d"|format(i) }}</option>
  175. {% endfor %}
  176. </select>
  177. /
  178. <select name="month_start" class="form-control sepe-slt-date">
  179. <option value=""></option>
  180. {% for i in 1..12 %}
  181. <option value="{{ i }}" {% if month_start == i %} selected="selected" {% endif %} >{{ "%02d"|format(i) }}</option>
  182. {% endfor %}
  183. </select>
  184. /
  185. <select name="year_start" class="form-control sepe-slt-date">
  186. <option value=""></option>
  187. {% for i in list_year_2 %}
  188. {% if year_start == i %}
  189. <option value="{{ i }}" selected="selected">{{ i }}</option>
  190. {% else %}
  191. <option value="{{ i }}">{{ i }}</option>
  192. {% endif %}
  193. {% endfor %}
  194. </select>
  195. </div>
  196. <div class="alert alert-info col-lg-5 sepe-message-info">
  197. {{ 'StartDateMessageEvaluation' | get_plugin_lang('SepePlugin') }}
  198. </div>
  199. </div>
  200. <div class="form-group">
  201. <label class="control-label col-lg-3">{{ 'EndDate' | get_plugin_lang('SepePlugin') }}: </label>
  202. <div class="col-lg-4">
  203. <select name="day_end" class="form-control sepe-slt-date">
  204. <option value=""></option>
  205. {% for i in 1..31 %}
  206. <option value="{{ i }}" {% if day_end == i %} selected="selected" {% endif %} >{{ "%02d"|format(i) }}</option>
  207. {% endfor %}
  208. </select>
  209. /
  210. <select name="month_end" class="form-control sepe-slt-date">
  211. <option value=""></option>
  212. {% for i in 1..12 %}
  213. <option value="{{ i }}" {% if month_end == i %} selected="selected" {% endif %} >{{ "%02d"|format(i) }}</option>
  214. {% endfor %}
  215. </select>
  216. /
  217. <select name="year_end" class="form-control sepe-slt-date">
  218. <option value=""></option>
  219. {% for i in list_year_2 %}
  220. {% if year_end == i %}
  221. <option value="{{ i }}" selected="selected">{{ i }}</option>
  222. {% else %}
  223. <option value="{{ i }}">{{ i }}</option>
  224. {% endif %}
  225. {% endfor %}
  226. </select>
  227. </div>
  228. <div class="alert alert-info col-lg-5 sepe-message-info">
  229. {{ 'EndDateMessageEvaluation' | get_plugin_lang('SepePlugin') }}
  230. </div>
  231. </div>
  232. </div>
  233. <div class="well sepe-subfield">
  234. <legend><h4>{{ 'Results' | get_plugin_lang('SepePlugin') | upper }}: </h4></legend>
  235. <div class="form-group">
  236. <label class="control-label col-sm-3">{{ 'FinalResult' | get_plugin_lang('SepePlugin') }}: </label>
  237. <div class="col-sm-9">
  238. <select name="final_result" class="form-control">
  239. <option value=""></option>
  240. {% if info.final_result == "0" %}
  241. <option value="0" selected="selected">{{ 'Initiated' | get_plugin_lang('SepePlugin') }}</option>
  242. {% else %}
  243. <option value="0">{{ 'Initiated' | get_plugin_lang('SepePlugin') }}</option>
  244. {% endif %}
  245. {% if info.final_result == "1" %}
  246. <option value="1" selected="selected">{{ 'LeavePlacement' | get_plugin_lang('SepePlugin') }}</option>
  247. {% else %}
  248. <option value="1">{{ 'LeavePlacement' | get_plugin_lang('SepePlugin') }}</option>
  249. {% endif %}
  250. {% if info.final_result == "2" %}
  251. <option value="2" selected="selected">{{ 'AbandonOtherReasons' | get_plugin_lang('SepePlugin') }}</option>
  252. {% else %}
  253. <option value="2">{{ 'AbandonOtherReasons' | get_plugin_lang('SepePlugin') }}</option>
  254. {% endif %}
  255. {% if info.final_result == "3" %}
  256. <option value="3" selected="selected">{{ 'EndsPositiveEvaluation' | get_plugin_lang('SepePlugin') }}</option>
  257. {% else %}
  258. <option value="3">{{ 'EndsPositiveEvaluation' | get_plugin_lang('SepePlugin') }}</option>
  259. {% endif %}
  260. {% if info.final_result == "4" %}
  261. <option value="4" selected="selected">{{ 'EndsNegativeEvaluation' | get_plugin_lang('SepePlugin') }}</option>
  262. {% else %}
  263. <option value="4">{{ 'EndsNegativeEvaluation' | get_plugin_lang('SepePlugin') }}</option>
  264. {% endif %}
  265. {% if info.final_result == "5" %}
  266. <option value="5" selected="selected">{{ 'EndsNoEvaluation' | get_plugin_lang('SepePlugin') }}</option>
  267. {% else %}
  268. <option value="5">{{ 'EndsNoEvaluation' | get_plugin_lang('SepePlugin') }}</option>
  269. {% endif %}
  270. {% if info.final_result == "6" %}
  271. <option value="6" selected="selected">{{ 'FreeEvaluation' | get_plugin_lang('SepePlugin') }}</option>
  272. {% else %}
  273. <option value="6">{{ 'FreeEvaluation' | get_plugin_lang('SepePlugin') }}</option>
  274. {% endif %}
  275. {% if info.final_result == "7" %}
  276. <option value="7" selected="selected">{{ 'Exempt' | get_plugin_lang('SepePlugin') }}</option>
  277. {% else %}
  278. <option value="7">{{ 'Exempt' | get_plugin_lang('SepePlugin') }}</option>
  279. {% endif %}
  280. </select>
  281. <div class="alert alert-info sepe-message-info sepe-margin-top">
  282. {{ 'FinalResultMessage' | get_plugin_lang('SepePlugin') }}
  283. </div>
  284. </div>
  285. </div>
  286. <div class="form-group">
  287. <label class="control-label col-sm-3">{{ 'FinalQualification' | get_plugin_lang('SepePlugin') }}: </label>
  288. <div class="col-sm-9">
  289. <input class="form-control" type="text" name="final_qualification" value="{{ info.final_qualification }}" />
  290. <div class="alert alert-info sepe-message-info sepe-margin-top">
  291. {{ 'FinalQualificationMessage' | get_plugin_lang('SepePlugin') }}
  292. </div>
  293. </div>
  294. </div>
  295. <div class="form-group">
  296. <label class="control-label col-sm-3">{{ 'FinalScore' | get_plugin_lang('SepePlugin') }}: </label>
  297. <div class="col-sm-9">
  298. <input class="form-control" class="form-control" type="text" name="final_score" value="{{ info.final_score }}" />
  299. <div class="alert alert-info sepe-message-info sepe-margin-top">
  300. {{ 'FinalScoreMessage' | get_plugin_lang('SepePlugin') }}
  301. </div>
  302. </div>
  303. </div>
  304. </div>
  305. </fieldset>
  306. </div>
  307. </div>
  308. </form>
  309. </div>