#21 -- Save indicator values
This commit is contained in:
parent
9a6e8e1478
commit
a4307ea5a0
@ -1,9 +1,10 @@
|
|||||||
<html
|
<html
|
||||||
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" xmlns:th="http://www.w3.org/1999/xhtml"
|
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" xmlns:th="http://www.w3.org/1999/xhtml"
|
||||||
|
xmlns:sec="http://www.w3.org/1999/xhtml"
|
||||||
layout:decorate="~{default}">
|
layout:decorate="~{default}">
|
||||||
<div class="container" layout:fragment="content">
|
<div class="container" layout:fragment="content">
|
||||||
<h3>Редактирование показателя</h3>
|
<h3>Редактирование показателя</h3>
|
||||||
<h3 th:text="${reportValue.indicator.name}"></h3>
|
<h3 th:text="${reportValue.indicator.name + '(' + reportValue.indicator.max + ')'}"></h3>
|
||||||
|
|
||||||
<form action="#" th:action="@{/report-value/save-report-value}"
|
<form action="#" th:action="@{/report-value/save-report-value}"
|
||||||
th:object="${reportValue}" method="post">
|
th:object="${reportValue}" method="post">
|
||||||
@ -64,6 +65,16 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="row" sec:authorize="hasRole('ROLE_MANAGER')">
|
||||||
|
<div class="col col-md-6">
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="val" class="form-label">Получаемый балл</label>
|
||||||
|
<input type="text" class="form-control" id="val" th:field="*{indicatorValue}" rows="5"></input>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<button name="save" type="submit" class="btn btn-outline-dark">Сохранить</button>
|
<button name="save" type="submit" class="btn btn-outline-dark">Сохранить</button>
|
||||||
<a th:href="${'/report/edit-report/' + reportValue.reportId}" class="btn btn-outline-dark">Отмена</a>
|
<a th:href="${'/report/edit-report/' + reportValue.reportId}" class="btn btn-outline-dark">Отмена</a>
|
||||||
</form>
|
</form>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user