Lines 97-106
Link Here
|
97 |
[% review.review | html %] |
97 |
[% review.review | html %] |
98 |
</td> |
98 |
</td> |
99 |
<td class="actions"> |
99 |
<td class="actions"> |
100 |
[% IF ( status ) %]<a href="/cgi-bin/koha/reviews/reviewswaiting.pl?op=unapprove&reviewid=[% review.reviewid | uri %]" class="btn btn-default btn-xs"><i class="fa fa-times"></i> Unapprove</a>[% ELSE %]<a href="/cgi-bin/koha/reviews/reviewswaiting.pl?op=approve&reviewid=[% review.reviewid | uri %]" class="btn btn-default btn-xs"><i class="fa fa-check"></i> Approve</a>[% END %] |
100 |
[% IF ( review.approved ) %] |
|
|
101 |
<form action="/cgi-bin/koha/reviews/reviewswaiting.pl" method="post"> |
102 |
[% INCLUDE 'csrf-token.inc' %] |
103 |
<input type="hidden" name="op" value="cud-unapprove" /> |
104 |
<input type="hidden" name="biblionumber" value="[% biblionumber | html %]" /> |
105 |
<input type="hidden" name="reviewid" value="[% review.reviewid | html %]" /> |
106 |
<button type="submit" class="btn btn-default btn-xs"><i class="fa fa-times" aria-hidden="true"></i> Unapprove</button> |
107 |
</form> |
108 |
[% ELSE %] |
109 |
<form action="/cgi-bin/koha/reviews/reviewswaiting.pl" method="post"> |
110 |
[% INCLUDE 'csrf-token.inc' %] |
111 |
<input type="hidden" name="op" value="cud-approve" /> |
112 |
<input type="hidden" name="biblionumber" value="[% biblionumber | html %]" /> |
113 |
<input type="hidden" name="reviewid" value="[% review.reviewid | html %]" /> |
114 |
<button type="submit" class="btn btn-default btn-xs"><i class="fa fa-check" aria-hidden="true"></i> Approve</button> |
115 |
</form> |
116 |
[% END %] |
101 |
<form action="/cgi-bin/koha/reviews/reviewswaiting.pl" method="post"> |
117 |
<form action="/cgi-bin/koha/reviews/reviewswaiting.pl" method="post"> |
102 |
[% INCLUDE 'csrf-token.inc' %] |
118 |
[% INCLUDE 'csrf-token.inc' %] |
103 |
<input type="hidden" name="op" value="cud-delete" /> |
119 |
<input type="hidden" name="op" value="cud-delete" /> |
|
|
120 |
<input type="hidden" name="biblionumber" value="[% biblionumber | html %]" /> |
104 |
<input type="hidden" name="reviewid" value="[% review.reviewid | html %]" /> |
121 |
<input type="hidden" name="reviewid" value="[% review.reviewid | html %]" /> |
105 |
<button type="submit" class="btn btn-default btn-xs delete-comment"><i class="fa fa-trash-can" aria-hidden="true"></i> Delete</button> |
122 |
<button type="submit" class="btn btn-default btn-xs delete-comment"><i class="fa fa-trash-can" aria-hidden="true"></i> Delete</button> |
106 |
</form> |
123 |
</form> |