From 2a6ac32c62a5b0b98ca55ea6f3cec1f5395dc652 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Thu, 15 Feb 2024 11:07:29 +0000 Subject: [PATCH] Bug 34478: Changes for suggestion/suggestion Too much changes needed. Main functionality works again. Some improvements can still be made. Signed-off-by: Jonathan Druart --- .../prog/en/modules/suggestion/suggestion.tt | 125 +++++++++++------- suggestion/suggestion.pl | 51 +++---- 2 files changed, 93 insertions(+), 83 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt index e8149b6e64..9db14cb3a3 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt @@ -96,8 +96,15 @@ [% INCLUDE 'messages.inc' %]
- Edit - Delete + Edit +
+ [% INCLUDE 'csrf-token.inc' %] +
+ + + +
+
@@ -632,19 +639,20 @@
- [% IF ( suggestionid ) %] + [% IF ( need_confirm ) %] - + [% ELSE %] [% END %] Cancel [% ELSE %] + [% IF ( need_confirm ) %] - + [% ELSE %] [% END %] @@ -652,11 +660,11 @@ [% END %]
- [% END # /IF op == 'save' %] + [% END %] [% IF op == 'else' %]

Suggestions management

@@ -711,8 +719,14 @@ [% WRAPPER tab_panels %] [% FOREACH suggestion IN suggestions %] [% WRAPPER tab_panel tabname= suggestion.suggestiontype %] -
- [% INCLUDE 'csrf-token.inc' %] + + [% INCLUDE 'csrf-token.inc' %] + [%# filled by click event %] + +
+
+ [% INCLUDE 'csrf-token.inc' %] + [%# filled by submit %] [% IF suggestion.suggestions.size %]

@@ -845,13 +859,21 @@

- Edit + Edit
@@ -924,11 +946,11 @@ - -
- + + +
@@ -938,11 +960,11 @@ Update item types with: [% PROCESS 'av-build-dropbox.inc' name="suggestion_itemtype", category="SUGGEST_FORMAT", size = 20 %] - -
- + + +
@@ -951,32 +973,32 @@ Update manager Select manager + +
-
-
- +
Delete selected - -
- + + +
Archive selected - -
- + + +
@@ -999,7 +1021,6 @@