formative-action-edit.tpl 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300
  1. <link rel="stylesheet" type="text/css" href="../resources/plugin.css"/>
  2. <div class="row">
  3. <form class="form-horizontal" action="formative-action-edit.php" method="post" name="data-center-form">
  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>{{ 'Actions' | get_plugin_lang('SepePlugin') }}:</h3></li>
  8. <li>
  9. {% if new_action == "1" %}
  10. <input type="hidden" name="action_id" value="0" />
  11. <input type="hidden" name="course_id" value="{{ course_id }}" />
  12. {% else %}
  13. <input type="hidden" name="action_id" value="{{ info.id }}" />
  14. {% endif %}
  15. <input type="hidden" name="sec_token" value="{{ sec_token }}" />
  16. <input class="btn btn-primary sepe-btn-menu-side" type="submit" value="{{ 'SaveChanges' | get_plugin_lang('SepePlugin') }}" />
  17. </li>
  18. <li>
  19. <input class="btn btn-warning sepe-btn-menu-side" type="reset" value="{{ 'Reset' | get_plugin_lang('SepePlugin') }}" />
  20. </li>
  21. </ul>
  22. </div>
  23. </div>
  24. <div class="col-md-9">
  25. {% if message_info != "" %}
  26. <div class="alert alert-success">
  27. {{ message_info }}
  28. </div>
  29. {% endif %}
  30. {% if message_error != "" %}
  31. <div class="alert alert-danger">
  32. {{ message_error }}
  33. </div>
  34. {% endif %}
  35. <div class="well_border">
  36. <fieldset>
  37. <legend>{{ 'FormativeAction' | get_plugin_lang('SepePlugin') }}</legend>
  38. <div class="well">
  39. <legend><h4>{{ 'ActionIdentifier' | get_plugin_lang('SepePlugin') | upper }}: </h4></legend>
  40. <div class="form-group">
  41. <label class="col-md-3 control-label">{{ 'ActionOrigin' | get_plugin_lang('SepePlugin') }}: </label>
  42. <div class="col-md-2">
  43. <input class="form-control" type="text" name="action_origin" value="{{ info.action_origin }}" />
  44. </div>
  45. </div>
  46. <div class="form-group">
  47. <label class="col-md-3 control-label">{{ 'ActionCode' | get_plugin_lang('SepePlugin') }}: </label>
  48. <div class="col-md-2">
  49. <input class="form-control" type="text" name="action_code" value="{{ info.action_code }}" />
  50. </div>
  51. </div>
  52. </div>
  53. <div class="form-group">
  54. <label class="col-md-3 control-label">{{ 'Situation' | get_plugin_lang('SepePlugin') }}: </label>
  55. <div class="col-md-9">
  56. <select name="situation" class="form-control">
  57. <option value=""></option>
  58. {% if info.situation == "10" %}
  59. <option value="10" selected="selected">{{ 'Situation10' | get_plugin_lang('SepePlugin') }}</option>
  60. {% else %}
  61. <option value="10">{{ 'Situation10' | get_plugin_lang('SepePlugin') }}</option>
  62. {% endif %}
  63. {% if info.situation == "20" %}
  64. <option value="20" selected="selected">{{ 'Situation20' | get_plugin_lang('SepePlugin') }}</option>
  65. {% else %}
  66. <option value="20">{{ 'Situation20' | get_plugin_lang('SepePlugin') }}</option>
  67. {% endif %}
  68. {% if info.situation == "30" %}
  69. <option value="30" selected="selected">{{ 'Situation30' | get_plugin_lang('SepePlugin') }}</option>
  70. {% else %}
  71. <option value="30">{{ 'Situation30' | get_plugin_lang('SepePlugin') }}</option>
  72. {% endif %}
  73. {% if info.situation == "40" %}
  74. <option value="40" selected="selected">{{ 'Situation40' | get_plugin_lang('SepePlugin') }}</option>
  75. {% else %}
  76. <option value="40">{{ 'Situation40' | get_plugin_lang('SepePlugin') }}</option>
  77. {% endif %}
  78. {% if info.situation == "50" %}
  79. <option value="50" selected="selected">{{ 'Situation50' | get_plugin_lang('SepePlugin') }}</option>
  80. {% else %}
  81. <option value="50">{{ 'Situation50' | get_plugin_lang('SepePlugin') }}</option>
  82. {% endif %}
  83. </select>
  84. </div>
  85. </div>
  86. <div class="well">
  87. <legend><h4>{{ 'MainSpecialtyIdentifier' | get_plugin_lang('SepePlugin') | upper }}</h4></legend>
  88. <div class="form-group">
  89. <label class="col-md-3 control-label">{{ 'SpecialtyOrigin' | get_plugin_lang('SepePlugin') }}: </label>
  90. <div class="col-md-9">
  91. <input class="form-control" type="text" name="specialty_origin" value="{{ info.specialty_origin }}" />
  92. </div>
  93. </div>
  94. <div class="form-group">
  95. <label class="col-md-3 control-label">{{ 'ProfessionalArea' | get_plugin_lang('SepePlugin') }}: </label>
  96. <div class="col-md-9">
  97. <input class="form-control" type="text" name="professional_area" value="{{ info.professional_area }}" />
  98. </div>
  99. </div>
  100. <div class="form-group">
  101. <label class="col-md-3 control-label">{{ 'SpecialtyCode' | get_plugin_lang('SepePlugin') }}: </label>
  102. <div class="col-md-9">
  103. <input class="form-control" type="text" name="specialty_code" value="{{ info.specialty_code }}"/>
  104. </div>
  105. </div>
  106. </div>
  107. <div class="form-group">
  108. <label class="col-md-3 control-label">{{ 'Duration' | get_plugin_lang('SepePlugin') }}: </label>
  109. <div class="col-md-2">
  110. <input class="form-control" type="number" name="duration" value="{{ info.duration }}" />
  111. </div>
  112. <div class="col-md-7 alert alert-info sepe-message-info">
  113. {{ 'NumHoursFormativeAction' | get_plugin_lang('SepePlugin') }}
  114. </div>
  115. </div>
  116. <div class="form-group">
  117. <label class="col-md-3 control-label">{{ 'StartDate' | get_plugin_lang('SepePlugin') }}: </label>
  118. <div class="col-md-4">
  119. <select name="day_start" class="form-control sepe-slt-date">
  120. <option value=""></option>
  121. {% for i in 1..31 %}
  122. <option value="{{ i }}" {% if day_start == i %} selected="selected" {% endif %} >{{ "%02d"|format(i) }}</option>
  123. {% endfor %}
  124. </select>
  125. /
  126. <select name="month_start" class="form-control sepe-slt-date">
  127. <option value=""></option>
  128. {% for i in 1..12 %}
  129. <option value="{{ i }}" {% if month_start == i %} selected="selected" {% endif %} >{{ "%02d"|format(i) }}</option>
  130. {% endfor %}
  131. </select>
  132. /
  133. <select name="year_start" class="form-control sepe-slt-date">
  134. <option value=""></option>
  135. {% for i in list_year %}
  136. {% if year_start == i %}
  137. <option value="{{ i }}" selected="selected">{{ i }}</option>
  138. {% else %}
  139. <option value="{{ i }}">{{ i }}</option>
  140. {% endif %}
  141. {% endfor %}
  142. </select>
  143. </div>
  144. <div class="col-md-5 alert alert-info sepe-message-info">
  145. {{ 'StartDateMessage' | get_plugin_lang('SepePlugin') }}
  146. </div>
  147. </div>
  148. <div class="form-group">
  149. <label class="col-md-3 control-label">{{ 'EndDate' | get_plugin_lang('SepePlugin') }}: </label>
  150. <div class="col-md-4">
  151. <select name="day_end" class="form-control sepe-slt-date">
  152. <option value=""></option>
  153. {% for i in 1..31 %}
  154. <option value="{{ i }}" {% if day_end == i %} selected="selected" {% endif %} >{{ "%02d"|format(i) }}</option>
  155. {% endfor %}
  156. </select>
  157. /
  158. <select name="month_end" class="form-control sepe-slt-date">
  159. <option value=""></option>
  160. {% for i in 1..12 %}
  161. <option value="{{ i }}" {% if month_end == i %} selected="selected" {% endif %} >{{ "%02d"|format(i) }}</option>
  162. {% endfor %}
  163. </select>
  164. /
  165. <select name="year_end" class="form-control sepe-slt-date">
  166. <option value=""></option>
  167. {% for i in list_year %}
  168. {% if year_end == i %}
  169. <option value="{{ i }}" selected="selected">{{ i }}</option>
  170. {% else %}
  171. <option value="{{ i }}">{{ i }}</option>
  172. {% endif %}
  173. {% endfor %}
  174. </select>
  175. </div>
  176. <div class="alert alert-info col-md-5 sepe-message-info">
  177. {{ 'EndDateMessage' | get_plugin_lang('SepePlugin') }}
  178. </div>
  179. </div>
  180. <div class="form-group">
  181. <label class="col-md-3 control-label">{{ 'FullItineraryIndicator' | get_plugin_lang('SepePlugin') }}: </label>
  182. <div class="col-md-2">
  183. <select class="form-control" name="full_itinerary_indicator">
  184. <option value=""></option>
  185. {% if info.full_itinerary_indicator == "SI" %}
  186. <option value="SI" selected="selected">SI</option>
  187. {% else %}
  188. <option value="SI">SI</option>
  189. {% endif %}
  190. {% if info.full_itinerary_indicator == "NO" %}
  191. <option value="NO" selected="selected">NO</option>
  192. {% else %}
  193. <option value="NO">NO</option>
  194. {% endif %}
  195. </select>
  196. </div>
  197. <div class="alert alert-info col-md-7 sepe-message-info">
  198. {{ 'FullItineraryIndicatorMessage' | get_plugin_lang('SepePlugin') }}
  199. </div>
  200. </div>
  201. <div class="form-group">
  202. <label class="col-md-3 control-label">{{ 'FinancingType' | get_plugin_lang('SepePlugin') }}: </label>
  203. <div class="col-md-2">
  204. <select name="financing_type" class="form-control">
  205. <option value=""></option>
  206. {% if info.financing_type == "PU" %}
  207. <option value="PU" selected="selected">{{ 'Public' | get_plugin_lang('SepePlugin') }}</option>
  208. {% else %}
  209. <option value="PU">{{ 'Public' | get_plugin_lang('SepePlugin') }}</option>
  210. {% endif %}
  211. {% if info.financing_type == "PR" %}
  212. <option value="PR" selected="selected">{{ 'Private' | get_plugin_lang('SepePlugin') }}</option>
  213. {% else %}
  214. <option value="PR">{{ 'Private' | get_plugin_lang('SepePlugin') }}</option>
  215. {% endif %}
  216. </select>
  217. </div>
  218. <div class="alert alert-info col-md-7 sepe-message-info">
  219. {{ 'FinancingTypeMessage' | get_plugin_lang('SepePlugin') }}
  220. </div>
  221. </div>
  222. <div class="form-group">
  223. <label class="col-md-3 control-label">{{ 'AttendeesCount' | get_plugin_lang('SepePlugin') }}: </label>
  224. <div class="col-md-2">
  225. <input class="form-control" type="number" name="attendees_count" value="{{ info.attendees_count }}" />
  226. </div>
  227. <div class="alert alert-info col-md-7 sepe-message-info">
  228. {{ 'AttendeesCountMessage' | get_plugin_lang('SepePlugin') }}
  229. </div>
  230. </div>
  231. <div class="well">
  232. <legend><h4>{{ 'DescriptionAction' | get_plugin_lang('SepePlugin') | upper }}</h4></legend>
  233. <div class="form-group">
  234. <label class="col-md-3 control-label">{{ 'NameAction' | get_plugin_lang('SepePlugin') }}: </label>
  235. <div class="col-md-9">
  236. <input class="form-control" type="text" name="action_name" value="{{ info.action_name }}" />
  237. <div class="alert alert-info sepe-message-info sepe-margin-top">
  238. {{ 'NameActionMessage' | get_plugin_lang('SepePlugin') }}
  239. </div>
  240. </div>
  241. </div>
  242. <div class="form-group">
  243. <label class="col-md-3 control-label">{{ 'GlobalInfo' | get_plugin_lang('SepePlugin') }}: </label>
  244. <div class="col-md-9">
  245. <textarea class="form-control" name="global_info">{{ info.global_info }}</textarea>
  246. <div class="alert alert-info sepe-message-info sepe-margin-top">
  247. {{ 'GlobalInfoMessage' | get_plugin_lang('SepePlugin') }}
  248. </div>
  249. </div>
  250. </div>
  251. <div class="form-group">
  252. <label class="col-md-3 control-label">{{ 'Schedule' | get_plugin_lang('SepePlugin') }}: </label>
  253. <div class="col-md-9">
  254. <textarea class="form-control" name="schedule">{{ info.schedule }}</textarea>
  255. <div class="alert alert-info sepe-message-info sepe-margin-top">
  256. {{ 'ScheduleMessage' | get_plugin_lang('SepePlugin') }}
  257. </div>
  258. </div>
  259. </div>
  260. <div class="form-group">
  261. <label class="col-md-3 control-label">{{ 'Requirements' | get_plugin_lang('SepePlugin') }}: </label>
  262. <div class="col-md-9">
  263. <textarea class="form-control" name="requirements">{{ info.requirements }}</textarea>
  264. <div class="alert alert-info sepe-message-info sepe-margin-top">
  265. {{ 'RequirementsMessage' | get_plugin_lang('SepePlugin') }}
  266. </div>
  267. </div>
  268. </div>
  269. <div class="form-group">
  270. <label class="col-md-3 control-label">{{ 'ContactAction' | get_plugin_lang('SepePlugin') }}: </label>
  271. <div class="col-md-9">
  272. <textarea class="form-control" name="contact_action">{{ info.contact_action }}</textarea>
  273. <div class="alert alert-info sepe-message-info sepe-margin-top">
  274. {{ 'ContactActionMessage' | get_plugin_lang('SepePlugin') }}
  275. </div>
  276. </div>
  277. </div>
  278. </div>
  279. </fieldset>
  280. </div>
  281. </div>
  282. </form>
  283. </div>