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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-illrequests.tt (-18 / +19 lines)
Lines 1-8 Link Here
1
[% USE raw %]
1
[% USE raw %]
2
[% USE Koha %]
2
[% USE Koha %]
3
[% USE KohaDates %]
3
[% USE Branches %]
4
[% USE Branches %]
4
[% INCLUDE 'doc-head-open.inc' %]
5
[% INCLUDE 'doc-head-open.inc' %]
5
<title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog &rsaquo;   Your Interlibrary loan requests</title>[% INCLUDE 'doc-head-close.inc' %]
6
<title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog &rsaquo;   Your interlibrary loan requests</title>[% INCLUDE 'doc-head-close.inc' %]
6
[% BLOCK cssinclude %][% END %]
7
[% BLOCK cssinclude %][% END %]
7
</head>
8
</head>
8
[% INCLUDE 'bodytag.inc' bodyid='opac-illrequests' bodyclass='scrollto' %]
9
[% INCLUDE 'bodytag.inc' bodyid='opac-illrequests' bodyclass='scrollto' %]
Lines 24-32 Link Here
24
        [% IF method != 'list' %]
25
        [% IF method != 'list' %]
25
            <li><a href="/cgi-bin/koha/opac-illrequests.pl">Interlibrary loan requests</a> <span class="divider">&rsaquo;</span></li>
26
            <li><a href="/cgi-bin/koha/opac-illrequests.pl">Interlibrary loan requests</a> <span class="divider">&rsaquo;</span></li>
26
            [% IF method == 'create' %]
27
            [% IF method == 'create' %]
27
                <li>New Interlibrary loan request</li>
28
                <li>New interlibrary loan request</li>
28
            [% ELSIF method == 'view' %]
29
            [% ELSIF method == 'view' %]
29
                <li>View Interlibrary loan request</li>
30
                <li>View interlibrary loan request</li>
30
            [% END %]
31
            [% END %]
31
        [% ELSE %]
32
        [% ELSE %]
32
            <li>Interlibrary loan requests</li>
33
            <li>Interlibrary loan requests</li>
Lines 54-60 Link Here
54
          [% ELSE %]
55
          [% ELSE %]
55
            <div id="illrequests" class="maincontent">
56
            <div id="illrequests" class="maincontent">
56
                [% IF method == 'create' %]
57
                [% IF method == 'create' %]
57
                    <h2>New Interlibrary loan request</h2>
58
                    <h2>New interlibrary loan request</h2>
58
                    [% IF stage == 'copyrightclearance' %]
59
                    [% IF stage == 'copyrightclearance' %]
59
                        [% INCLUDE messages %]
60
                        [% INCLUDE messages %]
60
                        <div>
61
                        <div>
Lines 79-86 Link Here
79
                                    </select>
80
                                    </select>
80
                                </fieldset>
81
                                </fieldset>
81
                                <fieldset class="action">
82
                                <fieldset class="action">
82
                                    <input type="hidden" name="method" value="create">
83
                                    <input type="hidden" name="method" value="create" />
83
                                    <input type="submit" name="create_select_backend" value="Next">
84
                                    <input type="submit" name="create_select_backend" value="Next" />
84
                                </fieldset>
85
                                </fieldset>
85
                            </form>
86
                            </form>
86
                        [% ELSE %]
87
                        [% ELSE %]
Lines 116-123 Link Here
116
                                <th>Requested from</th>
117
                                <th>Requested from</th>
117
                                <th>Request type</th>
118
                                <th>Request type</th>
118
                                <th>Status</th>
119
                                <th>Status</th>
119
                                <th>Request placed</th>
120
                                <th class="title-string">Request placed</th>
120
                                <th>Last updated</th>
121
                                <th class="title-string">Last updated</th>
121
                                <th></th>
122
                                <th></th>
122
                            </tr>
123
                            </tr>
123
                        </thead>
124
                        </thead>
Lines 130-137 Link Here
130
                                    <td>[% request.backend | html %]</td>
131
                                    <td>[% request.backend | html %]</td>
131
                                    <td>[% request.medium | html %]</td>
132
                                    <td>[% request.medium | html %]</td>
132
                                    <td>[% request.capabilities.$status.name | html %]</td>
133
                                    <td>[% request.capabilities.$status.name | html %]</td>
133
                                    <td>[% request.placed | html %]</td>
134
                                    <td><span title="[% request.placed | html %]">[% request.placed | $KohaDates %]</span></td>
134
                                    <td>[% request.updated | html %]</td>
135
                                    <td><span title="[% request.updated | html %]">[% request.updated | $KohaDates %]</span></td>
