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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/notices.tt (-6 / +7 lines)
Lines 46-52 Link Here
46
                    [% INCLUDE 'messages.inc' %]
46
                    [% INCLUDE 'messages.inc' %]
47
47
48
                    [% INCLUDE 'members-toolbar.inc' %]
48
                    [% INCLUDE 'members-toolbar.inc' %]
49
                    <h1>Sent notices for [% INCLUDE 'patron-title.inc' %]</h1>
49
                    <h1>Notices for [% INCLUDE 'patron-title.inc' %]</h1>
50
51
                    <div class="alert alert-warning">Printing a notice will mark it as sent.</div>
50
52
51
                    [% IF ( QUEUED_MESSAGES ) %]
53
                    [% IF ( QUEUED_MESSAGES ) %]
52
                    <div class="page-section">
54
                    <div class="page-section">
Lines 70-76 Link Here
70
                                <tbody>
72
                                <tbody>
71
                                    [% FOREACH QUEUED_MESSAGE IN QUEUED_MESSAGES %]
73
                                    [% FOREACH QUEUED_MESSAGE IN QUEUED_MESSAGES %]
72
                                        <tr>
74
                                        <tr>
73
                                            <td><input type="checkbox" name="message_ids" value="[% QUEUED_MESSAGE.message_id | html %]" [% IF QUEDUE_MESSAGE.status == 'pending' %]disabled="disabled"[% END %]></td>
75
                                            <td><input type="checkbox" name="message_ids" value="[% QUEUED_MESSAGE.message_id | html %]" [% IF QUEUED_MESSAGE.status == 'pending' %]disabled="disabled"[% END %]></td>
74
                                            <td data-order="[% QUEUED_MESSAGE.time_queued | html %]">[% QUEUED_MESSAGE.time_queued | $KohaDates  with_hours => 1 %]</td>
76
                                            <td data-order="[% QUEUED_MESSAGE.time_queued | html %]">[% QUEUED_MESSAGE.time_queued | $KohaDates  with_hours => 1 %]</td>
75
                                            <td>
77
                                            <td>
76
                                                <a class="notice-title" data-noticeid="[% QUEUED_MESSAGE.message_id | html %]" data-status="[% QUEUED_MESSAGE.status | html %]" data-borrowernumber="[% borrowernumber | html %]" href="/cgi-bin/koha/members/notices.pl?borrowernumber=[% borrowernumber | uri %]&amp;noticeid=[% QUEUED_MESSAGE.message_id | uri %]">[% QUEUED_MESSAGE.subject | html %]</a>
78
                                                <a class="notice-title" data-noticeid="[% QUEUED_MESSAGE.message_id | html %]" data-status="[% QUEUED_MESSAGE.status | html %]" data-borrowernumber="[% borrowernumber | html %]" href="/cgi-bin/koha/members/notices.pl?borrowernumber=[% borrowernumber | uri %]&amp;noticeid=[% QUEUED_MESSAGE.message_id | uri %]">[% QUEUED_MESSAGE.subject | html %]</a>
Lines 119-125 Link Here
119
                                                    [% END %]
121
                                                    [% END %]
120
                                                [% END %]
122
                                                [% END %]
121
                                            </td>
123
                                            </td>
122
                                            <td class="actions"><a target="_blank" class="btn btn-default btn-xs" href="/cgi-bin/koha/tools/print_notice.pl?message_ids=[% QUEUED_MESSAGE.message_id | uri %]"><i class="fa fa-print"></i> Print</a></td>
124
                                            <td class="actions">[% IF QUEUED_MESSAGE.status != 'pending' %]<a target="_blank" class="btn btn-default btn-xs" href="/cgi-bin/koha/tools/print_notice.pl?message_ids=[% QUEUED_MESSAGE.message_id | uri %]"><i class="fa fa-print"></i> Print</a>[% END %]</td>
123
                                        </tr>
125
                                        </tr>
124
                                    [% END %]
126
                                    [% END %]
125
                                </tbody>
127
                                </tbody>
Lines 130-136 Link Here
130
                        </form>
132
                        </form>
131
                    </div> <!-- /.page-section -->
133
                    </div> <!-- /.page-section -->
132
                    [% ELSE %]
134
                    [% ELSE %]
133
                    <div class="alert alert-info">There is no record of any messages that have been sent to this patron.</div>
135
                    <div class="alert alert-info">There is no record of any messages that have been queued for this patron.</div>
134
                    [% END %]
136
                    [% END %]
135
                </main>
137
                </main>
136
            </div> <!-- /.col-md-10.order-md-2 -->
138
            </div> <!-- /.col-md-10.order-md-2 -->
Lines 211-217 Link Here
211
213
212
            $(".select_all").click(function(e){
214
            $(".select_all").click(function(e){
213
                e.preventDefault();
215
                e.preventDefault();
214
                $("input[name='message_ids']").each(function(){
216
                $("input[name='message_ids']:not(:disabled)").each(function(){
215
                    $(this).prop("checked", true);
217
                    $(this).prop("checked", true);
216
                });
218
                });
217
            });
219
            });
218
- 

Return to bug 33260