Lines 39-45
Link Here
|
39 |
[%~ public = public | html ~%] |
39 |
[%~ public = public | html ~%] |
40 |
[%~ IF can_manage_shelf ~%] |
40 |
[%~ IF can_manage_shelf ~%] |
41 |
[%~ action_block = '<form action="shelves.pl" method="get">' ~%] |
41 |
[%~ action_block = '<form action="shelves.pl" method="get">' ~%] |
42 |
[%~ action_block = action_block _ '[% INCLUDE 'csrf-token.inc' %]' ~%] |
42 |
[%~ action_block = BLOCK ~%][%~ action_block | $raw ~%][%~ INCLUDE 'csrf-token.inc' | trim ~%][%~ END ~%] |
43 |
[%~ action_block = action_block _ '<input type="hidden" name="shelfnumber" value="' _ shelfnumber _ '" />' ~%] |
43 |
[%~ action_block = action_block _ '<input type="hidden" name="shelfnumber" value="' _ shelfnumber _ '" />' ~%] |
44 |
[%~ action_block = action_block _ '<input type="hidden" name="op" value="edit_form" />' ~%] |
44 |
[%~ action_block = action_block _ '<input type="hidden" name="op" value="edit_form" />' ~%] |
45 |
[%~ action_block = action_block _ '<input type="hidden" name="public" value="' _ public _ '" />' ~%] |
45 |
[%~ action_block = action_block _ '<input type="hidden" name="public" value="' _ public _ '" />' ~%] |
Lines 49-55
Link Here
|
49 |
[%~ END ~%] |
49 |
[%~ END ~%] |
50 |
[%~ IF can_delete_shelf ~%] |
50 |
[%~ IF can_delete_shelf ~%] |
51 |
[%~ action_block = action_block _ ' <form action="shelves.pl" method="post">' ~%] |
51 |
[%~ action_block = action_block _ ' <form action="shelves.pl" method="post">' ~%] |
52 |
[%~ action_block = action_block _ '[% INCLUDE 'csrf-token.inc' %]' ~%] |
52 |
[%~ action_block = BLOCK ~%][%~ action_block | $raw ~%][%~ INCLUDE 'csrf-token.inc' | trim ~%][%~ END ~%] |
53 |
[%~ action_block = action_block _ '<input type="hidden" name="shelves" value="1" />' ~%] |
53 |
[%~ action_block = action_block _ '<input type="hidden" name="shelves" value="1" />' ~%] |
54 |
[%~ action_block = action_block _ '<input type="hidden" name="op" value="delete" />' ~%] |
54 |
[%~ action_block = action_block _ '<input type="hidden" name="op" value="delete" />' ~%] |
55 |
[%~ action_block = action_block _ '<input type="hidden" name="shelfnumber" value="' _ shelfnumber _ '" />' ~%] |
55 |
[%~ action_block = action_block _ '<input type="hidden" name="shelfnumber" value="' _ shelfnumber _ '" />' ~%] |
Lines 72-75
Link Here
|
72 |
[%~ SET action_block = 'None' ~%] |
72 |
[%~ SET action_block = 'None' ~%] |
73 |
[%~ END ~%] |
73 |
[%~ END ~%] |
74 |
[%~ To.json(action_block) | $raw ~%] |
74 |
[%~ To.json(action_block) | $raw ~%] |
|
|
75 |
|
75 |
[%~ END ~%] |
76 |
[%~ END ~%] |
76 |
- |
|
|