View | Details | Raw Unified | Return to bug 22784
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt (-2 / +13 lines)
Lines 603-610 Link Here
603
                    [% END %]
603
                    [% END %]
604
                </td>
604
                </td>
605
                <td class="actions">
605
                <td class="actions">
606
                    <a class="btn btn-xs btn-default" href="suggestion.pl?suggestionid=[% suggestions_loo.suggestionid | html %]&amp;op=edit"><i class="fa fa-pencil"></i> Edit</a>
606
                    <div class="dropup">
607
                    <a class="btn btn-default btn-xs deletesuggestion" href="suggestion.pl?op=delete&amp;suggestionid=[% suggestions_loo.suggestionid | html %]"><i class="fa fa-trash"></i> Delete</a>
607
                    <div class="btn-group">
608
                        <a class="btn btn-default btn-xs" role="button" href="suggestion.pl?suggestionid=[% suggestions_loo.suggestionid | html %]&amp;op=edit"><i class="fa fa-pencil"></i> Edit</a><a class="btn btn-default btn-xs dropdown-toggle" id="more_actions_[% suggestions_loo.suggestionid | html %]" role="button" data-toggle="dropdown" href="#"><b class="caret"></b></a>
609
                        <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="more_actions_[% suggestions_loo.suggestionid | html %]">
610
                            <li><a class="deletesuggestion" href="suggestion.pl?op=delete&amp;suggestionid=[% suggestions_loo.suggestionid | html %]"><i class="fa fa-trash"></i> Delete</a></li>
611
                            [% UNLESS suggestions_loo.archived %]
612
                                <li><a class="archivesuggestion" href="suggestion.pl?op=archive&amp;suggestionid=[% suggestions_loo.suggestionid | html %]"><i class="fa fa-archive"></i> Archive</a></li>
613
                            [% ELSE %]
614
                                <li><a class="unarchivesuggestion" href="suggestion.pl?op=unarchive&amp;suggestionid=[% suggestions_loo.suggestionid | html %]"><i class="fa fa-archive"></i> Unarchive</a></li>
615
                            [% END %]
616
                        </ul>
617
                    </div>
618
                    </div>
608
                </td>
619
                </td>
609
        </tr>
620
        </tr>
610
        [% END %]</tbody>
621
        [% END %]</tbody>
(-)a/suggestion/suggestion.pl (-1 / +10 lines)
Lines 290-295 elsif ($op eq "update_status" ) { Link Here
290
    }
290
    }
291
    redirect_with_params($input);
291
    redirect_with_params($input);
292
}
292
}
293
elsif ($op eq "archive" ) {
294
    Koha::Suggestions->find($_)->update({ archived => 1 }) for @editsuggestions;
295
296
    redirect_with_params($input);
297
}
298
elsif ($op eq "unarchive" ) {
299
    Koha::Suggestions->find($_)->update({ archived => 0 }) for @editsuggestions;
300
301
    redirect_with_params($input);
302
}
293
elsif ( $op eq 'update_itemtype' ) {
303
elsif ( $op eq 'update_itemtype' ) {
294
    my $new_itemtype = $input->param('suggestion_itemtype');
304
    my $new_itemtype = $input->param('suggestion_itemtype');
295
    foreach my $suggestionid (@editsuggestions) {
305
    foreach my $suggestionid (@editsuggestions) {
296
- 

Return to bug 22784