specialty-classroom-edit.tpl 5.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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-classroom-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_classroom == "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_classroom" 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="classroom_id" value="{{ classroom_id }}" />
  18. <input type="hidden" name="new_classroom" 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. {% if new_classroom == "1" %}
  41. <div class="well_border">
  42. <div class="form-group">
  43. <label class="control-label col-sm-3">{{ 'UseExistingCenter' | get_plugin_lang('SepePlugin') }}: </label>
  44. <div class="col-sm-9">
  45. <select id="slt_centers_exists" class="chzn-select" style="width:100%" name="slt_centers_exists">
  46. <option value="1" selected="selected">{{ 'UseExisting' | get_plugin_lang('SepePlugin') }}</option>
  47. <option value="0">{{ 'CreateNewCenter' | get_plugin_lang('SepePlugin') }}</option>
  48. </select>
  49. </div>
  50. </div>
  51. </div>
  52. <div class="well_border" id="centers-list-layer">
  53. <fieldset>
  54. <legend>{{ 'CenterList' | get_plugin_lang('SepePlugin') }}</legend>
  55. <div class="form-group">
  56. <label class="control-label col-sm-3">{{ 'Center' | get_plugin_lang('SepePlugin') }}: </label>
  57. <div class="col-sm-9">
  58. <select name="exists_center_id" class="chzn-select" style="width:100%">
  59. <option value="" selected="selected"></option>
  60. {% for center in listExistsCenters %}
  61. <option value="{{ center.id }}">{{ center.center_origin }} {{ center.center_code }}</option>
  62. {% endfor %}
  63. </select>
  64. </div>
  65. </div>
  66. </fieldset>
  67. </div>
  68. <div class="well_border" style="display:none" id="center-data-layer">
  69. {% else %}
  70. <div class="well_border" id="center-data-layer">
  71. {% endif %}
  72. <fieldset>
  73. <legend>{{ 'ClassroomCenter' | get_plugin_lang('SepePlugin') | upper }}</legend>
  74. <div class="form-group">
  75. <label class="control-label col-sm-3">{{ 'CenterOrigin' | get_plugin_lang('SepePlugin') }}: </label>
  76. <div class="col-sm-2">
  77. <input class="form-control" type="text" name="center_origin" value="{{ info.center_origin }}" />
  78. </div>
  79. </div>
  80. <div class="form-group">
  81. <label class="control-label col-sm-3">{{ 'CenterCode' | get_plugin_lang('SepePlugin') }}: </label>
  82. <div class="col-sm-3">
  83. <input class="form-control" type="text" name="center_code" value="{{ info.center_code }}" />
  84. </div>
  85. </div>
  86. </fieldset>
  87. </div>
  88. </div>
  89. </form>
  90. </div>