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:
parent
30a763a9be
commit
75d66cd266
1 changed files with 3 additions and 2 deletions
|
@ -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 ~%]
|
||||||
|
|
Loading…
Reference in a new issue