Lines 45-113
Link Here
|
45 |
|
45 |
|
46 |
[% IF ( lists ) %] |
46 |
[% IF ( lists ) %] |
47 |
|
47 |
|
48 |
<table id="patron-lists-table"> |
48 |
<div class="page-section"> |
49 |
<thead> |
49 |
<table id="patron-lists-table"> |
50 |
<tr> |
50 |
<thead> |
51 |
<th>Name</th> |
|
|
52 |
<th>Patrons in list</th> |
53 |
<th>Shared</th> |
54 |
<th class="NoSort"> </th> |
55 |
</tr> |
56 |
</thead> |
57 |
|
58 |
<tbody> |
59 |
[% FOREACH l IN lists %] |
60 |
[% SET shared_by_other = l.owner.id != logged_in_user.id %] |
61 |
<tr> |
51 |
<tr> |
62 |
<td><a href="/cgi-bin/koha/patron_lists/list.pl?patron_list_id=[% l.patron_list_id | uri %]">[% l.name | html %]</a></td> |
52 |
<th>Name</th> |
63 |
<td>[% l.patron_list_patrons_rs.count || 0 | html %]</td> |
53 |
<th>Patrons in list</th> |
64 |
<td> |
54 |
<th>Shared</th> |
65 |
[% IF l.shared %] |
55 |
<th class="NoSort"> </th> |
66 |
[% IF shared_by_other %] |
56 |
</tr> |
67 |
by <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% l.owner.id | uri %]">[% INCLUDE 'patron-title.inc' patron=l.owner %]</a> |
57 |
</thead> |
68 |
[% ELSE %] |
58 |
|
69 |
by you |
59 |
<tbody> |
70 |
[% END %] |
60 |
[% FOREACH l IN lists %] |
71 |
[% END %] |
61 |
[% SET shared_by_other = l.owner.id != logged_in_user.id %] |
72 |
</td> |
62 |
<tr> |
73 |
<td> |
63 |
<td><a href="/cgi-bin/koha/patron_lists/list.pl?patron_list_id=[% l.patron_list_id | uri %]">[% l.name | html %]</a></td> |
74 |
<div class="btn-group dropup"> |
64 |
<td>[% l.patron_list_patrons_rs.count || 0 | html %]</td> |
75 |
<a class="btn btn-default btn-xs dropdown-toggle" id="listactions[% l.patron_list_id | html %]" role="button" data-toggle="dropdown" href="#"> |
65 |
<td> |
76 |
Actions <b class="caret"></b> |
66 |
[% IF l.shared %] |
77 |
</a> |
67 |
[% IF shared_by_other %] |
78 |
<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="listactions[% l.patron_list_id | html %]"> |
68 |
by <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% l.owner.id | uri %]">[% INCLUDE 'patron-title.inc' patron=l.owner %]</a> |
79 |
<li><a href="/cgi-bin/koha/patron_lists/list.pl?patron_list_id=[% l.patron_list_id | uri %]"><i class="fa fa-user"></i> Add patrons</a></li> |
69 |
[% ELSE %] |
80 |
[% UNLESS shared_by_other %] |
70 |
by you |
81 |
<li><a href="/cgi-bin/koha/patron_lists/add-modify.pl?patron_list_id=[% l.patron_list_id | uri %]"><i class="fa fa-pencil"></i> Edit list</a></li> |
|
|
82 |
<li><a class="delete_patron" href="/cgi-bin/koha/patron_lists/delete.pl?patron_list_id=[% l.patron_list_id | html %]" data-list-name="[% l.name | html %]"><i class="fa fa-trash"></i> Delete list</a></li> |
83 |
[% END %] |
71 |
[% END %] |
84 |
[% IF ( l.patron_list_patrons_rs.count ) %] |
72 |
[% END %] |
85 |
<li class="divider"></li> |
73 |
</td> |
86 |
<li> |
74 |
<td> |
87 |
<a class="print_cards" href="/cgi-bin/koha/patroncards/print.pl?patronlist_id=[% l.patron_list_id | html %]" data-patron_list_id="[% l.patron_list_id | html %]"><i class="fa fa-print"></i> Print patron cards</a> |
75 |
<div class="btn-group dropup"> |
88 |
</li> |
76 |
<a class="btn btn-default btn-xs dropdown-toggle" id="listactions[% l.patron_list_id | html %]" role="button" data-toggle="dropdown" href="#"> |
89 |
[% IF CAN_user_tools_edit_patrons %] |
77 |
Actions <b class="caret"></b> |
90 |
<li> |
78 |
</a> |
91 |
<a href="/cgi-bin/koha/tools/modborrowers.pl?patron_list_id=[% l.patron_list_id | uri %]&op=show"> |
79 |
<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="listactions[% l.patron_list_id | html %]"> |
92 |
<i class="fa fa-pencil"></i> Batch edit patrons |
80 |
<li><a href="/cgi-bin/koha/patron_lists/list.pl?patron_list_id=[% l.patron_list_id | uri %]"><i class="fa fa-user"></i> Add patrons</a></li> |
93 |
</a> |
81 |
[% UNLESS shared_by_other %] |
94 |
</li> |
82 |
<li><a href="/cgi-bin/koha/patron_lists/add-modify.pl?patron_list_id=[% l.patron_list_id | uri %]"><i class="fa fa-pencil"></i> Edit list</a></li> |
|
|
83 |
<li><a class="delete_patron" href="/cgi-bin/koha/patron_lists/delete.pl?patron_list_id=[% l.patron_list_id | html %]" data-list-name="[% l.name | html %]"><i class="fa fa-trash"></i> Delete list</a></li> |
95 |
[% END %] |
84 |
[% END %] |
96 |
[% IF CAN_user_tools_delete_anonymize_patrons %] |
85 |
[% IF ( l.patron_list_patrons_rs.count ) %] |
|
|
86 |
<li class="divider"></li> |
97 |
<li> |
87 |
<li> |
98 |
<a href="/cgi-bin/koha/tools/cleanborrowers.pl?step=2&patron_list_id=[% l.patron_list_id | uri %]&checkbox=borrower"> |
88 |
<a class="print_cards" href="/cgi-bin/koha/patroncards/print.pl?patronlist_id=[% l.patron_list_id | html %]" data-patron_list_id="[% l.patron_list_id | html %]"><i class="fa fa-print"></i> Print patron cards</a> |
99 |
<i class="fa fa-trash"></i> Batch delete patrons |
|
|
100 |
</a> |
101 |
</li> |
89 |
</li> |
|
|
90 |
[% IF CAN_user_tools_edit_patrons %] |
91 |
<li> |
92 |
<a href="/cgi-bin/koha/tools/modborrowers.pl?patron_list_id=[% l.patron_list_id | uri %]&op=show"> |
93 |
<i class="fa fa-pencil"></i> Batch edit patrons |
94 |
</a> |
95 |
</li> |
96 |
[% END %] |
97 |
[% IF CAN_user_tools_delete_anonymize_patrons %] |
98 |
<li> |
99 |
<a href="/cgi-bin/koha/tools/cleanborrowers.pl?step=2&patron_list_id=[% l.patron_list_id | uri %]&checkbox=borrower"> |
100 |
<i class="fa fa-trash"></i> Batch delete patrons |
101 |
</a> |
102 |
</li> |
103 |
[% END %] |
102 |
[% END %] |
104 |
[% END %] |
103 |
[% END %] |
105 |
</ul> |
104 |
</ul> |
106 |
</div> |
105 |
</div> |
107 |
</td> |
106 |
</td> |
108 |
</tr> |
107 |
</tr> |
109 |
[% END %] |
108 |
[% END %] |
110 |
</tbody> |
109 |
</tbody> |
111 |
</table> |
110 |
</table> |
112 |
</div> <!-- /.page-section --> |
111 |
|
113 |
|
112 |
<!-- Modal to print patron cards --> |
114 |
<!-- Modal to print patron cards --> |
113 |
<div class="modal" id="patronExportModal" tabindex="-1" role="dialog" aria-labelledby="patronExportModal_label" aria-hidden="true"> |
115 |
<div class="modal" id="patronExportModal" tabindex="-1" role="dialog" aria-labelledby="patronExportModal_label" aria-hidden="true"> |
114 |
- |
|
|