Lines 35-58
Link Here
|
35 |
[%~ SET action_block = '' ~%] |
35 |
[%~ SET action_block = '' ~%] |
36 |
[%~ IF can_manage_shelf OR can_delete_shelf ~%] |
36 |
[%~ IF can_manage_shelf OR can_delete_shelf ~%] |
37 |
[%~ IF can_manage_shelf ~%] |
37 |
[%~ IF can_manage_shelf ~%] |
38 |
[%~ action_block = '<form action="shelves.pl" method="get">' | html ~%] |
38 |
[%~ action_block = '<form action="shelves.pl" method="get">' ~%] |
39 |
[%~ action_block = action_block _ '<input type="hidden" name="shelfnumber" value="' _ shelfnumber _ '" />' | html ~%] |
39 |
[%~ action_block = action_block _ '<input type="hidden" name="shelfnumber" value="' _ shelfnumber _ '" />' ~%] |
40 |
[%~ action_block = action_block _ '<input type="hidden" name="op" value="edit_form" />' | html ~%] |
40 |
[%~ action_block = action_block _ '<input type="hidden" name="op" value="edit_form" />' ~%] |
41 |
[%~ action_block = action_block _ '<input type="hidden" name="category" value="' _ type _ '" />' | html ~%] |
41 |
[%~ action_block = action_block _ '<input type="hidden" name="category" value="' _ type _ '" />' ~%] |
42 |
[%~ action_block = action_block _ '<input type="hidden" name="referer" value="list" />' | html ~%] |
42 |
[%~ action_block = action_block _ '<input type="hidden" name="referer" value="list" />' ~%] |
43 |
[%~ action_block = action_block _ '<button class="editshelf btn btn-default btn-xs"><i class="fa fa-pencil"></i> Edit</button>' ~%] |
43 |
[%~ action_block = action_block _ '<button class="editshelf btn btn-default btn-xs"><i class="fa fa-pencil"></i> Edit</button>' ~%] |
44 |
[%~ action_block = action_block _ '</form> ' | html ~%] |
44 |
[%~ action_block = action_block _ '</form> ' ~%] |
45 |
[%~ END ~%] |
45 |
[%~ END ~%] |
46 |
[%~ IF can_manage_shelf OR can_delete_shelf ~%] |
46 |
[%~ IF can_manage_shelf OR can_delete_shelf ~%] |
47 |
[%~ action_block = action_block _ ' <form action="shelves.pl" method="post">' | html ~%] |
47 |
[%~ action_block = action_block _ ' <form action="shelves.pl" method="post">' ~%] |
48 |
[%~ action_block = action_block _ '<input type="hidden" name="shelfoff" value="' _ shelfoff _ '" />' | html ~%] |
48 |
[%~ action_block = action_block _ '<input type="hidden" name="shelfoff" value="' _ shelfoff _ '" />' ~%] |
49 |
[%~ action_block = action_block _ '<input type="hidden" name="shelves" value="1" />' | html ~%] |
49 |
[%~ action_block = action_block _ '<input type="hidden" name="shelves" value="1" />' ~%] |
50 |
[%~ action_block = action_block _ '<input type="hidden" name="op" value="delete" />' | html ~%] |
50 |
[%~ action_block = action_block _ '<input type="hidden" name="op" value="delete" />' ~%] |
51 |
[%~ action_block = action_block _ '<input type="hidden" name="shelfnumber" value="' _ shelfnumber _ '" />' | html ~%] |
51 |
[%~ action_block = action_block _ '<input type="hidden" name="shelfnumber" value="' _ shelfnumber _ '" />' ~%] |
52 |
[%~ action_block = action_block _ '<input type="hidden" name="category" value="' _ type _ '" />' | html ~%] |
52 |
[%~ action_block = action_block _ '<input type="hidden" name="category" value="' _ type _ '" />' ~%] |
53 |
[%~ action_block = action_block _ '<input type="hidden" name="referer" value="list" />' | html ~%] |
53 |
[%~ action_block = action_block _ '<input type="hidden" name="referer" value="list" />' ~%] |
54 |
[%~ action_block = action_block _ '<button type="submit" class="deleteshelf btn btn-default btn-xs"><i class="fa fa-trash"></i> Delete</button>' ~%] |
54 |
[%~ action_block = action_block _ '<button type="submit" class="deleteshelf btn btn-default btn-xs"><i class="fa fa-trash"></i> Delete</button>' ~%] |
55 |
[%~ action_block = action_block _ '</form>' | html ~%] |
55 |
[%~ action_block = action_block _ '</form>' ~%] |
56 |
[%~ END ~%] |
56 |
[%~ END ~%] |
57 |
[%~ ELSE ~%] |
57 |
[%~ ELSE ~%] |
58 |
[%~ SET action_block = 'None' ~%] |
58 |
[%~ SET action_block = 'None' ~%] |
59 |
- |
|
|