#21 -- Save indicator values

This commit is contained in:
Anton Romanov 2025-04-15 22:52:57 +04:00
parent 9a6e8e1478
commit a4307ea5a0

View File

@ -1,9 +1,10 @@
<html
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}">
<div class="container" layout:fragment="content">
<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}"
th:object="${reportValue}" method="post">
@ -64,6 +65,16 @@
</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>
<a th:href="${'/report/edit-report/' + reportValue.reportId}" class="btn btn-outline-dark">Отмена</a>
</form>