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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/upload.tt (-10 / +27 lines)
Lines 2-7 Link Here
2
[% USE Asset %]
2
[% USE Asset %]
3
[% USE Koha %]
3
[% USE Koha %]
4
[% USE TablesSettings %]
4
[% USE TablesSettings %]
5
[% USE AuthorisedValues %]
5
[% SET footerjs = 1 %]
6
[% SET footerjs = 1 %]
6
[% INCLUDE 'doc-head-open.inc' %]
7
[% INCLUDE 'doc-head-open.inc' %]
7
[% IF plugin %]
8
[% IF plugin %]
Lines 111-121 Link Here
111
112
112
[% BLOCK form_browse %]
113
[% BLOCK form_browse %]
113
    [% IF uploadcategories %]
114
    [% IF uploadcategories %]
114
    <form method="post" id="browsefile" action="/cgi-bin/koha/tools/upload.pl" enctype="multipart/form-data">
115
    <form method="post" id="browsefile" action="/cgi-bin/koha/tools/upload.pl">
115
        [% PROCESS plugin_pars %]
116
        [% PROCESS plugin_pars %]
116
        <input type="hidden" name="op" value="browse"/>
117
        <input type="hidden" name="op" value="browse"/>
117
        <fieldset class="rows">
118
        <fieldset class="brief">
118
        <legend>Search uploads by category</legend>
119
        <h4>Search uploads by category</h4>
119
        <ol>
120
        <ol>
120
            <li>
121
            <li>
121
                <label for="browsecategory">Category: </label>
122
                <label for="browsecategory">Category: </label>
Lines 135-145 Link Here
135
[% END %]
136
[% END %]
136
137
137
[% BLOCK form_search %]
138
[% BLOCK form_search %]
138
    <form method="post" id="searchfile" action="/cgi-bin/koha/tools/upload.pl" enctype="multipart/form-data">
139
    <form method="post" id="searchfile" action="/cgi-bin/koha/tools/upload.pl">
139
        [% PROCESS plugin_pars %]
140
        [% PROCESS plugin_pars %]
140
        <input type="hidden" name="op" value="search"/>
141
        <input type="hidden" name="op" value="search"/>
141
        <fieldset class="rows">
142
        <fieldset class="brief">
142
        <legend>Search uploads by name or hashvalue</legend>
143
        <h4>Search uploads by name or hashvalue</h4>
143
        <ol>
144
        <ol>
144
        <li>
145
        <li>
145
            <label for="term">Search term: </label>
146
            <label for="term">Search term: </label>
Lines 208-214 Link Here
208
        <td>[% record.filename | html %]</td>
209
        <td>[% record.filename | html %]</td>
209
        <td>[% record.filesize | html %]</td>
210
        <td>[% record.filesize | html %]</td>
210
        <td>[% record.hashvalue | html %]</td>
211
        <td>[% record.hashvalue | html %]</td>
211
        <td>[% record.uploadcategorycode | html %]</td>
212
        <td>
213
            <a href="/cgi-bin/koha/tools/upload.pl?op=browse&browsecategory=[% record.uploadcategorycode | uri %]">[% AuthorisedValues.GetByCode( 'UPLOAD', record.uploadcategorycode ) | html %]</a>
214
        </td>
212
        [% IF !plugin %]
215
        [% IF !plugin %]
213
            <td>[% IF record.public %]Yes[% ELSE %]No[% END %]</td>
216
            <td>[% IF record.public %]Yes[% ELSE %]No[% END %]</td>
214
            <td>[% IF record.permanent %]No[% ELSE %]Yes[% END %]</td>
217
            <td>[% IF record.permanent %]No[% ELSE %]Yes[% END %]</td>
Lines 261-270 Link Here
261
[% PROCESS submitter %]
264
[% PROCESS submitter %]
262
[% IF mode == 'new' || mode == 'deleted' %]
265
[% IF mode == 'new' || mode == 'deleted' %]
263
    [% PROCESS form_new %]
266
    [% PROCESS form_new %]
264
    [% PROCESS form_browse %]
267
    <div class="row">
265
    [% PROCESS form_search %]
268
        <div class="col-sm-6">
269
            [% PROCESS form_browse %]
270
        </div>
271
        <div class="col-sm-6">
272
            [% PROCESS form_search %]
273
        </div>
274
    </div>
266
    [% PROCESS closer %]
275
    [% PROCESS closer %]
267
[% ELSIF mode == 'report' %]
276
[% ELSIF mode == 'report' %]
277
    <div id="toolbar" class="btn-toolbar">
278
        <a href="/cgi-bin/koha/tools/upload.pl" class="btn btn-default">Upload file</a>
279
    </div>
268
    [% IF uploads %]
280
    [% IF uploads %]
269
        <h3>Your request gave the following results:</h3>
281
        <h3>Your request gave the following results:</h3>
270
        [% PROCESS table_results %]
282
        [% PROCESS table_results %]
Lines 282-287 Link Here
282
294
283
        <div class="col-sm-2 col-sm-pull-10">
295
        <div class="col-sm-2 col-sm-pull-10">
284
            <aside>
296
            <aside>
297
                [% IF mode == 'report' %]
298
                    [% PROCESS form_browse %]
299
                    [% PROCESS form_search %]
300
                [% END %]
301
302
285
                [% INCLUDE 'tools-menu.inc' %]
303
                [% INCLUDE 'tools-menu.inc' %]
286
            </aside>
304
            </aside>
287
        </div> <!-- /.col-sm-2.col-sm-pull-10 -->
305
        </div> <!-- /.col-sm-2.col-sm-pull-10 -->
288
- 

Return to bug 28175