135
                                    <td>
136
                                    <td>
136
                                        <a href="/cgi-bin/koha/opac-illrequests.pl?method=view&amp;illrequest_id=[% request.id | html %]" class="btn btn-default btn-small pull-right">View</a>
137
                                        <a href="/cgi-bin/koha/opac-illrequests.pl?method=view&amp;illrequest_id=[% request.id | html %]" class="btn btn-default btn-small pull-right">View</a>
137
                                    </td>
138
                                    </td>
Lines 140-146 Link Here
140
                        </tbody>
141
                        </tbody>
141
                    </table>
142
                    </table>
142
                [% ELSIF method == 'view' %]
143
                [% ELSIF method == 'view' %]
143
                    <h2>View Interlibrary loan request</h2>
144
                    <h2>View interlibrary loan request</h2>
144
                    [% INCLUDE messages %]
145
                    [% INCLUDE messages %]
145
                    [% status = request.status | html %]
146
                    [% status = request.status | html %]
146
                    <form method="post" action="?method=update" id="illrequestupdate-form" novalidate="novalidate">
147
                    <form method="post" action="?method=update" id="illrequestupdate-form" novalidate="novalidate">
Lines 171-181 Link Here
171
                                    </li>
172
                                    </li>
172
                                    <li>
173
                                    <li>
173
                                        <label for="placed">Request placed:</label>
174
                                        <label for="placed">Request placed:</label>
174
                                        [% request.placed | html %]
175
                                        [% request.placed | $KohaDates %]
175
                                    </li>
176
                                    </li>
176
                                    <li>
177
                                    <li>
177
                                        <label for="updated">Last updated:</label>
178
                                        <label for="updated">Last updated:</label>
178
                                        [% request.updated | html %]
179
                                        [% request.updated | $KohaDates %]
179
                                    </li>
180
                                    </li>
180
                                    <li>
181
                                    <li>
181
                                        <label for="notesopac">Notes:</label>
182
                                        <label for="notesopac">Notes:</label>
Lines 197-209 Link Here
197
                                [% END %]
198
                                [% END %]
198
                            </div>
199
                            </div>
199
                            <fieldset class="action illrequest-actions">
200
                            <fieldset class="action illrequest-actions">
200
                                <input type="hidden" name="illrequest_id" value="[% request.illrequest_id | html %]">
201
                                <input type="hidden" name="illrequest_id" value="[% request.illrequest_id | html %]" />
201
                                <input type="hidden" name="method" value="update">
202
                                <input type="hidden" name="method" value="update" />
202
                                [% IF !request.completed %]
203
                                [% IF !request.completed %]
203
                                    [% IF request.status == "NEW" %]
204
                                    [% IF request.status == "NEW" %]
204
                                        <a class="cancel-illrequest btn btn-danger" href="/cgi-bin/koha/opac-illrequests.pl?method=cancreq&amp;illrequest_id=[% request.illrequest_id | html %]">Request cancellation</a>
205
                                        <a class="cancel-illrequest btn btn-danger" href="/cgi-bin/koha/opac-illrequests.pl?method=cancreq&amp;illrequest_id=[% request.illrequest_id | html %]">Request cancellation</a>
205
                                    [% END %]
206
                                    [% END %]
206
                                    <input type="submit" class="update-illrequest btn btn-default" value="Submit modifications">
207
                                    <input type="submit" class="update-illrequest btn btn-default" value="Submit modifications" />
207
                                [% END %]
208
                                [% END %]
208
                                <span class="cancel"><a href="/cgi-bin/koha/opac-illrequests.pl">Cancel</a></span>
209
                                <span class="cancel"><a href="/cgi-bin/koha/opac-illrequests.pl">Cancel</a></span>
209
                            </fieldset>
210
                            </fieldset>
Lines 224-230 Link Here
224
    //<![CDATA[
225
    //<![CDATA[
225
        $("#illrequestlist").dataTable($.extend(true, {}, dataTablesDefaults, {
226
        $("#illrequestlist").dataTable($.extend(true, {}, dataTablesDefaults, {
226
            "columnDefs": [
227
            "columnDefs": [
227
                { "targets": [ -1 ], "sortable": false, "searchable": false }
228
                { "targets": [ -1 ], "sortable": false, "searchable": false },
229
                { "type": "title-string", "targets" : [ "title-string" ] }
228
            ],
230
            ],
229
            "order": [[ 3, "desc" ]],
231
            "order": [[ 3, "desc" ]],
230
            "deferRender": true
232
            "deferRender": true
231
- 

Return to bug 21497