formative-action.tpl 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270
  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. <div class="col-md-3">
  5. <div id="course_category_well" class="well">
  6. <ul class="nav nav-list">
  7. <li class="nav-header"><h3>{{ 'Options' | get_plugin_lang('SepePlugin') }}:</h3></li>
  8. <li class="sepe-edit-link">
  9. <a href="formative-action-edit.php?action_id={{ action_id }}">{{ 'ActionEdit' | get_plugin_lang('SepePlugin') }}</a>
  10. </li>
  11. <li class="sepe-delete-link">
  12. <input type="hidden" id="action_id" value="{{ action_id }}" />
  13. <input type="hidden" id="confirmDeleteAction" value="{{ 'confirmDeleteAction' | get_plugin_lang('SepePlugin') }}" />
  14. <a href="formative-action-delete.php" id="delete-action">{{ 'DeleteAction' | get_plugin_lang('SepePlugin') }}</a>
  15. </li>
  16. <li class="sepe-list-link">
  17. <a href="formative-actions-list.php">{{ 'ActionsList' | get_plugin_lang('SepePlugin') }}</a>
  18. </li>
  19. </ul>
  20. </div>
  21. </div>
  22. <div class="col-md-9">
  23. {% if message_info != "" %}
  24. <div class="alert alert-success">
  25. {{ message_info }}
  26. </div>
  27. {% endif %}
  28. {% if message_error != "" %}
  29. <div class="alert alert-danger">
  30. {{ message_error }}
  31. </div>
  32. {% endif %}
  33. <div class="well_border">
  34. <form class="form-horizontal">
  35. <fieldset>
  36. <legend>{{ 'FormativeAction' | get_plugin_lang('SepePlugin') }}:</legend>
  37. {% if info != false %}
  38. <div class="well">
  39. <legend><h4>{{ 'ActionIdentifier' | get_plugin_lang('SepePlugin') }}: </h4></legend>
  40. <div class="form-group">
  41. <label class="control-label col-sm-3">{{ 'ActionOrigin' | get_plugin_lang('SepePlugin') }}:</label>
  42. <div class="col-sm-9">
  43. <label class="sepe-input-text">{{ info.action_origin|e }}</label>
  44. </div>
  45. </div>
  46. <div class="form-group">
  47. <label class="control-label col-sm-3">{{ 'ActionCode' | get_plugin_lang('SepePlugin') }}: </label>
  48. <div class="col-sm-9">
  49. <label class="sepe-input-text">{{ info.action_code|e }}</label>
  50. </div>
  51. </div>
  52. </div>
  53. <div class="form-group">
  54. <label class="control-label col-sm-3">{{ 'Situation' | get_plugin_lang('SepePlugin') }}: </label>
  55. <div class="col-sm-9">
  56. <label class="sepe-input-text">
  57. {% if info.situation == "10" %}
  58. 10-Solicitada Autorización
  59. {% endif %}
  60. {% if info.situation == "20" %}
  61. 20-Programada/Autorizada
  62. {% endif %}
  63. {% if info.situation == "30" %}
  64. 30-Iniciada
  65. {% endif %}
  66. {% if info.situation == "40" %}
  67. 40-Finalizada
  68. {% endif %}
  69. {% if info.situation == "50" %}
  70. 50-Cancelada
  71. {% endif %}
  72. </label>
  73. </div>
  74. </div>
  75. <div class="well sepe-subfield">
  76. <legend><h4>{{ 'MainSpecialtyIdentifier' | get_plugin_lang('SepePlugin') }}</h4></legend>
  77. <div class="form-group">
  78. <label class="control-label col-sm-3">{{ 'SpecialtyOrigin' | get_plugin_lang('SepePlugin') }}: </label>
  79. <div class="col-sm-9">
  80. <label class="sepe-input-text">{{ info.specialty_origin|e }}</label>
  81. </div>
  82. </div>
  83. <div class="form-group">
  84. <label class="control-label col-sm-3">{{ 'ProfessionalArea' | get_plugin_lang('SepePlugin') }}: </label>
  85. <div class="col-sm-9">
  86. <label class="sepe-input-text">{{ info.professional_area|e }}</label>
  87. </div>
  88. </div>
  89. <div class="form-group">
  90. <label class="control-label col-sm-3">{{ 'SpecialtyCode' | get_plugin_lang('SepePlugin') }}: </label>
  91. <div class="col-sm-9">
  92. <label class="sepe-input-text">{{ info.specialty_code|e }}</label>
  93. </div>
  94. </div>
  95. </div>
  96. <div class="form-group">
  97. <label class="control-label col-sm-3">{{ 'Duration' | get_plugin_lang('SepePlugin') }}: </label>
  98. <div class="col-sm-9">
  99. <label class="sepe-input-text">
  100. {% if info.duration > 0 %}
  101. {{ info.duration }}
  102. {% else %}
  103. <i>{{ 'Unspecified' | get_plugin_lang('SepePlugin') }}</i>
  104. {% endif %}
  105. </label>
  106. </div>
  107. </div>
  108. <div class="form-group">
  109. <label class="control-label col-sm-3">{{ 'StartDate' | get_plugin_lang('SepePlugin') }}: </label>
  110. <div class="col-sm-9">
  111. <label class="sepe-input-text">
  112. {% if info.start_date == "0000-00-00" %}
  113. <i>{{ 'Unspecified' | get_plugin_lang('SepePlugin') }}</i>
  114. {% else %}
  115. {{ start_date }}
  116. {% endif %}
  117. </label>
  118. </div>
  119. </div>
  120. <div class="form-group">
  121. <label class="control-label col-sm-3">{{ 'EndDate' | get_plugin_lang('SepePlugin') }}: </label>
  122. <div class="col-sm-9">
  123. <label class="sepe-input-text">
  124. {% if info.end_date == "0000-00-00" %}
  125. <i>{{ 'Unspecified' | get_plugin_lang('SepePlugin') }}</i>
  126. {% else %}
  127. {{ end_date }}
  128. {% endif %}
  129. </label>
  130. </div>
  131. </div>
  132. <div class="form-group">
  133. <label class="control-label col-sm-3">{{ 'FullItineraryIndicator' | get_plugin_lang('SepePlugin') }}: </label>
  134. <div class="col-sm-9">
  135. <label class="sepe-input-text">{{ info.full_itinerary_indicator }}</label>
  136. </div>
  137. </div>
  138. <div class="form-group">
  139. <label class="control-label col-sm-3">{{ 'FinancingType' | get_plugin_lang('SepePlugin') }}: </label>
  140. <div class="col-sm-9">
  141. <label class="sepe-input-text">
  142. {% if info.financing_type == "PU" %}
  143. Pública
  144. {% endif %}
  145. {% if info.financing_type == "PR" %}
  146. Privada
  147. {% endif %}
  148. {% if info.financing_type == "" %}
  149. <i>{{ 'Unspecified' | get_plugin_lang('SepePlugin') }}</i>
  150. {% endif %}
  151. </label>
  152. </div>
  153. </div>
  154. <div class="form-group">
  155. <label class="control-label col-sm-3">{{ 'AttendeesCount' | get_plugin_lang('SepePlugin') }}: </label>
  156. <div class="col-sm-9">
  157. <label class="sepe-input-text">{{ info.attendees_count }}</label>
  158. </div>
  159. </div>
  160. <div class="well">
  161. <legend><h4>{{ 'DescriptionAction' | get_plugin_lang('SepePlugin') }}</h4></legend>
  162. <div class="form-group">
  163. <label class="control-label col-sm-3">{{ 'NameAction' | get_plugin_lang('SepePlugin') }}: </label>
  164. <div class="col-sm-9">
  165. <label class="sepe-input-text">{{ info.action_name|e }}</label>
  166. </div>
  167. </div>
  168. <div class="form-group">
  169. <label class="control-label col-sm-3">{{ 'GlobalInfo' | get_plugin_lang('SepePlugin') }}: </label>
  170. <div class="col-sm-9">
  171. <label class="sepe-input-text">{{ info.global_info|e }}</label>
  172. </div>
  173. </div>
  174. <div class="form-group">
  175. <label class="control-label col-sm-3">{{ 'Schedule' | get_plugin_lang('SepePlugin') }}: </label>
  176. <div class="col-sm-9">
  177. <label class="sepe-input-text">{{ info.schedule|e }}</label>
  178. </div>
  179. </div>
  180. <div class="form-group">
  181. <label class="control-label col-sm-3">{{ 'Requirements' | get_plugin_lang('SepePlugin') }}: </label>
  182. <div class="col-sm-9">
  183. <label class="sepe-input-text">{{ info.requirements|e }}</label>
  184. </div>
  185. </div>
  186. <div class="form-group">
  187. <label class="control-label col-sm-3">{{ 'ContactAction' | get_plugin_lang('SepePlugin') }}: </label>
  188. <div class="col-sm-9">
  189. <label class="sepe-input-text">{{ info.contact_action|e }}</label>
  190. </div>
  191. </div>
  192. </div>
  193. {% else %}
  194. <div class="error-message">{{ 'NoFormativeAction' | get_plugin_lang('SepePlugin') }}</div>
  195. {% endif %}
  196. </fieldset>
  197. </form>
  198. </div>
  199. <div class="well_border">
  200. <form class="form-horizontal">
  201. <fieldset>
  202. <legend>{{ 'Specialtys' | get_plugin_lang('SepePlugin') }}:
  203. <a href="specialty-action-edit.php?new_specialty=1&action_id={{ action_id }}" class="btn btn-info pull-right">{{ 'CreateSpecialty' | get_plugin_lang('SepePlugin') }}</a>
  204. </legend>
  205. <input type="hidden" id="confirmDeleteSpecialty" value="{{ 'confirmDeleteSpecialty' | get_plugin_lang('SepePlugin') }}" />
  206. {% for specialty in listSpecialty %}
  207. <div class="form-group">
  208. <label class="control-label col-sm-3">{{ 'Specialty' | get_plugin_lang('SepePlugin') }}: </label>
  209. <div class="col-sm-9">
  210. <table width="100%" class="sepe-input-text">
  211. <tr>
  212. <td>{{ specialty.specialty_origin }} {{ specialty.professional_area }} {{ specialty.specialty_code }}</td>
  213. <td>
  214. <a href="#" class="btn btn-danger btn-sm pull-right sepe-margin-side delete-specialty" id="specialty{{ specialty.id }}">{{ 'Delete' | get_plugin_lang('SepePlugin') }}</a>
  215. <a href="specialty-action-edit.php?new_specialty=0&specialty_id={{ specialty.id }}&action_id={{ action_id }}" class="btn btn-warning btn-sm pull-right sepe-margin-side">{{ 'Edit' | get_plugin_lang('SepePlugin') }}</a>
  216. </td>
  217. </tr>
  218. </table>
  219. </div>
  220. </div>
  221. {% endfor %}
  222. </fieldset>
  223. </form>
  224. </div>
  225. <div class="well_border">
  226. <form class="form-horizontal">
  227. <fieldset>
  228. <legend>{{ 'Participants' | get_plugin_lang('SepePlugin') }}:
  229. <a href="participant-action-edit.php?new_participant=1&action_id={{ action_id }}" class="btn btn-info pull-right">{{ 'CreateParticipant' | get_plugin_lang('SepePlugin') }}</a>
  230. </legend>
  231. <input type="hidden" id="confirmDeleteParticipant" value="{{ 'confirmDeleteParticipant' | get_plugin_lang('SepePlugin') }}" />
  232. {% for participant in listParticipant %}
  233. <div class="form-group">
  234. <label class="control-label col-sm-3">{{ 'Participant' | get_plugin_lang('SepePlugin') }}: </label>
  235. <div class="col-sm-9">
  236. <table width="100%" class="sepe-input-text">
  237. <tr>
  238. <td>{{ participant.firstname }} {{ participant.lastname }} </td>
  239. <td>{{ participant.document_number }} {{ participant.documente_letter }} </td>
  240. <td>
  241. <a href="#" class="btn btn-danger btn-sm pull-right sepe-margin-side delete-participant" id="participant{{ participant.id }}">{{ 'Delete' | get_plugin_lang('SepePlugin') }}</a>
  242. <a href="participant-action-edit.php?new_participant=0&participant_id={{ participant.id }}&action_id={{ action_id }}" class="btn btn-warning btn-sm pull-right sepe-margin-side">{{ 'Edit' | get_plugin_lang('SepePlugin') }}</a>
  243. </td>
  244. </tr>
  245. </table>
  246. </div>
  247. </div>
  248. {% endfor %}
  249. </fieldset>
  250. </form>
  251. </div>
  252. </div>
  253. </div>