|
|
|
@ -1,7 +1,7 @@
|
|
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html lang="en"
|
|
|
|
|
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
|
|
|
|
|
layout:decorator="default" xmlns:th="http://www.w3.org/1999/xhtml">
|
|
|
|
|
layout:decorator="default" xmlns:th="http://www.w3.org/1999/xhtml" xmlns="http://www.w3.org/1999/html">
|
|
|
|
|
<head>
|
|
|
|
|
|
|
|
|
|
</head>
|
|
|
|
@ -26,7 +26,7 @@
|
|
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col-lg-12">
|
|
|
|
|
<form method="post" th:action="@{'/papers/paper?id='+ *{id == null ? '' : id} + ''}"
|
|
|
|
|
<form id="paper-form" method="post" th:action="@{'/papers/paper?id='+ *{id == null ? '' : id} + ''}"
|
|
|
|
|
th:object="${paperDto}">
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col-md-6 col-sm-12">
|
|
|
|
@ -57,11 +57,33 @@
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label>Дедлайн:</label>
|
|
|
|
|
<input type="date" class="form-control" name="deadline" th:field="*{nextDeadline}"/>
|
|
|
|
|
<p th:if="${#fields.hasErrors('nextDeadline')}" th:errors="*{nextDeadline}"
|
|
|
|
|
<label>Дедлайны:</label>
|
|
|
|
|
<div class="row" th:each="deadline, rowStat : *{deadlines}">
|
|
|
|
|
<input type="hidden" th:field="*{deadlines[__${rowStat.index}__].id}"/>
|
|
|
|
|
<div class="col-6">
|
|
|
|
|
<input type="date" class="form-control" name="deadline"
|
|
|
|
|
th:field="*{deadlines[__${rowStat.index}__].date}"/>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-5">
|
|
|
|
|
<input class="form-control" type="text" placeholder="Описание"
|
|
|
|
|
th:field="*{deadlines[__${rowStat.index}__].description}"/>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-1">
|
|
|
|
|
<a class="btn btn-danger float-right"
|
|
|
|
|
th:onclick="|$('#deadlines${rowStat.index}\\.description').val('');
|
|
|
|
|
$('#deadlines${rowStat.index}\\.date').val('');
|
|
|
|
|
$('#addDeadline').click();|"><span
|
|
|
|
|
aria-hidden="true"><i class="fa fa-times"/></span>
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<p th:if="${#fields.hasErrors('deadlines')}" th:errors="*{deadlines}"
|
|
|
|
|
class="alert alert-danger">Incorrect title</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<input type="submit" id="addDeadline" name="addDeadline" class="btn btn-primary" value="Добавить
|
|
|
|
|
дедлайн"/>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="form-check">
|
|
|
|
|
<input type="checkbox" class="form-check-input" id="locked"
|
|
|
|
@ -94,78 +116,6 @@
|
|
|
|
|
<p th:if="${#fields.hasErrors('authors')}" th:errors="*{authors}"
|
|
|
|
|
class="alert alert-danger">Incorrect title</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="myModal1" class="modal fade">
|
|
|
|
|
<div class="modal-dialog">
|
|
|
|
|
<div class="modal-content">
|
|
|
|
|
<div class="modal-header">
|
|
|
|
|
<h4 class="modal-title">Авторы статьи</h4>
|
|
|
|
|
<button type="button" class="close" data-dismiss="modal"
|
|
|
|
|
aria-hidden="true">×
|
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="modal-body">
|
|
|
|
|
<table class="table">
|
|
|
|
|
<thead>
|
|
|
|
|
<tr>
|
|
|
|
|
<th>Фамилия</th>
|
|
|
|
|
<th>Имя</th>
|
|
|
|
|
<th>Отчество</th>
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>Иванов</td>
|
|
|
|
|
<td>Иван</td>
|
|
|
|
|
<td>Иванович</td>
|
|
|
|
|
<td>
|
|
|
|
|
<span class="table-remove"><button type="button"
|
|
|
|
|
class="btn btn-danger btn-rounded btn-sm my-0">
|
|
|
|
|
<i class="fa fa-times"/>
|
|
|
|
|
</button>
|
|
|
|
|
</span>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>text</td>
|
|
|
|
|
<td>text</td>
|
|
|
|
|
<td>text</td>
|
|
|
|
|
<td>
|
|
|
|
|
<span class="table-remove">
|
|
|
|
|
<button type="button"
|
|
|
|
|
class="btn btn-danger btn-rounded btn-sm my-0">
|
|
|
|
|
<i class="fa fa-times"/>
|
|
|
|
|
</button>
|
|
|
|
|
</span>
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<div class="dropdown">
|
|
|
|
|
<button class="btn btn-primary dropdown-toggle"
|
|
|
|
|
type="button" data-toggle="dropdown">Выберите
|
|
|
|
|
автора
|
|
|
|
|
<span class="caret"></span></button>
|
|
|
|
|
<ul class="dropdown-menu">
|
|
|
|
|
<input class="form-control" id="myInput" type="text"
|
|
|
|
|
placeholder="Search.."/>
|
|
|
|
|
<li><a href="#">Иванов</a></li>
|
|
|
|
|
<li><a href="#">Смирнов</a></li>
|
|
|
|
|
<li><a href="#">Кузнецов</a></li>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="modal-footer">
|
|
|
|
|
<button type="button" class="btn btn-primary">Сохранить изменения
|
|
|
|
|
</button>
|
|
|
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">
|
|
|
|
|
Отмена
|
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-md-3 offset-md-3 col-sm-12 offset-sm-0">
|
|
|
|
|
<div class="form-group">
|
|
|
|
@ -178,7 +128,7 @@
|
|
|
|
|
<div class="clearfix"></div>
|
|
|
|
|
<div class="col-lg-12">
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<button id="sendMessageButton" class="btn btn-success text-uppercase"
|
|
|
|
|
<button id="sendMessageButton" name="save" class="btn btn-success text-uppercase"
|
|
|
|
|
type="submit">
|
|
|
|
|
Сохранить
|
|
|
|
|
</button>
|
|
|
|
|