aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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">