Lines 686-695
Link Here
|
686 |
|
686 |
|
687 |
[% UNLESS ( notabs ) %] |
687 |
[% UNLESS ( notabs ) %] |
688 |
<div id="suggestiontabs" class="toptabs"> |
688 |
<div id="suggestiontabs" class="toptabs"> |
689 |
<ul class="ui-tabs-nav"> |
689 |
<ul class="nav nav-tabs" role="tablist"> |
690 |
[% FOREACH suggestion IN suggestions %] |
690 |
[% FOREACH suggestion IN suggestions %] |
691 |
<li> |
691 |
<li role="presentation"> |
692 |
<a href="#[% suggestion.suggestiontype | uri %]"> |
692 |
<a href="#[% suggestion.suggestiontype | uri %]" aria-controls="[% suggestion.suggestiontype | uri %]" role="tab" data-toggle="tab"> |
693 |
[% IF ( suggestion.suggestiontypelabel ) %] |
693 |
[% IF ( suggestion.suggestiontypelabel ) %] |
694 |
[% IF (suggestion.suggestiontypelabel == "Pending") %]Pending |
694 |
[% IF (suggestion.suggestiontypelabel == "Pending") %]Pending |
695 |
[% ELSIF (suggestion.suggestiontypelabel == "Accepted") %]Accepted |
695 |
[% ELSIF (suggestion.suggestiontypelabel == "Accepted") %]Accepted |
Lines 707-970
Link Here
|
707 |
No name |
707 |
No name |
708 |
[% END %] |
708 |
[% END %] |
709 |
[% END %] |
709 |
[% END %] |
710 |
([% suggestion.suggestions_loop.size | html %])</a></li> |
710 |
([% suggestion.suggestions_loop.size | html %]) |
711 |
|
711 |
</a> |
|
|
712 |
</li> |
712 |
[% END # /FOREACH suggestion %] |
713 |
[% END # /FOREACH suggestion %] |
713 |
</ul> <!-- /.ui-tabs-nav --> |
714 |
</ul> <!-- /.ui-tabs-nav --> |
|
|
715 |
<div class="tab-content"> |
714 |
[% END # /UNLESS notabs %] |
716 |
[% END # /UNLESS notabs %] |
715 |
|
717 |
|
716 |
[% FOREACH suggestion IN suggestions %] |
718 |
[% FOREACH suggestion IN suggestions %] |
717 |
<div id="[% suggestion.suggestiontype | html %]"> |
719 |
<div id="[% suggestion.suggestiontype | html %]" role="tabpanel" class="tab-pane"> |
718 |
<form class="update_suggestions" name="f" method="post" action="/cgi-bin/koha/suggestion/suggestion.pl#[% suggestion.suggestiontype| uri %]"> |
720 |
<form class="update_suggestions" name="f" method="post" action="/cgi-bin/koha/suggestion/suggestion.pl#[% suggestion.suggestiontype| uri %]"> |
719 |
|
721 |
|
720 |
[% IF ( suggestion.suggestions_loop ) %] |
722 |
[% IF ( suggestion.suggestions_loop ) %] |
721 |
<p> |
723 |
<p> |
722 |
<a class="checkall" href="#">Check all</a> | <a class="uncheckall" href="#">Uncheck all</a> |
724 |
<a class="checkall" href="#">Check all</a> | <a class="uncheckall" href="#">Uncheck all</a> |
723 |
</p> |
725 |
</p> |
724 |
|
726 |
|
725 |
<table id="table_[% loop.count | html %]" class="sorted"> |
727 |
<table id="table_[% loop.count | html %]" class="sorted"> |
726 |
<thead> |
728 |
<thead> |
727 |
<tr> |
|
|
728 |
<th class="NoSort noExport"> </th> |
729 |
<th class="anti-the">Suggestion</th> |
730 |
<th>Suggested by</th> |
731 |
<th>Suggested on</th> |
732 |
<th>Managed by</th> |
733 |
<th>Managed on</th> |
734 |
<th>Last modification by</th> |
735 |
<th>Last modification on</th> |
736 |
<th>Last updated</th> |
737 |
<th>Library</th> |
738 |
<th>Fund</th> |
739 |
<th>Status</th> |
740 |
<th class="NoSort noExport"> </th> |
741 |
</tr> |
742 |
</thead> |
743 |
<tbody> |
744 |
[% FOREACH suggestions_loo IN suggestion.suggestions_loop %] |
745 |
<tr> |
729 |
<tr> |
746 |
<td> |
730 |
<th class="NoSort noExport"> </th> |
747 |
<input type="checkbox" name="suggestionid" value="[% suggestions_loo.suggestionid | html %]" /> |
731 |
<th class="anti-the">Suggestion</th> |
748 |
</td> |
732 |
<th>Suggested by</th> |
749 |
<td> |
733 |
<th>Suggested on</th> |
750 |
<a href="suggestion.pl?suggestionid=[% suggestions_loo.suggestionid | uri %]&op=show" title="suggestion" > |
734 |
<th>Managed by</th> |
751 |
[% suggestions_loo.title | html %][% IF ( suggestions_loo.author ) %], by [% suggestions_loo.author | html %][% END %] |
735 |
<th>Managed on</th> |
752 |
</a> |
736 |
<th>Last modification by</th> |
753 |
<br /> |
737 |
<th>Last modification on</th> |
754 |
[% IF ( suggestions_loo.copyrightdate ) %] |
738 |
<th>Last updated</th> |
755 |
© <span class="suggestion_copyrightdate">[% suggestions_loo.copyrightdate | html %]</span> |
739 |
<th>Library</th> |
756 |
[% END %] |
740 |
<th>Fund</th> |
757 |
[% IF ( suggestions_loo.volumedesc ) %] |
741 |
<th>Status</th> |
758 |
; <span class="suggestion_volume">Volume:<em>[% suggestions_loo.volumedesc | html %]</em></span> |
742 |
<th class="NoSort noExport"> </th> |
759 |
[% END %] |
|
|
760 |
[% IF ( suggestions_loo.isbn ) %] |
761 |
; <span class="suggestion_isbn">ISBN: <em>[% suggestions_loo.isbn | html %]</em></span> |
762 |
[% END %] |
763 |
[% IF ( suggestions_loo.publishercode ) %] |
764 |
; <span class="suggestion_publishercode">Published by [% suggestions_loo.publishercode | html %]</span> |
765 |
[% END %] |
766 |
[% IF ( suggestions_loo.publicationyear ) %] |
767 |
in <span class="suggestion_publicationyear"><em>[% suggestions_loo.publicationyear | html %]</em></span> |
768 |
[% END %] |
769 |
[% IF ( suggestions_loo.place ) %] |
770 |
in <span class="suggestion_place"><em>[% suggestions_loo.place | html %]</em></span> |
771 |
[% END %] |
772 |
[% IF ( suggestions_loo.collectiontitle ) %] |
773 |
; <span class="suggestion_collectiontitle">[% suggestions_loo.collectiontitle | html %]</span> |
774 |
[% END %] |
775 |
[% IF ( suggestions_loo.itemtype ) %] |
776 |
; <span class="suggestion_itype">[% AuthorisedValues.GetByCode( 'SUGGEST_FORMAT', suggestions_loo.itemtype, 0 ) | html %]</span> |
777 |
[% END %] |
778 |
<br /> |
779 |
[% IF ( suggestions_loo.note ) %] |
780 |
<div class="suggestion_note"><i class="fa fa-comment"></i> [% suggestions_loo.note | html %]</div> |
781 |
[% END %] |
782 |
[% IF suggestions_loo.archived %] |
783 |
<br /><i class="fa fa-archive"></i> Archived |
784 |
[% END %] |
785 |
</td> |
786 |
<td> |
787 |
<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% suggestions_loo.suggestedby | uri %]">[% suggestions_loo.surnamesuggestedby | html %][% IF ( suggestions_loo.firstnamesuggestedby ) %], [% suggestions_loo.firstnamesuggestedby | html %][% END %] [% IF (suggestions_loo.cardnumbersuggestedby ) %]([% suggestions_loo.cardnumbersuggestedby | html %])[% END %]</a> |
788 |
</td> |
789 |
<td data-order="[% suggestions_loo.suggesteddate | html %]"> |
790 |
[% IF ( suggestions_loo.suggesteddate ) %][% suggestions_loo.suggesteddate | $KohaDates %][% END %] |
791 |
</td> |
792 |
<td> |
793 |
<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% suggestions_loo.managedby | uri %]">[% suggestions_loo.surnamemanagedby | html %][% IF ( suggestions_loo.firstnamemanagedby ) %], [% suggestions_loo.firstnamemanagedby | html %][% END %]</a> |
794 |
</td> |
795 |
<td data-order="[% suggestions_loo.manageddate | html %]"> |
796 |
[% IF ( suggestions_loo.manageddate ) %][% suggestions_loo.manageddate | $KohaDates %][% END %] |
797 |
</td> |
798 |
<td> |
799 |
<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% suggestions_loo.lastmodificationby | uri %]">[% suggestions_loo.surnamelastmodificationby | html %][% IF ( suggestions_loo.firstnamelastmodificationby ) %], [% suggestions_loo.firstnamelastmodificationby | html %][% END %]</a> |
800 |
</td> |
801 |
<td data-order="[% suggestions_loo.lastmodificationdate | html %]"> |
802 |
[% IF ( suggestions_loo.lastmodificationdate ) %][% suggestions_loo.lastmodificationdate | $KohaDates %][% END %] |
803 |
</td> |
804 |
<td> |
805 |
[% suggestions_loo.date | $KohaDates %] |
806 |
</td> |
807 |
<td> |
808 |
[% Branches.GetName( suggestions_loo.branchcode ) | html %] |
809 |
</td> |
810 |
<td> |
811 |
[% suggestions_loo.budget_name | html %] |
812 |
</td> |
813 |
<td> |
814 |
[% IF ( suggestions_loo.ASKED ) %] |
815 |
Pending |
816 |
[% ELSIF ( suggestions_loo.ACCEPTED ) %] |
817 |
Accepted |
818 |
[% ELSIF ( suggestions_loo.ORDERED ) %] |
819 |
Ordered |
820 |
[% ELSIF ( suggestions_loo.REJECTED ) %] |
821 |
Rejected |
822 |
[% ELSIF ( suggestions_loo.CHECKED ) %] |
823 |
Checked |
824 |
[% ELSIF ( suggestions_loo.AVAILABLE ) %] |
825 |
Available |
826 |
[% ELSIF AuthorisedValues.GetByCode( 'SUGGEST_STATUS', suggestions_loo.STATUS ) %] |
827 |
[% AuthorisedValues.GetByCode( 'SUGGEST_STATUS', suggestions_loo.STATUS ) | html %] |
828 |
[% ELSE %] |
829 |
Status unknown |
830 |
[% END %] |
831 |
|
832 |
[% IF ( suggestions_loo.reason ) %] |
833 |
<br />([% suggestions_loo.reason | html %]) |
834 |
[% END %] |
835 |
</td> |
836 |
<td class="actions"> |
837 |
<div class="btn-group dropup"> |
838 |
<a class="btn btn-default btn-xs" role="button" href="suggestion.pl?suggestionid=[% suggestions_loo.suggestionid | html %]&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> |
839 |
<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="more_actions_[% suggestions_loo.suggestionid | html %]"> |
840 |
<li><a class="deletesuggestion" href="suggestion.pl?op=delete&suggestionid=[% suggestions_loo.suggestionid | html %]"><i class="fa fa-trash"></i> Delete</a></li> |
841 |
[% UNLESS suggestions_loo.archived %] |
842 |
<li><a class="archivesuggestion" href="suggestion.pl?op=archive&suggestionid=[% suggestions_loo.suggestionid | html %]"><i class="fa fa-archive"></i> Archive</a></li> |
843 |
[% ELSE %] |
844 |
<li><a class="unarchivesuggestion" href="suggestion.pl?op=unarchive&suggestionid=[% suggestions_loo.suggestionid | html %]"><i class="fa fa-archive"></i> Unarchive</a></li> |
845 |
[% END %] |
846 |
</ul> |
847 |
</div> |
848 |
</td> |
849 |
</tr> |
743 |
</tr> |
850 |
[% END # /FOREACH suggestions_loo %] |
744 |
</thead> |
851 |
</tbody> |
745 |
<tbody> |
852 |
</table> <!-- /#table_[% loop.count | html %] --> |
746 |
[% FOREACH suggestions_loo IN suggestion.suggestions_loop %] |
853 |
|
747 |
<tr> |
854 |
<div class="row"> |
748 |
<td> |
855 |
<h2 style="padding-left:1em;">Change selected suggestions</h2> |
749 |
<input type="checkbox" name="suggestionid" value="[% suggestions_loo.suggestionid | html %]" /> |
856 |
<div class="col-sm-4"> |
750 |
</td> |
857 |
<fieldset> |
751 |
<td> |
858 |
<div id="select-reason[% loop.index | html %]"> |
752 |
<a href="suggestion.pl?suggestionid=[% suggestions_loo.suggestionid | uri %]&op=show" title="suggestion" > |
859 |
<label for="STATUSreason[% loop.index | html %]">Mark selected as: </label> |
753 |
[% suggestions_loo.title | html %][% IF ( suggestions_loo.author ) %], by [% suggestions_loo.author | html %][% END %] |
860 |
<select name="STATUS" id="STATUSreason[% loop.index | html %]"> |
754 |
</a> |
861 |
<option value=""> -- Choose a status --</option> |
755 |
<br /> |
862 |
|
756 |
[% IF ( suggestions_loo.copyrightdate ) %] |
863 |
[% IF (statusselected_ASKED ) %] |
757 |
© <span class="suggestion_copyrightdate">[% suggestions_loo.copyrightdate | html %]</span> |
864 |
<option value="ASKED" selected="selected">Pending</option> |
758 |
[% END %] |
865 |
[% ELSE %] |
759 |
[% IF ( suggestions_loo.volumedesc ) %] |
866 |
<option value="ASKED">Pending</option> |
760 |
; <span class="suggestion_volume">Volume:<em>[% suggestions_loo.volumedesc | html %]</em></span> |
867 |
[% END %] |
761 |
[% END %] |
868 |
|
762 |
[% IF ( suggestions_loo.isbn ) %] |
869 |
[% IF (statusselected_ACCEPTED ) %] |
763 |
; <span class="suggestion_isbn">ISBN: <em>[% suggestions_loo.isbn | html %]</em></span> |
870 |
<option value="ACCEPTED" selected="selected">Accepted</option> |
764 |
[% END %] |
871 |
[% ELSE %] |
765 |
[% IF ( suggestions_loo.publishercode ) %] |
872 |
<option value="ACCEPTED">Accepted</option> |
766 |
; <span class="suggestion_publishercode">Published by [% suggestions_loo.publishercode | html %]</span> |
873 |
[% END %] |
767 |
[% END %] |
|
|
768 |
[% IF ( suggestions_loo.publicationyear ) %] |
769 |
in <span class="suggestion_publicationyear"><em>[% suggestions_loo.publicationyear | html %]</em></span> |
770 |
[% END %] |
771 |
[% IF ( suggestions_loo.place ) %] |
772 |
in <span class="suggestion_place"><em>[% suggestions_loo.place | html %]</em></span> |
773 |
[% END %] |
774 |
[% IF ( suggestions_loo.collectiontitle ) %] |
775 |
; <span class="suggestion_collectiontitle">[% suggestions_loo.collectiontitle | html %]</span> |
776 |
[% END %] |
777 |
[% IF ( suggestions_loo.itemtype ) %] |
778 |
; <span class="suggestion_itype">[% AuthorisedValues.GetByCode( 'SUGGEST_FORMAT', suggestions_loo.itemtype, 0 ) | html %]</span> |
779 |
[% END %] |
780 |
<br /> |
781 |
[% IF ( suggestions_loo.note ) %] |
782 |
<div class="suggestion_note"><i class="fa fa-comment"></i> [% suggestions_loo.note | html %]</div> |
783 |
[% END %] |
784 |
[% IF suggestions_loo.archived %] |
785 |
<br /><i class="fa fa-archive"></i> Archived |
786 |
[% END %] |
787 |
</td> |
788 |
<td> |
789 |
<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% suggestions_loo.suggestedby | uri %]">[% suggestions_loo.surnamesuggestedby | html %][% IF ( suggestions_loo.firstnamesuggestedby ) %], [% suggestions_loo.firstnamesuggestedby | html %][% END %] [% IF (suggestions_loo.cardnumbersuggestedby ) %]([% suggestions_loo.cardnumbersuggestedby | html %])[% END %]</a> |
790 |
</td> |
791 |
<td data-order="[% suggestions_loo.suggesteddate | html %]"> |
792 |
[% IF ( suggestions_loo.suggesteddate ) %][% suggestions_loo.suggesteddate | $KohaDates %][% END %] |
793 |
</td> |
794 |
<td> |
795 |
<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% suggestions_loo.managedby | uri %]">[% suggestions_loo.surnamemanagedby | html %][% IF ( suggestions_loo.firstnamemanagedby ) %], [% suggestions_loo.firstnamemanagedby | html %][% END %]</a> |
796 |
</td> |
797 |
<td data-order="[% suggestions_loo.manageddate | html %]"> |
798 |
[% IF ( suggestions_loo.manageddate ) %][% suggestions_loo.manageddate | $KohaDates %][% END %] |
799 |
</td> |
800 |
<td> |
801 |
<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% suggestions_loo.lastmodificationby | uri %]">[% suggestions_loo.surnamelastmodificationby | html %][% IF ( suggestions_loo.firstnamelastmodificationby ) %], [% suggestions_loo.firstnamelastmodificationby | html %][% END %]</a> |
802 |
</td> |
803 |
<td data-order="[% suggestions_loo.lastmodificationdate | html %]"> |
804 |
[% IF ( suggestions_loo.lastmodificationdate ) %][% suggestions_loo.lastmodificationdate | $KohaDates %][% END %] |
805 |
</td> |
806 |
<td> |
807 |
[% suggestions_loo.date | $KohaDates %] |
808 |
</td> |
809 |
<td> |
810 |
[% Branches.GetName( suggestions_loo.branchcode ) | html %] |
811 |
</td> |
812 |
<td> |
813 |
[% suggestions_loo.budget_name | html %] |
814 |
</td> |
815 |
<td> |
816 |
[% IF ( suggestions_loo.ASKED ) %] |
817 |
Pending |
818 |
[% ELSIF ( suggestions_loo.ACCEPTED ) %] |
819 |
Accepted |
820 |
[% ELSIF ( suggestions_loo.ORDERED ) %] |
821 |
Ordered |
822 |
[% ELSIF ( suggestions_loo.REJECTED ) %] |
823 |
Rejected |
824 |
[% ELSIF ( suggestions_loo.CHECKED ) %] |
825 |
Checked |
826 |
[% ELSIF ( suggestions_loo.AVAILABLE ) %] |
827 |
Available |
828 |
[% ELSIF AuthorisedValues.GetByCode( 'SUGGEST_STATUS', suggestions_loo.STATUS ) %] |
829 |
[% AuthorisedValues.GetByCode( 'SUGGEST_STATUS', suggestions_loo.STATUS ) | html %] |
830 |
[% ELSE %] |
831 |
Status unknown |
832 |
[% END %] |
874 |
|
833 |
|
875 |
[% IF (statusselected_CHECKED ) %] |
834 |
[% IF ( suggestions_loo.reason ) %] |
876 |
<option value="CHECKED" selected="selected">Checked</option> |
835 |
<br />([% suggestions_loo.reason | html %]) |
877 |
[% ELSE %] |
836 |
[% END %] |
878 |
<option value="CHECKED">Checked</option> |
837 |
</td> |
879 |
[% END %] |
838 |
<td class="actions"> |
|
|
839 |
<div class="btn-group dropup"> |
840 |
<a class="btn btn-default btn-xs" role="button" href="suggestion.pl?suggestionid=[% suggestions_loo.suggestionid | html %]&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> |
841 |
<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="more_actions_[% suggestions_loo.suggestionid | html %]"> |
842 |
<li><a class="deletesuggestion" href="suggestion.pl?op=delete&suggestionid=[% suggestions_loo.suggestionid | html %]"><i class="fa fa-trash"></i> Delete</a></li> |
843 |
[% UNLESS suggestions_loo.archived %] |
844 |
<li><a class="archivesuggestion" href="suggestion.pl?op=archive&suggestionid=[% suggestions_loo.suggestionid | html %]"><i class="fa fa-archive"></i> Archive</a></li> |
845 |
[% ELSE %] |
846 |
<li><a class="unarchivesuggestion" href="suggestion.pl?op=unarchive&suggestionid=[% suggestions_loo.suggestionid | html %]"><i class="fa fa-archive"></i> Unarchive</a></li> |
847 |
[% END %] |
848 |
</ul> |
849 |
</div> |
850 |
</td> |
851 |
</tr> |
852 |
[% END # /FOREACH suggestions_loo %] |
853 |
</tbody> |
854 |
</table> <!-- /#table_[% loop.count | html %] --> |
855 |
|
856 |
<div class="row"> |
857 |
<h2 style="padding-left:1em;">Change selected suggestions</h2> |
858 |
<div class="col-sm-4"> |
859 |
<fieldset> |
860 |
<div id="select-reason[% loop.index | html %]"> |
861 |
<label for="STATUSreason[% loop.index | html %]">Mark selected as: </label> |
862 |
<select name="STATUS" id="STATUSreason[% loop.index | html %]"> |
863 |
<option value=""> -- Choose a status --</option> |
864 |
|
865 |
[% IF (statusselected_ASKED ) %] |
866 |
<option value="ASKED" selected="selected">Pending</option> |
867 |
[% ELSE %] |
868 |
<option value="ASKED">Pending</option> |
869 |
[% END %] |
880 |
|
870 |
|
881 |
[% IF ( statusselected_REJECTED ) %] |
871 |
[% IF (statusselected_ACCEPTED ) %] |
882 |
<option value="REJECTED" selected="selected">Rejected</option> |
872 |
<option value="ACCEPTED" selected="selected">Accepted</option> |
883 |
[% ELSE %] |
873 |
[% ELSE %] |
884 |
<option value="REJECTED">Rejected</option> |
874 |
<option value="ACCEPTED">Accepted</option> |
885 |
[% END %] |
875 |
[% END %] |
886 |
|
876 |
|
887 |
[% IF ( statusselected_ORDERED ) %] |
877 |
[% IF (statusselected_CHECKED ) %] |
888 |
<option value="ORDERED" selected="selected">Ordered</option> |
878 |
<option value="CHECKED" selected="selected">Checked</option> |
889 |
[% ELSE %] |
879 |
[% ELSE %] |
890 |
<option value="ORDERED">Ordered</option> |
880 |
<option value="CHECKED">Checked</option> |
891 |
[% END %] |
881 |
[% END %] |
892 |
|
882 |
|
893 |
[% FOREACH s IN SuggestionStatuses %] |
883 |
[% IF ( statusselected_REJECTED ) %] |
894 |
<option value="[% s.authorised_value | html %]">[% s.lib | html %]</option> |
884 |
<option value="REJECTED" selected="selected">Rejected</option> |
895 |
[% END %] |
885 |
[% ELSE %] |
896 |
</select> |
886 |
<option value="REJECTED">Rejected</option> |
|
|
887 |
[% END %] |
897 |
|
888 |
|
898 |
<label for="choosereason[% loop.index | html %]">with this reason:</label> |
889 |
[% IF ( statusselected_ORDERED ) %] |
899 |
<select name="reason" id="choosereason[% loop.index | html %]"> |
890 |
<option value="ORDERED" selected="selected">Ordered</option> |
900 |
<option value=""> -- Choose a reason -- </option> |
891 |
[% ELSE %] |
901 |
[% FOREACH reasonsloo IN suggestion.reasonsloop %] |
892 |
<option value="ORDERED">Ordered</option> |
902 |
<option value="[% reasonsloo.lib | html %]">[% reasonsloo.lib | html %]</option> |
893 |
[% END %] |
903 |
[% END %] |
|
|
904 |
<option value="other">Others...</option> |
905 |
</select> |
906 |
|
894 |
|
907 |
<span class="other_reason"> |
895 |
[% FOREACH s IN SuggestionStatuses %] |
908 |
<input type="text" size="31" name="other_reason" placeholder="please note your reason here..." /> |
896 |
<option value="[% s.authorised_value | html %]">[% s.lib | html %]</option> |
909 |
<a href="#" class="cancel_note">Cancel</a> |
897 |
[% END %] |
910 |
</span> |
898 |
</select> |
911 |
</div> |
|
|
912 |
|
899 |
|
913 |
<input type="hidden" name="branchcode" value="[% branchfilter | html %]" /> |
900 |
<label for="choosereason[% loop.index | html %]">with this reason:</label> |
914 |
<input type="hidden" name="filter_archived" value="[% filter_archived | html %]" /> |
901 |
<select name="reason" id="choosereason[% loop.index | html %]"> |
915 |
<fieldset class="action"> |
902 |
<option value=""> -- Choose a reason -- </option> |
916 |
<button type="submit" class="btn btn-default btn-xs" value="update_status">Submit</button> |
903 |
[% FOREACH reasonsloo IN suggestion.reasonsloop %] |
|
|
904 |
<option value="[% reasonsloo.lib | html %]">[% reasonsloo.lib | html %]</option> |
905 |
[% END %] |
906 |
<option value="other">Others...</option> |
907 |
</select> |
908 |
|
909 |
<span class="other_reason"> |
910 |
<input type="text" size="31" name="other_reason" placeholder="please note your reason here..." /> |
911 |
<a href="#" class="cancel_note">Cancel</a> |
912 |
</span> |
913 |
</div> |
914 |
|
915 |
<input type="hidden" name="branchcode" value="[% branchfilter | html %]" /> |
916 |
<input type="hidden" name="filter_archived" value="[% filter_archived | html %]" /> |
917 |
<fieldset class="action"> |
918 |
<button type="submit" class="btn btn-default btn-xs" value="update_status">Submit</button> |
919 |
</fieldset> |
917 |
</fieldset> |
920 |
</fieldset> |
918 |
</fieldset> |
921 |
</div> <!-- /.col-sm-4 --> |
919 |
</div> <!-- /.col-sm-4 --> |
922 |
|
920 |
|
923 |
<div class="col-sm-4"> |
921 |
<div class="col-sm-4"> |
924 |
<fieldset> |
922 |
<fieldset> |
925 |
<label> |
923 |
<label> |
926 |
Update item types with: |
924 |
Update item types with: |
927 |
[% PROCESS 'av-build-dropbox.inc' name="suggestion_itemtype", category="SUGGEST_FORMAT", size = 20 %] |
925 |
[% PROCESS 'av-build-dropbox.inc' name="suggestion_itemtype", category="SUGGEST_FORMAT", size = 20 %] |
928 |
</label> |
926 |
</label> |
929 |
<input type="hidden" name="branchcode" value="[% branchfilter | html %]" /> |
927 |
<input type="hidden" name="branchcode" value="[% branchfilter | html %]" /> |
930 |
<input type="hidden" name="filter_archived" value="[% filter_archived | html %]" /> |
928 |
<input type="hidden" name="filter_archived" value="[% filter_archived | html %]" /> |
931 |
<fieldset class="action"> |
929 |
<fieldset class="action"> |
932 |
<button type="submit" class="btn btn-default btn-xs" value="update_itemtype">Submit</button> |
930 |
<button type="submit" class="btn btn-default btn-xs" value="update_itemtype">Submit</button> |
933 |
</fieldset> |
931 |
</fieldset> |
934 |
</fieldset> |
932 |
</fieldset> |
935 |
</div> <!-- /.col-sm-4 --> |
933 |
</div> <!-- /.col-sm-4 --> |
936 |
|
934 |
|
937 |
<div class="col-sm-2"> |
935 |
<div class="col-sm-2"> |
938 |
<fieldset> |
936 |
<fieldset> |
939 |
<span class="label">Update manager</span><br/> |
937 |
<span class="label">Update manager</span><br/> |
940 |
<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> |
938 |
<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> |
941 |
<span id="managedby_name[% loop.count | html %]"></span> |
939 |
<span id="managedby_name[% loop.count | html %]"></span> |
942 |
<input type="hidden" name="suggestion_managedby" id="managedby[% loop.count | html %]" value="[% logged_in_user.borrowernumber | html %]" /> |
940 |
<input type="hidden" name="suggestion_managedby" id="managedby[% loop.count | html %]" value="[% logged_in_user.borrowernumber | html %]" /> |
943 |
<input type="hidden" name="branchcode" value="[% branchfilter | html %]" /> |
941 |
<input type="hidden" name="branchcode" value="[% branchfilter | html %]" /> |
944 |
<input type="hidden" name="filter_archived" value="[% filter_archived | html %]" /> |
942 |
<input type="hidden" name="filter_archived" value="[% filter_archived | html %]" /> |
945 |
<fieldset class="action"> |
943 |
<fieldset class="action"> |
946 |
<button type="submit" class="btn btn-default btn-xs" value="update_manager">Submit</button> |
944 |
<button type="submit" class="btn btn-default btn-xs" value="update_manager">Submit</button> |
947 |
</fieldset> |
945 |
</fieldset> |
948 |
</fieldset> |
946 |
</fieldset> |
949 |
</div> <!-- /.col-sm-2 --> |
947 |
</div> <!-- /.col-sm-2 --> |
950 |
|
948 |
|
951 |
<div class="col-sm-2"> |
949 |
<div class="col-sm-2"> |
952 |
<fieldset> |
950 |
<fieldset> |
953 |
<span class="label">Delete selected</span> |
951 |
<span class="label">Delete selected</span> |
954 |
<input type="hidden" name="branchcode" value="[% branchfilter | html %]" /> |
952 |
<input type="hidden" name="branchcode" value="[% branchfilter | html %]" /> |
955 |
<input type="hidden" name="filter_archived" value="[% filter_archived | html %]" /> |
953 |
<input type="hidden" name="filter_archived" value="[% filter_archived | html %]" /> |
956 |
<fieldset class="action"> |
954 |
<fieldset class="action"> |
957 |
<button type="submit" class="btn btn-default btn-xs" value="delete">Delete</button> |
955 |
<button type="submit" class="btn btn-default btn-xs" value="delete">Delete</button> |
958 |
</fieldset> |
956 |
</fieldset> |
959 |
</fieldset> |
957 |
</fieldset> |
960 |
</div> <!-- /.col-sm-2 --> |
958 |
</div> <!-- /.col-sm-2 --> |
961 |
</div> <!-- /.row --> |
959 |
</div> <!-- /.row --> |
|
|
960 |
|
962 |
|
961 |
[% ELSE %] |
963 |
[% ELSE %] |
962 |
<strong>No results.</strong> |
964 |
<strong>No results.</strong> |
963 |
[% END # /IF ( suggestion.suggestions_loop ) %] |
965 |
[% END # /IF ( suggestion.suggestions_loop ) %] |
964 |
</form> <!-- /.update_suggestions --> |
966 |
</form> <!-- /.update_suggestions --> |
965 |
</div> <!-- /#[% suggestion.suggestiontype | html %] --> |
967 |
</div> <!-- /#[% suggestion.suggestiontype | html %] --> |
966 |
[% END # /FOREACH suggestion %] |
968 |
[% END # /FOREACH suggestion %] |
967 |
[% UNLESS ( notabs ) %] |
969 |
[% UNLESS ( notabs ) %] |
|
|
970 |
</div> <!-- /.tab-content --> |
968 |
</div> <!-- /.notabs --> |
971 |
</div> <!-- /.notabs --> |
969 |
[% END # /UNLESS notabs %] |
972 |
[% END # /UNLESS notabs %] |
970 |
[% END # /IF op == 'else' %] |
973 |
[% END # /IF op == 'else' %] |
Lines 1303-1310
Link Here
|
1303 |
[% INCLUDE 'columns_settings.inc' %] |
1306 |
[% INCLUDE 'columns_settings.inc' %] |
1304 |
<script> |
1307 |
<script> |
1305 |
$(document).ready(function() { |
1308 |
$(document).ready(function() { |
1306 |
$('#suggestiontabs').tabs(); |
1309 |
if( $("#suggestiontabs .tab-pane.active").length < 1 ){ |
1307 |
|
1310 |
$("#suggestiontabs a:first").tab("show"); |
|
|
1311 |
} |
1308 |
columns_settings = [% TablesSettings.GetColumns( 'acqui', 'suggestions', 'suggestions', 'json' ) | $raw %] |
1312 |
columns_settings = [% TablesSettings.GetColumns( 'acqui', 'suggestions', 'suggestions', 'json' ) | $raw %] |
1309 |
[% FOREACH suggestion IN suggestions %] |
1313 |
[% FOREACH suggestion IN suggestions %] |
1310 |
[% IF ( suggestion.suggestions_loop ) %] |
1314 |
[% IF ( suggestion.suggestions_loop ) %] |
1311 |
- |
|
|