|
Lines 697-708
Link Here
|
| 697 |
</div> <!-- /.dialog --> |
697 |
</div> <!-- /.dialog --> |
| 698 |
[% END # /FOR m %] |
698 |
[% END # /FOR m %] |
| 699 |
|
699 |
|
| 700 |
[% IF suggestions.size && !notabs %] |
700 |
[% WRAPPER tabs id= "suggestiontabs" %] |
| 701 |
<div id="suggestiontabs" class="toptabs"> |
701 |
[% WRAPPER tabs_nav %] |
| 702 |
<ul class="nav nav-tabs" role="tablist"> |
702 |
[% FOREACH suggestion IN suggestions %] |
| 703 |
[% FOREACH suggestion IN suggestions %] |
703 |
[% WRAPPER tab_item tabname= suggestion.suggestiontype %] |
| 704 |
<li role="presentation"> |
|
|
| 705 |
<a href="#[% suggestion.suggestiontype | uri %]" aria-controls="[% suggestion.suggestiontype | uri %]" role="tab" data-toggle="tab"> |
| 706 |
[% IF ( suggestion.suggestiontypelabel ) %] |
704 |
[% IF ( suggestion.suggestiontypelabel ) %] |
| 707 |
[% IF (suggestion.suggestiontypelabel == "Pending") %]<span>Pending</span> |
705 |
[% IF (suggestion.suggestiontypelabel == "Pending") %]<span>Pending</span> |
| 708 |
[% ELSIF (suggestion.suggestiontypelabel == "Accepted") %]<span>Accepted</span> |
706 |
[% ELSIF (suggestion.suggestiontypelabel == "Accepted") %]<span>Accepted</span> |
|
Lines 721-1019
Link Here
|
| 721 |
[% END %] |
719 |
[% END %] |
| 722 |
[% END %] |
720 |
[% END %] |
| 723 |
([% suggestion.suggestions.size| html %]) |
721 |
([% suggestion.suggestions.size| html %]) |
| 724 |
</a></li> |
722 |
[% END %] |
|
|
723 |
[% END # /FOREACH suggestion %] |
| 724 |
[% END # /WRAPPER tabs_nav %] |
| 725 |
|
725 |
|
| 726 |
[% END # /FOREACH suggestion %] |
726 |
[% WRAPPER tab_panels %] |
| 727 |
</ul> <!-- /.ui-tabs-nav --> |
727 |
[% FOREACH suggestion IN suggestions %] |
| 728 |
<div class="tab-content"> |
728 |
[% WRAPPER tab_panel tabname= suggestion.suggestiontype %] |
| 729 |
[% END # IF suggestions.size && !notabs %] |
729 |
<form class="update_suggestions" name="f" method="post" action="/cgi-bin/koha/suggestion/suggestion.pl#[% suggestion.suggestiontype| uri %]"> |
| 730 |
|
730 |
|
| 731 |
[% FOREACH suggestion IN suggestions %] |
731 |
[% IF suggestion.suggestions.size %] |
| 732 |
[% UNLESS ( notabs ) %] |
732 |
<p> |
| 733 |
<div id="[% suggestion.suggestiontype | html %]" role="tabpanel" class="tab-pane"> |
733 |
<a class="checkall" href="#">Check all</a> | <a class="uncheckall" href="#">Uncheck all</a> |
| 734 |
[% ELSE %] |
734 |
</p> |
| 735 |
<div id="[% suggestion.suggestiontype | html %]"> |
|
|
| 736 |
[% END %] |
| 737 |
<form class="update_suggestions" name="f" method="post" action="/cgi-bin/koha/suggestion/suggestion.pl#[% suggestion.suggestiontype| uri %]"> |
| 738 |
|
| 739 |
[% IF suggestion.suggestions.size %] |
| 740 |
<p> |
| 741 |
<a class="checkall" href="#">Check all</a> | <a class="uncheckall" href="#">Uncheck all</a> |
| 742 |
</p> |
| 743 |
|
| 744 |
<table id="table_[% loop.count | html %]" class="sorted"> |
| 745 |
<thead> |
| 746 |
<tr> |
| 747 |
<th class="NoSort noExport"> </th> |
| 748 |
<th class="anti-the">Suggestion</th> |
| 749 |
<th>Suggested by</th> |
| 750 |
<th>Suggester category</th> |
| 751 |
<th>Suggested on</th> |
| 752 |
<th>Patron reason</th> |
| 753 |
<th>Managed by</th> |
| 754 |
<th>Managed on</th> |
| 755 |
<th>Last modification by</th> |
| 756 |
<th>Last modification on</th> |
| 757 |
<th>Last updated</th> |
| 758 |
<th>Library</th> |
| 759 |
<th>Fund</th> |
| 760 |
<th>Non-public note</th> |
| 761 |
<th>Status</th> |
| 762 |
<th class="NoSort noExport"> </th> |
| 763 |
</tr> |
| 764 |
</thead> |
| 765 |
<tbody> |
| 766 |
[% FOREACH s IN suggestion.suggestions %] |
| 767 |
<tr> |
| 768 |
<td> |
| 769 |
<input type="checkbox" name="suggestionid" value="[% s.suggestionid | html %]" /> |
| 770 |
</td> |
| 771 |
<td> |
| 772 |
<a href="suggestion.pl?suggestionid=[% s.suggestionid | uri %]&op=show" title="suggestion" > |
| 773 |
[% s.title | html %][% IF ( s.author ) %], by [% s.author | html %][% END %] |
| 774 |
</a> |
| 775 |
<br /> |
| 776 |
[% IF ( s.copyrightdate ) %] |
| 777 |
© <span class="suggestion_copyrightdate">[% s.copyrightdate | html %]</span> |
| 778 |
[% END %] |
| 779 |
[% IF ( s.volumedesc ) %] |
| 780 |
; <span class="suggestion_volume">Volume:<em>[% s.volumedesc | html %]</em></span> |
| 781 |
[% END %] |
| 782 |
[% IF ( s.isbn ) %] |
| 783 |
; <span class="suggestion_isbn">ISBN: <em>[% s.isbn | html %]</em></span> |
| 784 |
[% END %] |
| 785 |
[% IF ( s.publishercode ) %] |
| 786 |
; <span class="suggestion_publishercode">Published by [% s.publishercode | html %]</span> |
| 787 |
[% END %] |
| 788 |
[% IF ( s.publicationyear ) %] |
| 789 |
in <span class="suggestion_publicationyear"><em>[% s.publicationyear | html %]</em></span> |
| 790 |
[% END %] |
| 791 |
[% IF ( s.place ) %] |
| 792 |
in <span class="suggestion_place"><em>[% s.place | html %]</em></span> |
| 793 |
[% END %] |
| 794 |
[% IF ( s.collectiontitle ) %] |
| 795 |
; <span class="suggestion_collectiontitle">[% s.collectiontitle | html %]</span> |
| 796 |
[% END %] |
| 797 |
[% IF ( s.itemtype ) %] |
| 798 |
; <span class="suggestion_itype">[% AuthorisedValues.GetByCode( 'SUGGEST_FORMAT', s.itemtype, 0 ) | html %]</span> |
| 799 |
[% END %] |
| 800 |
<br /> |
| 801 |
[% IF ( s.note ) %] |
| 802 |
<div class="suggestion_note"><i class="fa fa-comment"></i> [% s.note | html %]</div> |
| 803 |
[% END %] |
| 804 |
[% IF s.archived %] |
| 805 |
<br /><i class="fa fa-archive"></i> Archived |
| 806 |
[% END %] |
| 807 |
</td> |
| 808 |
<td> |
| 809 |
[% SET suggester = s.suggester %] |
| 810 |
<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% suggester.borrowernumber | uri %]">[% suggester.surname | html %][% IF suggester.firstname %], [% suggester.firstname | html %][% END %] [% IF suggester.cardnumber %]([% suggester.cardnumber | html %])[% END %]</a> |
| 811 |
</td> |
| 812 |
<td> |
| 813 |
[% suggester.category.description | html %] |
| 814 |
</td> |
| 815 |
<td data-order="[% s.suggesteddate | html %]"> |
| 816 |
[% IF ( s.suggesteddate ) %][% s.suggesteddate | $KohaDates %][% END %] |
| 817 |
</td> |
| 818 |
<td>[% AuthorisedValues.GetByCode( 'OPAC_SUG', s.patronreason ) | html %]</td> |
| 819 |
<td> |
| 820 |
[% SET manager = s.manager %] |
| 821 |
<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% manager.borrowernumber | uri %]">[% manager.surname | html %][% IF manager.firstname %], [% manager.firstname | html %][% END %]</a> |
| 822 |
</td> |
| 823 |
<td data-order="[% s.manageddate | html %]"> |
| 824 |
[% IF ( s.manageddate ) %][% s.manageddate | $KohaDates %][% END %] |
| 825 |
</td> |
| 826 |
<td> |
| 827 |
[% SET last_modifier = s.last_modifier %] |
| 828 |
<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% last_modifier.borrowernumber | uri %]">[% last_modifier.surname | html %][% IF last_modifier.firstname %], [% last_modifier.firstname | html %][% END %]</a> |
| 829 |
</td> |
| 830 |
<td data-order="[% s.lastmodificationdate | html %]"> |
| 831 |
[% IF ( s.lastmodificationdate ) %][% s.lastmodificationdate | $KohaDates %][% END %] |
| 832 |
</td> |
| 833 |
<td> |
| 834 |
[% s.lastmodificationdate | $KohaDates %] |
| 835 |
</td> |
| 836 |
<td> |
| 837 |
[% Branches.GetName( s.branchcode ) | html %] |
| 838 |
</td> |
| 839 |
<td> |
| 840 |
[% s.fund.budget_name | html %] |
| 841 |
</td> |
| 842 |
<td> |
| 843 |
[% s.staff_note | html %] |
| 844 |
</td> |
| 845 |
<td> |
| 846 |
[% IF s.STATUS == 'ASKED' %] |
| 847 |
<span>Pending</span> |
| 848 |
[% ELSIF s.STATUS == 'ACCEPTED' %] |
| 849 |
<span>Accepted</span> |
| 850 |
[% ELSIF s.STATUS == 'ORDERED' %] |
| 851 |
<span>Ordered</span> |
| 852 |
[% ELSIF s.STATUS == 'REJECTED' %] |
| 853 |
<span>Rejected</span> |
| 854 |
[% ELSIF s.STATUS == 'CHECKED' %] |
| 855 |
<span>Checked</span> |
| 856 |
[% ELSIF s.STATUS == 'AVAILABLE' %] |
| 857 |
<span>Available</span> |
| 858 |
[% ELSIF AuthorisedValues.GetByCode( 'SUGGEST_STATUS', s.STATUS ) %] |
| 859 |
[% AuthorisedValues.GetByCode( 'SUGGEST_STATUS', s.STATUS ) | html %] |
| 860 |
[% ELSE %] |
| 861 |
<span>Status unknown</span> |
| 862 |
[% END %] |
| 863 |
|
735 |
|
| 864 |
[% IF ( s.reason ) %] |
736 |
<table id="table_[% loop.count | html %]" class="sorted"> |
| 865 |
<br />([% s.reason | html %]) |
737 |
<thead> |
| 866 |
[% END %] |
738 |
<tr> |
| 867 |
</td> |
739 |
<th class="NoSort noExport"> </th> |
| 868 |
<td class="actions"> |
740 |
<th class="anti-the">Suggestion</th> |
| 869 |
<div class="btn-group dropup"> |
741 |
<th>Suggested by</th> |
| 870 |
<a class="btn btn-default btn-xs" role="button" href="suggestion.pl?suggestionid=[% s.suggestionid | html %]&op=edit"><i class="fa fa-pencil"></i> Edit</a><a class="btn btn-default btn-xs dropdown-toggle" id="more_actions_[% s.suggestionid | html %]" role="button" data-toggle="dropdown" href="#"><b class="caret"></b></a> |
742 |
<th>Suggester category</th> |
| 871 |
<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="more_actions_[% s.suggestionid | html %]"> |
743 |
<th>Suggested on</th> |
| 872 |
<li><a class="deletesuggestion" href="suggestion.pl?op=delete&suggestionid=[% s.suggestionid | html %]"><i class="fa fa-trash"></i> Delete</a></li> |
744 |
<th>Patron reason</th> |
| 873 |
[% UNLESS s.archived %] |
745 |
<th>Managed by</th> |
| 874 |
<li><a class="archivesuggestion" href="suggestion.pl?op=archive&suggestionid=[% s.suggestionid | html %]"><i class="fa fa-archive"></i> Archive</a></li> |
746 |
<th>Managed on</th> |
| 875 |
[% ELSE %] |
747 |
<th>Last modification by</th> |
| 876 |
<li><a class="unarchivesuggestion" href="suggestion.pl?op=unarchive&suggestionid=[% s.suggestionid | html %]"><i class="fa fa-archive"></i> Unarchive</a></li> |
748 |
<th>Last modification on</th> |
| 877 |
[% END %] |
749 |
<th>Last updated</th> |
| 878 |
</ul> |
750 |
<th>Library</th> |
| 879 |
</div> |
751 |
<th>Fund</th> |
| 880 |
</td> |
752 |
<th>Non-public note</th> |
|
|
753 |
<th>Status</th> |
| 754 |
<th class="NoSort noExport"> </th> |
| 881 |
</tr> |
755 |
</tr> |
| 882 |
[% END # /FOREACH s %] |
756 |
</thead> |
| 883 |
</tbody> |
757 |
<tbody> |
| 884 |
</table> <!-- /#table_[% loop.count | html %] --> |
758 |
[% FOREACH s IN suggestion.suggestions %] |
|
|
759 |
<tr> |
| 760 |
<td> |
| 761 |
<input type="checkbox" name="suggestionid" value="[% s.suggestionid | html %]" /> |
| 762 |
</td> |
| 763 |
<td> |
| 764 |
<a href="suggestion.pl?suggestionid=[% s.suggestionid | uri %]&op=show" title="suggestion" > |
| 765 |
[% s.title | html %][% IF ( s.author ) %], by [% s.author | html %][% END %] |
| 766 |
</a> |
| 767 |
<br /> |
| 768 |
[% IF ( s.copyrightdate ) %] |
| 769 |
© <span class="suggestion_copyrightdate">[% s.copyrightdate | html %]</span> |
| 770 |
[% END %] |
| 771 |
[% IF ( s.volumedesc ) %] |
| 772 |
; <span class="suggestion_volume">Volume:<em>[% s.volumedesc | html %]</em></span> |
| 773 |
[% END %] |
| 774 |
[% IF ( s.isbn ) %] |
| 775 |
; <span class="suggestion_isbn">ISBN: <em>[% s.isbn | html %]</em></span> |
| 776 |
[% END %] |
| 777 |
[% IF ( s.publishercode ) %] |
| 778 |
; <span class="suggestion_publishercode">Published by [% s.publishercode | html %]</span> |
| 779 |
[% END %] |
| 780 |
[% IF ( s.publicationyear ) %] |
| 781 |
in <span class="suggestion_publicationyear"><em>[% s.publicationyear | html %]</em></span> |
| 782 |
[% END %] |
| 783 |
[% IF ( s.place ) %] |
| 784 |
in <span class="suggestion_place"><em>[% s.place | html %]</em></span> |
| 785 |
[% END %] |
| 786 |
[% IF ( s.collectiontitle ) %] |
| 787 |
; <span class="suggestion_collectiontitle">[% s.collectiontitle | html %]</span> |
| 788 |
[% END %] |
| 789 |
[% IF ( s.itemtype ) %] |
| 790 |
; <span class="suggestion_itype">[% AuthorisedValues.GetByCode( 'SUGGEST_FORMAT', s.itemtype, 0 ) | html %]</span> |
| 791 |
[% END %] |
| 792 |
<br /> |
| 793 |
[% IF ( s.note ) %] |
| 794 |
<div class="suggestion_note"><i class="fa fa-comment"></i> [% s.note | html %]</div> |
| 795 |
[% END %] |
| 796 |
[% IF s.archived %] |
| 797 |
<br /><i class="fa fa-archive"></i> Archived |
| 798 |
[% END %] |
| 799 |
</td> |
| 800 |
<td> |
| 801 |
[% SET suggester = s.suggester %] |
| 802 |
<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% suggester.borrowernumber | uri %]">[% suggester.surname | html %][% IF suggester.firstname %], [% suggester.firstname | html %][% END %] [% IF suggester.cardnumber %]([% suggester.cardnumber | html %])[% END %]</a> |
| 803 |
</td> |
| 804 |
<td> |
| 805 |
[% suggester.category.description | html %] |
| 806 |
</td> |
| 807 |
<td data-order="[% s.suggesteddate | html %]"> |
| 808 |
[% IF ( s.suggesteddate ) %][% s.suggesteddate | $KohaDates %][% END %] |
| 809 |
</td> |
| 810 |
<td>[% AuthorisedValues.GetByCode( 'OPAC_SUG', s.patronreason ) | html %]</td> |
| 811 |
<td> |
| 812 |
[% SET manager = s.manager %] |
| 813 |
<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% manager.borrowernumber | uri %]">[% manager.surname | html %][% IF manager.firstname %], [% manager.firstname | html %][% END %]</a> |
| 814 |
</td> |
| 815 |
<td data-order="[% s.manageddate | html %]"> |
| 816 |
[% IF ( s.manageddate ) %][% s.manageddate | $KohaDates %][% END %] |
| 817 |
</td> |
| 818 |
<td> |
| 819 |
[% SET last_modifier = s.last_modifier %] |
| 820 |
<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% last_modifier.borrowernumber | uri %]">[% last_modifier.surname | html %][% IF last_modifier.firstname %], [% last_modifier.firstname | html %][% END %]</a> |
| 821 |
</td> |
| 822 |
<td data-order="[% s.lastmodificationdate | html %]"> |
| 823 |
[% IF ( s.lastmodificationdate ) %][% s.lastmodificationdate | $KohaDates %][% END %] |
| 824 |
</td> |
| 825 |
<td> |
| 826 |
[% s.lastmodificationdate | $KohaDates %] |
| 827 |
</td> |
| 828 |
<td> |
| 829 |
[% Branches.GetName( s.branchcode ) | html %] |
| 830 |
</td> |
| 831 |
<td> |
| 832 |
[% s.fund.budget_name | html %] |
| 833 |
</td> |
| 834 |
<td> |
| 835 |
[% s.staff_note | html %] |
| 836 |
</td> |
| 837 |
<td> |
| 838 |
[% IF s.STATUS == 'ASKED' %] |
| 839 |
<span>Pending</span> |
| 840 |
[% ELSIF s.STATUS == 'ACCEPTED' %] |
| 841 |
<span>Accepted</span> |
| 842 |
[% ELSIF s.STATUS == 'ORDERED' %] |
| 843 |
<span>Ordered</span> |
| 844 |
[% ELSIF s.STATUS == 'REJECTED' %] |
| 845 |
<span>Rejected</span> |
| 846 |
[% ELSIF s.STATUS == 'CHECKED' %] |
| 847 |
<span>Checked</span> |
| 848 |
[% ELSIF s.STATUS == 'AVAILABLE' %] |
| 849 |
<span>Available</span> |
| 850 |
[% ELSIF AuthorisedValues.GetByCode( 'SUGGEST_STATUS', s.STATUS ) %] |
| 851 |
[% AuthorisedValues.GetByCode( 'SUGGEST_STATUS', s.STATUS ) | html %] |
| 852 |
[% ELSE %] |
| 853 |
<span>Status unknown</span> |
| 854 |
[% END %] |
| 885 |
|
855 |
|
| 886 |
<div class="row"> |
856 |
[% IF ( s.reason ) %] |
| 887 |
<div class="col-sm-12"> |
857 |
<br />([% s.reason | html %]) |
| 888 |
<h2>Change selected suggestions</h2> |
858 |
[% END %] |
|
|
859 |
</td> |
| 860 |
<td class="actions"> |
| 861 |
<div class="btn-group dropup"> |
| 862 |
<a class="btn btn-default btn-xs" role="button" href="suggestion.pl?suggestionid=[% s.suggestionid | html %]&op=edit"><i class="fa fa-pencil"></i> Edit</a><a class="btn btn-default btn-xs dropdown-toggle" id="more_actions_[% s.suggestionid | html %]" role="button" data-toggle="dropdown" href="#"><b class="caret"></b></a> |
| 863 |
<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="more_actions_[% s.suggestionid | html %]"> |
| 864 |
<li><a class="deletesuggestion" href="suggestion.pl?op=delete&suggestionid=[% s.suggestionid | html %]"><i class="fa fa-trash"></i> Delete</a></li> |
| 865 |
[% UNLESS s.archived %] |
| 866 |
<li><a class="archivesuggestion" href="suggestion.pl?op=archive&suggestionid=[% s.suggestionid | html %]"><i class="fa fa-archive"></i> Archive</a></li> |
| 867 |
[% ELSE %] |
| 868 |
<li><a class="unarchivesuggestion" href="suggestion.pl?op=unarchive&suggestionid=[% s.suggestionid | html %]"><i class="fa fa-archive"></i> Unarchive</a></li> |
| 869 |
[% END %] |
| 870 |
</ul> |
| 871 |
</div> |
| 872 |
</td> |
| 873 |
</tr> |
| 874 |
[% END # /FOREACH s %] |
| 875 |
</tbody> |
| 876 |
</table> <!-- /#table_[% loop.count | html %] --> |
| 877 |
|
| 878 |
<div class="row"> |
| 879 |
<div class="col-sm-12"> |
| 880 |
<h2>Change selected suggestions</h2> |
| 881 |
</div> |
| 889 |
</div> |
882 |
</div> |
| 890 |
</div> |
883 |
<div class="row"> |
| 891 |
<div class="row"> |
884 |
<div class="col-sm-4"> |
| 892 |
<div class="col-sm-4"> |
885 |
<fieldset class="brief"> |
| 893 |
<fieldset class="brief"> |
886 |
<div id="select-reason[% loop.index | html %]"> |
| 894 |
<div id="select-reason[% loop.index | html %]"> |
887 |
<label for="STATUSreason[% loop.index | html %]">Mark selected as: </label> |
| 895 |
<label for="STATUSreason[% loop.index | html %]">Mark selected as: </label> |
888 |
<select name="STATUS" id="STATUSreason[% loop.index | html %]"> |
| 896 |
<select name="STATUS" id="STATUSreason[% loop.index | html %]"> |
889 |
<option value=""> -- Choose a status --</option> |
| 897 |
<option value=""> -- Choose a status --</option> |
890 |
|
| 898 |
|
891 |
[% IF (statusselected_ASKED ) %] |
| 899 |
[% IF (statusselected_ASKED ) %] |
892 |
<option value="ASKED" selected="selected">Pending</option> |
| 900 |
<option value="ASKED" selected="selected">Pending</option> |
893 |
[% ELSE %] |
| 901 |
[% ELSE %] |
894 |
<option value="ASKED">Pending</option> |
| 902 |
<option value="ASKED">Pending</option> |
895 |
[% END %] |
| 903 |
[% END %] |
|
|
| 904 |
|
| 905 |
[% IF (statusselected_ACCEPTED ) %] |
| 906 |
<option value="ACCEPTED" selected="selected">Accepted</option> |
| 907 |
[% ELSE %] |
| 908 |
<option value="ACCEPTED">Accepted</option> |
| 909 |
[% END %] |
| 910 |
|
| 911 |
[% IF (statusselected_CHECKED ) %] |
| 912 |
<option value="CHECKED" selected="selected">Checked</option> |
| 913 |
[% ELSE %] |
| 914 |
<option value="CHECKED">Checked</option> |
| 915 |
[% END %] |
| 916 |
|
896 |
|
| 917 |
[% IF ( statusselected_REJECTED ) %] |
897 |
[% IF (statusselected_ACCEPTED ) %] |
| 918 |
<option value="REJECTED" selected="selected">Rejected</option> |
898 |
<option value="ACCEPTED" selected="selected">Accepted</option> |
| 919 |
[% ELSE %] |
899 |
[% ELSE %] |
| 920 |
<option value="REJECTED">Rejected</option> |
900 |
<option value="ACCEPTED">Accepted</option> |
| 921 |
[% END %] |
901 |
[% END %] |
| 922 |
|
902 |
|
| 923 |
[% IF ( statusselected_ORDERED ) %] |
903 |
[% IF (statusselected_CHECKED ) %] |
| 924 |
<option value="ORDERED" selected="selected">Ordered</option> |
904 |
<option value="CHECKED" selected="selected">Checked</option> |
| 925 |
[% ELSE %] |
905 |
[% ELSE %] |
| 926 |
<option value="ORDERED">Ordered</option> |
906 |
<option value="CHECKED">Checked</option> |
| 927 |
[% END %] |
907 |
[% END %] |
| 928 |
|
908 |
|
| 929 |
[% FOREACH s IN SuggestionStatuses %] |
909 |
[% IF ( statusselected_REJECTED ) %] |
| 930 |
<option value="[% s.authorised_value | html %]">[% s.lib | html %]</option> |
910 |
<option value="REJECTED" selected="selected">Rejected</option> |
| 931 |
[% END %] |
911 |
[% ELSE %] |
| 932 |
</select> |
912 |
<option value="REJECTED">Rejected</option> |
|
|
913 |
[% END %] |
| 933 |
|
914 |
|
| 934 |
<label for="choosereason[% loop.index | html %]">with this reason:</label> |
915 |
[% IF ( statusselected_ORDERED ) %] |
| 935 |
<select name="reason" id="choosereason[% loop.index | html %]"> |
916 |
<option value="ORDERED" selected="selected">Ordered</option> |
| 936 |
<option value=""> -- Choose a reason -- </option> |
917 |
[% ELSE %] |
| 937 |
[% FOREACH reasonsloo IN suggestion.reasonsloop %] |
918 |
<option value="ORDERED">Ordered</option> |
| 938 |
<option value="[% reasonsloo.lib | html %]">[% reasonsloo.lib | html %]</option> |
919 |
[% END %] |
| 939 |
[% END %] |
|
|
| 940 |
<option value="other">Others...</option> |
| 941 |
</select> |
| 942 |
|
920 |
|
| 943 |
<span class="other_reason"> |
921 |
[% FOREACH s IN SuggestionStatuses %] |
| 944 |
<input type="text" size="31" name="other_reason" placeholder="please note your reason here..." /> |
922 |
<option value="[% s.authorised_value | html %]">[% s.lib | html %]</option> |
| 945 |
<a href="#" class="cancel_note">Cancel</a> |
923 |
[% END %] |
| 946 |
</span> |
924 |
</select> |
| 947 |
</div> |
|
|
| 948 |
|
925 |
|
| 949 |
<input type="hidden" name="branchcode" value="[% branchfilter | html %]" /> |
926 |
<label for="choosereason[% loop.index | html %]">with this reason:</label> |
| 950 |
<input type="hidden" name="filter_archived" value="[% filter_archived | html %]" /> |
927 |
<select name="reason" id="choosereason[% loop.index | html %]"> |
| 951 |
<fieldset class="action"> |
928 |
<option value=""> -- Choose a reason -- </option> |
| 952 |
<button type="submit" class="btn btn-primary" value="update_status">Submit</button> |
929 |
[% FOREACH reasonsloo IN suggestion.reasonsloop %] |
|
|
930 |
<option value="[% reasonsloo.lib | html %]">[% reasonsloo.lib | html %]</option> |
| 931 |
[% END %] |
| 932 |
<option value="other">Others...</option> |
| 933 |
</select> |
| 934 |
|
| 935 |
<span class="other_reason"> |
| 936 |
<input type="text" size="31" name="other_reason" placeholder="please note your reason here..." /> |
| 937 |
<a href="#" class="cancel_note">Cancel</a> |
| 938 |
</span> |
| 939 |
</div> |
| 940 |
|
| 941 |
<input type="hidden" name="branchcode" value="[% branchfilter | html %]" /> |
| 942 |
<input type="hidden" name="filter_archived" value="[% filter_archived | html %]" /> |
| 943 |
<fieldset class="action"> |
| 944 |
<button type="submit" class="btn btn-primary" value="update_status">Submit</button> |
| 945 |
</fieldset> |
| 953 |
</fieldset> |
946 |
</fieldset> |
| 954 |
</fieldset> |
947 |
</div> <!-- /.col-sm-4 --> |
| 955 |
</div> <!-- /.col-sm-4 --> |
948 |
|
| 956 |
|
949 |
<div class="col-sm-4"> |
| 957 |
<div class="col-sm-4"> |
950 |
<fieldset class="brief"> |
| 958 |
<fieldset class="brief"> |
951 |
<label id="suggestion_itemtype"> |
| 959 |
<label id="suggestion_itemtype"> |
952 |
Update item types with: |
| 960 |
Update item types with: |
953 |
</label> |
| 961 |
</label> |
954 |
[% PROCESS 'av-build-dropbox.inc' name="suggestion_itemtype", category="SUGGEST_FORMAT", size = 20 %] |
| 962 |
[% PROCESS 'av-build-dropbox.inc' name="suggestion_itemtype", category="SUGGEST_FORMAT", size = 20 %] |
955 |
<input type="hidden" name="branchcode" value="[% branchfilter | html %]" /> |
| 963 |
<input type="hidden" name="branchcode" value="[% branchfilter | html %]" /> |
956 |
<input type="hidden" name="filter_archived" value="[% filter_archived | html %]" /> |
| 964 |
<input type="hidden" name="filter_archived" value="[% filter_archived | html %]" /> |
957 |
<fieldset class="action"> |
| 965 |
<fieldset class="action"> |
958 |
<button type="submit" class="btn btn-primary" value="update_itemtype">Submit</button> |
| 966 |
<button type="submit" class="btn btn-primary" value="update_itemtype">Submit</button> |
959 |
</fieldset> |
| 967 |
</fieldset> |
960 |
</fieldset> |
| 968 |
</fieldset> |
961 |
</div> <!-- /.col-sm-4 --> |
| 969 |
</div> <!-- /.col-sm-4 --> |
962 |
|
| 970 |
|
963 |
<div class="col-sm-2"> |
| 971 |
<div class="col-sm-2"> |
964 |
<fieldset class="brief"> |
| 972 |
<fieldset class="brief"> |
965 |
<span class="label">Update manager</span> |
| 973 |
<span class="label">Update manager</span> |
966 |
<a id="set_manager_[% loop.count | html %]" data-tab="[% loop.count | html %]" class="set_manager" href="#"><i class="fa fa-search"></i> Select manager</a> |
| 974 |
<a id="set_manager_[% loop.count | html %]" data-tab="[% loop.count | html %]" class="set_manager" href="#"><i class="fa fa-search"></i> Select manager</a> |
967 |
<span id="managedby_name[% loop.count | html %]"></span> |
| 975 |
<span id="managedby_name[% loop.count | html %]"></span> |
968 |
<input type="hidden" name="suggestion_managedby" id="managedby[% loop.count | html %]" value="[% logged_in_user.borrowernumber | html %]" /> |
| 976 |
<input type="hidden" name="suggestion_managedby" id="managedby[% loop.count | html %]" value="[% logged_in_user.borrowernumber | html %]" /> |
969 |
<input type="hidden" name="branchcode" value="[% branchfilter | html %]" /> |
| 977 |
<input type="hidden" name="branchcode" value="[% branchfilter | html %]" /> |
970 |
<input type="hidden" name="filter_archived" value="[% filter_archived | html %]" /> |
| 978 |
<input type="hidden" name="filter_archived" value="[% filter_archived | html %]" /> |
971 |
<fieldset class="action"> |
| 979 |
<fieldset class="action"> |
972 |
<button type="submit" class="btn btn-primary" value="update_manager">Submit</button> |
| 980 |
<button type="submit" class="btn btn-primary" value="update_manager">Submit</button> |
973 |
</fieldset> |
| 981 |
</fieldset> |
974 |
</fieldset> |
| 982 |
</fieldset> |
975 |
</div> <!-- /.col-sm-2 --> |
| 983 |
</div> <!-- /.col-sm-2 --> |
976 |
|
| 984 |
|
977 |
<div class="col-sm-2"> |
| 985 |
<div class="col-sm-2"> |
978 |
<fieldset class="brief"> |
| 986 |
<fieldset class="brief"> |
979 |
<span class="label">Delete selected</span> |
| 987 |
<span class="label">Delete selected</span> |
980 |
<input type="hidden" name="branchcode" value="[% branchfilter | html %]" /> |
| 988 |
<input type="hidden" name="branchcode" value="[% branchfilter | html %]" /> |
981 |
<input type="hidden" name="filter_archived" value="[% filter_archived | html %]" /> |
| 989 |
<input type="hidden" name="filter_archived" value="[% filter_archived | html %]" /> |
982 |
<fieldset class="action"> |
| 990 |
<fieldset class="action"> |
983 |
<button type="submit" class="btn btn-primary" value="delete">Delete</button> |
| 991 |
<button type="submit" class="btn btn-primary" value="delete">Delete</button> |
984 |
</fieldset> |
| 992 |
</fieldset> |
985 |
</fieldset> |
| 993 |
</fieldset> |
986 |
</div> <!-- /.col-sm-2 --> |
| 994 |
</div> <!-- /.col-sm-2 --> |
987 |
<div class="col-sm-2"> |
| 995 |
<div class="col-sm-2"> |
988 |
<fieldset class="brief"> |
| 996 |
<fieldset class="brief"> |
989 |
<span class="label">Archive selected</span> |
| 997 |
<span class="label">Archive selected</span> |
990 |
<input type="hidden" name="branchcode" value="[% branchfilter | html %]" /> |
| 998 |
<input type="hidden" name="branchcode" value="[% branchfilter | html %]" /> |
991 |
<input type="hidden" name="filter_archived" value="[% filter_archived | html %]" /> |
| 999 |
<input type="hidden" name="filter_archived" value="[% filter_archived | html %]" /> |
992 |
<fieldset class="action"> |
| 1000 |
<fieldset class="action"> |
993 |
<button type="submit" class="btn btn-primary" value="archive">Archive</button> |
| 1001 |
<button type="submit" class="btn btn-primary" value="archive">Archive</button> |
994 |
</fieldset> |
| 1002 |
</fieldset> |
995 |
</fieldset> |
| 1003 |
</fieldset> |
996 |
</div> <!-- /.col-sm-2 --> |
| 1004 |
</div> <!-- /.col-sm-2 --> |
997 |
</div> <!-- /.row --> |
| 1005 |
</div> <!-- /.row --> |
998 |
|
|
|
999 |
[% ELSE %] |
| 1000 |
<strong>No results.</strong> |
| 1001 |
[% END # /IF ( suggestion.suggestions_loop ) %] |
| 1002 |
</form> <!-- /.update_suggestions --> |
| 1003 |
[% END # /tab_panel# %] |
| 1004 |
[% END # /FOREACH suggestion %] |
| 1005 |
[% END # /WRAPPER tab_panels %] |
| 1006 |
[% END # /WRAPPER tabs %] |
| 1006 |
|
1007 |
|
| 1007 |
[% ELSE %] |
|
|
| 1008 |
<strong>No results.</strong> |
| 1009 |
[% END # /IF ( suggestion.suggestions_loop ) %] |
| 1010 |
</form> <!-- /.update_suggestions --> |
| 1011 |
</div> <!-- /#[% suggestion.suggestiontype | html %] --> |
| 1012 |
[% END # /FOREACH suggestion %] |
| 1013 |
[% IF suggestions.size && !notabs %] |
| 1014 |
</div> <!-- /.tab-content --> |
| 1015 |
</div> <!-- /.notabs --> |
| 1016 |
[% END # /UNLESS notabs %] |
| 1017 |
[% END # /IF op == 'else' %] |
1008 |
[% END # /IF op == 'else' %] |
| 1018 |
|
1009 |
|
| 1019 |
[% UNLESS op == 'save' %] |
1010 |
[% UNLESS op == 'save' %] |
| 1020 |
- |
|
|