|
@@ -66,7 +66,7 @@
|
|
|
<th>Группа</th>
|
|
|
<th>Специальность</th>
|
|
|
<th>Куратор</th>
|
|
|
- <th>Курс</th>
|
|
|
+ <th>Год приёма</th>
|
|
|
</tr>
|
|
|
</thead>
|
|
|
<tbody>
|
|
@@ -95,29 +95,31 @@
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true" class="icon-cross"></span></button>
|
|
|
<div class="modal-content">
|
|
|
<div class="block">
|
|
|
- <div class="row">
|
|
|
+ <H1>Предметы</H1>
|
|
|
+ <div v-if="requestType === 'PATCH'" class="col-md-12">
|
|
|
+ <label>Id</label>
|
|
|
+ <div class="input-group">
|
|
|
+ <input type="text" class="form-control ID" placeholder="1" :value="selectedRow.ID" disabled="">
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
<div class="form-group">
|
|
|
<label class="col-md-3 control-label">Номер группы</label>
|
|
|
<div class="col-md-9">
|
|
|
- <input type="text" class="form-control" placeholder="362">
|
|
|
+ <input type="text" class="form-control" data-validation="Number" data-validation-allowing="range[100;1000]" placeholder="362" :value="selectedRow.Number">
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
<label class="col-md-3 control-label">Специальность</label>
|
|
|
<div class="col-md-9">
|
|
|
- <select class="">
|
|
|
- <option>00.00.00 Программирование</option>
|
|
|
- <option>11.11.11 Администрирование</option>
|
|
|
- <option>22.22.22 Монтажники</option>
|
|
|
- <option>33.33.33 Пример</option>
|
|
|
- <option>44.44.44 Пример</option>
|
|
|
+ <select :selected="selectedRow.IDSpecialty">
|
|
|
+ <option v-for="s in specilties">${s.Code + " " + s.Name}</option>
|
|
|
</select>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
<label class="col-md-3 control-label">Куратор</label>
|
|
|
<div class="col-md-9">
|
|
|
- <select>
|
|
|
+ <select :selected="selectedRow.IDTeacher">
|
|
|
<option v-for="t in teachers" v-bind:value="t.Surname">${t.Surname}</option>
|
|
|
</select>
|
|
|
</div>
|
|
@@ -125,28 +127,19 @@
|
|
|
<div class="form-group">
|
|
|
<label class="col-md-3 control-label">Форма обучения</label>
|
|
|
<div class="app-radio inline">
|
|
|
- <label><input type="radio" name="app-radio-2" value="1" checked> Бюджет</label>
|
|
|
- </div>
|
|
|
- <div class="app-radio inline">
|
|
|
- <label><input type="radio" name="app-radio-2" value="0"> Внебюджет</label>
|
|
|
+ <label><input type="radio" name="app-radio-2" value="1" checked :checked="selectedRow.IsBudget==0"> Бюджет</label>
|
|
|
+ <label><input type="radio" name="app-radio-2" value="0" :checked="selectedRow.IsBudget==1"> Внебюджет</label>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
<label class="col-md-3 control-label">Год приема</label>
|
|
|
<div class="col-md-9">
|
|
|
- <input type="text" class="form-control" placeholder="2020">
|
|
|
+ <input type="text" class="form-control" placeholder="2020" data-validation="Number" data-validation-allowing="range[1900;2100]">
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="form-group">
|
|
|
- <label class="col-md-3 control-label">Год выпуска</label>
|
|
|
- <div class="col-md-9">
|
|
|
- <input type="text" class="form-control" placeholder="2024">
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="col-md-12">
|
|
|
- <br>
|
|
|
- <button type="button" class="btn btn-default" onclick="addSubject()">Добавить модуль</button>
|
|
|
- </div>
|
|
|
+ <div class="modal-footer">
|
|
|
+ <button type="button" class="btn btn-link" data-dismiss="modal">Закрыть</button>
|
|
|
+ <button type="submit" class="btn btn-default" onclick="addSubject()">Добавить</button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -168,6 +161,21 @@
|
|
|
<script type="text/javascript" src="../static/js/app.js"></script>
|
|
|
<script type="text/javascript" src="../static/js/app_plugins.js"></script>
|
|
|
<script type="text/javascript" src="../static/js/app_demo.js"></script>
|
|
|
+ <script type="text/javascript" src="../static/js/vendor/form-validator/jquery.form-validator.min.js"></script>
|
|
|
+
|
|
|
+
|
|
|
<!-- END APP SCRIPTS -->
|
|
|
+ <script type="text/javascript">
|
|
|
+ $.validate({
|
|
|
+ modules : 'date,file,location',
|
|
|
+ onValidate: function(){
|
|
|
+
|
|
|
+ delayBeforeFire(function(){
|
|
|
+ app.spy();
|
|
|
+ },100);
|
|
|
+
|
|
|
+ }
|
|
|
+ });
|
|
|
+ </script>
|
|
|
</body>
|
|
|
</html>
|