21-rating #22

Merged
romanov73 merged 33 commits from 21-rating into aspir 2025-04-15 23:18:30 +04:00
Showing only changes of commit a4307ea5a0 - Show all commits

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>