|
Lines 76-120
Link Here
|
| 76 |
| <a class="ShowAll"><i class="fa fa-bars"></i> Show all</a> |
76 |
| <a class="ShowAll"><i class="fa fa-bars"></i> Show all</a> |
| 77 |
</div> |
77 |
</div> |
| 78 |
|
78 |
|
| 79 |
<table id="notestable"> |
79 |
<div class="page-section"> |
| 80 |
<thead> |
80 |
<table id="notestable"> |
| 81 |
<tr> |
81 |
<thead> |
| 82 |
<th class="NoSort"> </th> |
|
|
| 83 |
<th class="anti-the">Title</th> |
| 84 |
<th>Note</th> |
| 85 |
<th>Date</th> |
| 86 |
<th>Set by</th> |
| 87 |
<th>Status</th> |
| 88 |
<th class="NoSort noExport">Actions</th> |
| 89 |
</tr> |
| 90 |
</thead> |
| 91 |
<tbody> |
| 92 |
[% FOREACH note IN notes %] |
| 93 |
<tr> |
82 |
<tr> |
| 94 |
<td><input type="checkbox" name="issue_ids" value="[% note.issue_id | html %]"></td> |
83 |
<th class="NoSort"> </th> |
| 95 |
<td>[% note.item.biblio.title | html %] - [% note.item.biblio.author | html %] (<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% note.item.biblionumber | uri %]">[% note.item.barcode | html %]</a>)</td> |
84 |
<th class="anti-the">Title</th> |
| 96 |
<td>[% note.note | html %]</td> |
85 |
<th>Note</th> |
| 97 |
<td data-order="[% note.notedate | html %]">[% note.notedate | $KohaDates %]</td> |
86 |
<th>Date</th> |
| 98 |
<td>[% INCLUDE 'patron-title.inc' patron => note.patron hide_patron_infos_if_needed=1 %]</td> |
87 |
<th>Set by</th> |
| 99 |
<td class="seen[% note.noteseen | html %]"> |
88 |
<th>Status</th> |
| 100 |
[% IF ( note.noteseen == 0 ) %] |
89 |
<th class="NoSort noExport">Actions</th> |
| 101 |
<span id="status_[% note.issue_id | html %]">Not seen</span> |
|
|
| 102 |
[% ELSIF ( note.noteseen == 1 ) %] |
| 103 |
<span id="status_[% note.issue_id | html %]">Seen</span> |
| 104 |
[% END %] |
| 105 |
</td> |
| 106 |
<td class="actions"> |
| 107 |
[% IF ( note.noteseen == 1 ) %] |
| 108 |
<button name="seen" data-issue_id="[% note.issue_id | html %]" class="seen btn btn-default btn-xs" disabled="disabled"><i class="fa fa-eye"></i> Mark seen</button> <button name="notseen" data-issue_id="[% note.issue_id | html %]" class="notseen btn btn-default btn-xs"><i class="fa fa-eye-slash"></i> Mark not seen</button> |
| 109 |
[% ELSIF ( note.noteseen == 0 ) %] |
| 110 |
<button name="seen" data-issue_id="[% note.issue_id | html %]" class="seen btn btn-default btn-xs"><i class="fa fa-eye"></i> Mark seen</button> <button name="notseen" data-issue_id="[% note.issue_id | html %]" class="notseen btn btn-default btn-xs" disabled="disabled"><i class="fa fa-eye-slash"></i> Mark not seen</button> |
| 111 |
[% END %] |
| 112 |
</td> |
| 113 |
</tr> |
90 |
</tr> |
| 114 |
[% END %] |
91 |
</thead> |
| 115 |
</tbody> |
92 |
<tbody> |
| 116 |
</table> |
93 |
[% FOREACH note IN notes %] |
| 117 |
|
94 |
<tr> |
|
|
95 |
<td><input type="checkbox" name="issue_ids" value="[% note.issue_id | html %]"></td> |
| 96 |
<td>[% note.item.biblio.title | html %] - [% note.item.biblio.author | html %] (<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% note.item.biblionumber | uri %]">[% note.item.barcode | html %]</a>)</td> |
| 97 |
<td>[% note.note | html %]</td> |
| 98 |
<td data-order="[% note.notedate | html %]">[% note.notedate | $KohaDates %]</td> |
| 99 |
<td>[% INCLUDE 'patron-title.inc' patron => note.patron hide_patron_infos_if_needed=1 %]</td> |
| 100 |
<td class="seen[% note.noteseen | html %]"> |
| 101 |
[% IF ( note.noteseen == 0 ) %] |
| 102 |
<span id="status_[% note.issue_id | html %]">Not seen</span> |
| 103 |
[% ELSIF ( note.noteseen == 1 ) %] |
| 104 |
<span id="status_[% note.issue_id | html %]">Seen</span> |
| 105 |
[% END %] |
| 106 |
</td> |
| 107 |
<td class="actions"> |
| 108 |
[% IF ( note.noteseen == 1 ) %] |
| 109 |
<button name="seen" data-issue_id="[% note.issue_id | html %]" class="seen btn btn-default btn-xs" disabled="disabled"><i class="fa fa-eye"></i> Mark seen</button> <button name="notseen" data-issue_id="[% note.issue_id | html %]" class="notseen btn btn-default btn-xs"><i class="fa fa-eye-slash"></i> Mark not seen</button> |
| 110 |
[% ELSIF ( note.noteseen == 0 ) %] |
| 111 |
<button name="seen" data-issue_id="[% note.issue_id | html %]" class="seen btn btn-default btn-xs"><i class="fa fa-eye"></i> Mark seen</button> <button name="notseen" data-issue_id="[% note.issue_id | html %]" class="notseen btn btn-default btn-xs" disabled="disabled"><i class="fa fa-eye-slash"></i> Mark not seen</button> |
| 112 |
[% END %] |
| 113 |
</td> |
| 114 |
</tr> |
| 115 |
[% END %] |
| 116 |
</tbody> |
| 117 |
</table> |
| 118 |
</div> |
| 118 |
</form> |
119 |
</form> |
| 119 |
|
120 |
|
| 120 |
[% ELSE %] |
121 |
[% ELSE %] |
| 121 |
- |
|
|