#116 update view

This commit is contained in:
T-Midnight 2019-04-25 13:25:56 +04:00
parent 4fa0c14ae6
commit 2bb5189fff

View File

@ -48,6 +48,7 @@
</div> </div>
<div class="form-group"> <div class="form-group">
<label>Дедлайны показателей:</label> <label>Дедлайны показателей:</label>
<input type="hidden" th:field="*{removedDeadlineIds}"/>
<div class="row" th:each="deadline, rowStat : *{deadlines}"> <div class="row" th:each="deadline, rowStat : *{deadlines}">
<input type="hidden" th:field="*{deadlines[__${rowStat.index}__].id}"/> <input type="hidden" th:field="*{deadlines[__${rowStat.index}__].id}"/>
<div class="col-6 div-deadline-date"> <div class="col-6 div-deadline-date">
@ -59,12 +60,14 @@
th:field="*{deadlines[__${rowStat.index}__].description}"/> th:field="*{deadlines[__${rowStat.index}__].description}"/>
</div> </div>
<div class="col-2"> <div class="col-2">
<a class="btn btn-danger float-right" <button type="submit"
th:onclick="|$('#deadlines${rowStat.index}\\.description').val(''); class="btn btn-danger float-right btn-delete-deadline "
$('#deadlines${rowStat.index}\\.date').val(''); id="removeDeadline" name="removeDeadline"
$('#addDeadline').click();|"><span th:value="${rowStat.index}">
aria-hidden="true"><i class="fa fa-times"/></span> <span aria-hidden="true">
</a> <i class="fa fa-times"/>
</span>
</button>
</div> </div>
</div> </div>
<p th:if="${#fields.hasErrors('deadlines')}" th:errors="*{deadlines}" <p th:if="${#fields.hasErrors('deadlines')}" th:errors="*{deadlines}"