aboutsummaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authormrfoxygmfr <mrfoxygmfr@sch9.ru>2025-05-04 11:55:51 +0300
committermrfoxygmfr <mrfoxygmfr@sch9.ru>2025-05-04 11:55:51 +0300
commit185c9d3102b401634bba4717b86dc0fbf3f1a039 (patch)
treec2f87543e6af1505602347c54e24a77c377cb733 /src/main
parent47e70356bc1b6533e6a7c512c6252f8b141d4a4f (diff)
fix(templates): new operation can be created only from partner
Diffstat (limited to 'src/main')
-rw-r--r--src/main/resources/templates/operations.html5
-rw-r--r--src/main/resources/templates/partnerEdit.html3
2 files changed, 3 insertions, 5 deletions
diff --git a/src/main/resources/templates/operations.html b/src/main/resources/templates/operations.html
index e310992..1c6aa33 100644
--- a/src/main/resources/templates/operations.html
+++ b/src/main/resources/templates/operations.html
@@ -6,11 +6,6 @@
<div th:replace="~{common :: page-header}"></div>
<div class="indent">
- <form method="get" action="/newOperation">
- <button id="newOperationBtn" type="submit" class="btn btn-primary">Создать новую операцию</button>
- </form>
- <br>
-
<form method="get" action="/operations">
<table class="table">
<thead class="theme-dark">
diff --git a/src/main/resources/templates/partnerEdit.html b/src/main/resources/templates/partnerEdit.html
index 356e42b..efa935b 100644
--- a/src/main/resources/templates/partnerEdit.html
+++ b/src/main/resources/templates/partnerEdit.html
@@ -14,6 +14,9 @@
<a th:href="'/partnerContacts/' + ${partner.getId()}">
<button class="btn btn-primary">Контактные лица партнера</button>
</a><br><br>
+ <a th:href="@{/newOperation(partnerId=${partner.getId()})}">
+ <button class="btn btn-primary">Создать операцию</button>
+ </a><br><br>
</div>
<form method="post" action="/partner">