Bug 22990: Fix template toolkit syntax issues in shelves_results.tt

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
David Cook 2022-05-11 07:06:55 +00:00 committed by Tomas Cohen Arazi
parent 30a763a9be
commit 75d66cd266
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -39,7 +39,7 @@
[%~ public = public | html ~%] [%~ public = public | html ~%]
[%~ IF can_manage_shelf ~%] [%~ IF can_manage_shelf ~%]
[%~ action_block = '<form action="shelves.pl" method="get">' ~%] [%~ action_block = '<form action="shelves.pl" method="get">' ~%]
[%~ action_block = action_block _ '[% INCLUDE 'csrf-token.inc' %]' ~%] [%~ action_block = BLOCK ~%][%~ action_block | $raw ~%][%~ INCLUDE 'csrf-token.inc' | trim ~%][%~ END ~%]
[%~ action_block = action_block _ '<input type="hidden" name="shelfnumber" value="' _ shelfnumber _ '" />' ~%] [%~ action_block = action_block _ '<input type="hidden" name="shelfnumber" value="' _ shelfnumber _ '" />' ~%]
[%~ action_block = action_block _ '<input type="hidden" name="op" value="edit_form" />' ~%] [%~ action_block = action_block _ '<input type="hidden" name="op" value="edit_form" />' ~%]
[%~ action_block = action_block _ '<input type="hidden" name="public" value="' _ public _ '" />' ~%] [%~ action_block = action_block _ '<input type="hidden" name="public" value="' _ public _ '" />' ~%]
@ -49,7 +49,7 @@
[%~ END ~%] [%~ END ~%]
[%~ IF can_delete_shelf ~%] [%~ IF can_delete_shelf ~%]
[%~ action_block = action_block _ ' <form action="shelves.pl" method="post">' ~%] [%~ action_block = action_block _ ' <form action="shelves.pl" method="post">' ~%]
[%~ action_block = action_block _ '[% INCLUDE 'csrf-token.inc' %]' ~%] [%~ action_block = BLOCK ~%][%~ action_block | $raw ~%][%~ INCLUDE 'csrf-token.inc' | trim ~%][%~ END ~%]
[%~ action_block = action_block _ '<input type="hidden" name="shelves" value="1" />' ~%] [%~ action_block = action_block _ '<input type="hidden" name="shelves" value="1" />' ~%]
[%~ action_block = action_block _ '<input type="hidden" name="op" value="delete" />' ~%] [%~ action_block = action_block _ '<input type="hidden" name="op" value="delete" />' ~%]
[%~ action_block = action_block _ '<input type="hidden" name="shelfnumber" value="' _ shelfnumber _ '" />' ~%] [%~ action_block = action_block _ '<input type="hidden" name="shelfnumber" value="' _ shelfnumber _ '" />' ~%]
@ -72,4 +72,5 @@
[%~ SET action_block = 'None' ~%] [%~ SET action_block = 'None' ~%]
[%~ END ~%] [%~ END ~%]
[%~ To.json(action_block) | $raw ~%] [%~ To.json(action_block) | $raw ~%]
[%~ END ~%] [%~ END ~%]