specialty-tutorial-edit.tpl 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  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-tutorial-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_tutorial == "1" %}
  11. <input type="hidden" name="action_id" value="{{ action_id }}" />
  12. <input type="hidden" name="specialty_id" value="{{ specialty_id }}" />
  13. <input type="hidden" name="new_tutorial" 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="tutorial_id" value="{{ tutorial_id }}" />
  18. <input type="hidden" name="new_tutorial" 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>{{ 'ClassroomCenter' | get_plugin_lang('SepePlugin') | upper }}</legend>
  43. <div class="form-group">
  44. <label class="control-label col-sm-3">{{ 'CenterOrigin' | get_plugin_lang('SepePlugin') }}: </label>
  45. <div class="col-sm-9">
  46. <input class="form-control" type="text" name="center_origin" value="{{ info.center_origin }}" />
  47. </div>
  48. </div>
  49. <div class="form-group">
  50. <label class="control-label col-sm-3">{{ 'CenterCode' | get_plugin_lang('SepePlugin') }}: </label>
  51. <div class="col-sm-9">
  52. <input class="form-control" type="text" name="center_code" value="{{ info.center_code }}" />
  53. </div>
  54. </div>
  55. </fieldset>
  56. <div class="form-group">
  57. <label class="control-label col-lg-3">{{ 'StartDate' | get_plugin_lang('SepePlugin') }}: </label>
  58. <div class="col-lg-4">
  59. <select name="day_start" class="form-control sepe-slt-date">
  60. <option value=""></option>
  61. {% for i in 1..31 %}
  62. <option value="{{ i }}" {% if day_start == i %} selected="selected" {% endif %} >{{ "%02d"|format(i) }}</option>
  63. {% endfor %}
  64. </select>
  65. /
  66. <select name="month_start" class="form-control sepe-slt-date">
  67. <option value=""></option>
  68. {% for i in 1..12 %}
  69. <option value="{{ i }}" {% if month_start == i %} selected="selected" {% endif %} >{{ "%02d"|format(i) }}</option>
  70. {% endfor %}
  71. </select>
  72. /
  73. <select name="year_start" class="form-control sepe-slt-date">
  74. <option value=""></option>
  75. {% for i in list_year %}
  76. {% if year_start == i %}
  77. <option value="{{ i }}" selected="selected">{{ i }}</option>
  78. {% else %}
  79. <option value="{{ i }}">{{ i }}</option>
  80. {% endif %}
  81. {% endfor %}
  82. </select>
  83. </div>
  84. <div class="alert alert-info sepe-message-info col-lg-5">
  85. {{ 'StartDateMessageTutorial' | get_plugin_lang('SepePlugin') }}
  86. </div>
  87. </div>
  88. <div class="form-group">
  89. <label class="col-lg-3 control-label">{{ 'EndDate' | get_plugin_lang('SepePlugin') }}: </label>
  90. <div class="col-lg-4">
  91. <select name="day_end" class="form-control sepe-slt-date">
  92. <option value=""></option>
  93. {% for i in 1..31 %}
  94. <option value="{{ i }}" {% if day_end == i %} selected="selected" {% endif %} >{{ "%02d"|format(i) }}</option>
  95. {% endfor %}
  96. </select>
  97. /
  98. <select name="month_end" class="form-control sepe-slt-date">
  99. <option value=""></option>
  100. {% for i in 1..12 %}
  101. <option value="{{ i }}" {% if month_end == i %} selected="selected" {% endif %} >{{ "%02d"|format(i) }}</option>
  102. {% endfor %}
  103. </select>
  104. /
  105. <select name="year_end" class="form-control sepe-slt-date">
  106. <option value=""></option>
  107. {% for i in list_year %}
  108. {% if year_end == i %}
  109. <option value="{{ i }}" selected="selected">{{ i }}</option>
  110. {% else %}
  111. <option value="{{ i }}">{{ i }}</option>
  112. {% endif %}
  113. {% endfor %}
  114. </select>
  115. </div>
  116. <div class="alert alert-info sepe-message-info col-lg-5">
  117. {{ 'EndDateMessageTutorial' | get_plugin_lang('SepePlugin') }}
  118. </div>
  119. </div>
  120. </div>
  121. </div>
  122. </form>
  123. </div>