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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/notices.tt (-43 / +40 lines)
Lines 49-101 Link Here
49
    <div class="row">
49
    <div class="row">
50
        <div class="col-sm-10 col-sm-push-2">
50
        <div class="col-sm-10 col-sm-push-2">
51
            <main>
51
            <main>
52
                [% INCLUDE 'messages.inc' %]
52
53
53
                <h1>Notices management</h1>
54
                <h1>Notices management</h1>
54
55
55
                [% IF notices && notices.count > 0 %]
56
57
                <div class="dialog message">Printing a notice will mark it as sent.</div>
56
                <div class="dialog message">Printing a notice will mark it as sent.</div>
58
57
59
                <span id="checkbox_actions"><a href="#" class="select_all"><i class="fa fa-check"></i> Select all</a> | <a href="#" class="clear_all"><i class="fa fa-remove"></i> Clear all</a></span>
58
                [% IF notices && notices.count > 0 %]
60
59
                <div class="page-section">
61
                <form id="print_multiple" action="/cgi-bin/koha/tools/print_notice.pl" method="post" target="_blank">
60
                    <span id="checkbox_actions"><a href="#" class="select_all"><i class="fa fa-check"></i> Select all</a> | <a href="#" class="clear_all"><i class="fa fa-remove"></i> Clear all</a></span>
62
                    [% INCLUDE 'csrf-token.inc' %]
61
                    <form id="print_multiple" action="/cgi-bin/koha/tools/print_notice.pl" method="post" target="_blank">
63
62
                        [% INCLUDE 'csrf-token.inc' %]
64
                    <table id="notices">
63
                        <table id="notices">
65
                        <thead>
64
                            <thead>
66
                            <tr>
65
                                <tr>
67
                                <th class="nosort">&nbsp;</th>
66
                                    <th class="nosort">&nbsp;</th>
68
                                <th>Time created</th>
67
                                    <th>Time created</th>
69
                                <th>Patron</th>
68
                                    <th>Patron</th>
70
                                <th>Notice</th>
69
                                    <th>Notice</th>
71
                                <th>Type</th>
70
                                    <th>Type</th>
72
                                <th>Status</th>
71
                                    <th>Status</th>
73
                                <th>Updated on</th>
72
                                    <th>Updated on</th>
74
                                <th class="nosort">Actions</th>
73
                                    <th class="nosort">Actions</th>
75
                            </tr>
74
                                </tr>
76
                        </thead>
75
                            </thead>
77
                        <tbody>
76
                            <tbody>
78
                            [% FOREACH notice IN notices %]
77
                                [% FOREACH notice IN notices %]
79
                            <tr>
78
                                <tr>
80
                                <td><input type="checkbox" name="message_ids" value="[% notice.message_id | html %]"></td>
79
                                    <td><input type="checkbox" name="message_ids" value="[% notice.message_id | html %]"></td>
81
                                <td>[% notice.time_queued | $KohaDates with_hours = 1 %]</td>
80
                                    <td>[% notice.time_queued | $KohaDates with_hours = 1 %]</td>
82
                                <td>[% INCLUDE 'patron-title.inc' patron=notice.patron hide_patron_infos_if_needed=1 %]</td>
81
                                    <td>[% INCLUDE 'patron-title.inc' patron=notice.patron hide_patron_infos_if_needed=1 %]</td>
83
                                <td>
82
                                    <td>
84
                                    <a class="notice-title" data-noticeid="[% notice.message_id | html %]" href="/cgi-bin/koha/members/notices.pl?borrowernumber=[% notice.borrowernumber | uri %]&amp;noticeid=[% notice.message_id | uri %]">[% notice.subject | html %]</a>
83
                                        <a class="notice-title" data-noticeid="[% notice.message_id | html %]" href="/cgi-bin/koha/members/notices.pl?borrowernumber=[% notice.borrowernumber | uri %]&amp;noticeid=[% notice.message_id | uri %]">[% notice.subject | html %]</a>
85
                                    <iframe class="notice" id="notice[% notice.message_id | html %]" srcdoc="[% notice.html_content | html %]"></iframe>
84
                                        <iframe class="notice" id="notice[% notice.message_id | html %]" srcdoc="[% notice.html_content | html %]"></iframe>
86
                                </td>
85
                                    </td>
87
                                <td>[% notice.message_transport_type | html %]</td>
86
                                    <td>[% notice.message_transport_type | html %]</td>
88
                                <td>[% notice.status | html %]</td>
87
                                    <td>[% notice.status | html %]</td>
89
                                <td>[% notice.updated_on | $KohaDates with_hours = 1 %]</td>
88
                                    <td>[% notice.updated_on | $KohaDates with_hours = 1 %]</td>
90
                                <td class="actions"><a target="_blank" class="btn btn-default btn-xs print" href="/cgi-bin/koha/tools/print_notice.pl?message_ids=[% notice.message_id | uri %]"><i class="fa fa-print"></i> Print</a></td>
89
                                    <td class="actions"><a target="_blank" class="btn btn-default btn-xs print" href="/cgi-bin/koha/tools/print_notice.pl?message_ids=[% notice.message_id | uri %]"><i class="fa fa-print"></i> Print</a></td>
91
                            </tr>
90
                                </tr>
92
                            [% END %]
91
                                [% END %]
93
                        </tbody>
92
                            </tbody>
94
                    </table>
93
                        </table>
95
94
                        <input type="submit" class="btn btn-primary" value="Print selected notices" id="print_multiple_button">
96
                    <input type="submit" class="btn btn-primary" value="Print selected notices" id="print_multiple_button">
95
                    </form>
97
96
                </div>
98
                </form>
99
97
100
                [% ELSE %]
98
                [% ELSE %]
101
99
102
- 

Return to bug 33260