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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/notices.tt (-6 / +9 lines)
Lines 40-46 Link Here
40
[% WRAPPER 'main-container.inc' aside='circ-menu' %]
40
[% WRAPPER 'main-container.inc' aside='circ-menu' %]
41
41
42
    [% INCLUDE 'members-toolbar.inc' %]
42
    [% INCLUDE 'members-toolbar.inc' %]
43
    <h1>Sent notices for [% INCLUDE 'patron-title.inc' %]</h1>
43
    <h1>Notices for [% INCLUDE 'patron-title.inc' %]</h1>
44
45
    <div class="alert alert-warning">Printing a notice will mark it as sent.</div>
44
46
45
    [% IF ( QUEUED_MESSAGES ) %]
47
    [% IF ( QUEUED_MESSAGES ) %]
46
        <div class="page-section">
48
        <div class="page-section">
Lines 66-72 Link Here
66
                    <tbody>
68
                    <tbody>
67
                        [% FOREACH QUEUED_MESSAGE IN QUEUED_MESSAGES %]
69
                        [% FOREACH QUEUED_MESSAGE IN QUEUED_MESSAGES %]
68
                            <tr>
70
                            <tr>
69
                                <td><input type="checkbox" name="message_ids" value="[% QUEUED_MESSAGE.message_id | html %]" [% IF QUEDUE_MESSAGE.status == 'pending' %]disabled="disabled"[% END %] /></td>
71
                                <td><input type="checkbox" name="message_ids" value="[% QUEUED_MESSAGE.message_id | html %]" [% IF QUEUED_MESSAGE.status == 'pending' %]disabled="disabled"[% END %] /></td>
70
                                <td data-order="[% QUEUED_MESSAGE.time_queued | html %]">[% QUEUED_MESSAGE.time_queued | $KohaDates  with_hours => 1 %]</td>
72
                                <td data-order="[% QUEUED_MESSAGE.time_queued | html %]">[% QUEUED_MESSAGE.time_queued | $KohaDates  with_hours => 1 %]</td>
71
                                <td>
73
                                <td>
72
                                    <a
74
                                    <a
Lines 145-151 Link Here
145
                                    [% END %]
147
                                    [% END %]
146
                                </td>
148
                                </td>
147
                                <td class="actions"
149
                                <td class="actions"
148
                                    ><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
150
                                    >[% IF QUEUED_MESSAGE.status != 'pending' %]
151
                                        <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>
152
                                    [% END %]</td
149
                                >
153
                                >
150
                            </tr>
154
                            </tr>
151
                        [% END %]
155
                        [% END %]
Lines 158-164 Link Here
158
        </div>
162
        </div>
159
        <!-- /.page-section -->
163
        <!-- /.page-section -->
160
    [% ELSE %]
164
    [% ELSE %]
161
        <div class="alert alert-info">There is no record of any messages that have been sent to this patron.</div>
165
        <div class="alert alert-info">There is no record of any messages that have been queued for this patron.</div>
162
    [% END %]
166
    [% END %]
163
[% END %]
167
[% END %]
164
<!-- Modal -->
168
<!-- Modal -->
Lines 233-239 Link Here
233
237
234
            $(".select_all").click(function (e) {
238
            $(".select_all").click(function (e) {
235
                e.preventDefault();
239
                e.preventDefault();
236
                $("input[name='message_ids']").each(function () {
240
                $("input[name='message_ids']:not(:disabled)").each(function () {
237
                    $(this).prop("checked", true);
241
                    $(this).prop("checked", true);
238
                });
242
                });
239
            });
243
            });
240
- 

Return to bug 33260