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>
216
            <td>
214
                [% IF record.public %]
217
                [% IF record.public %]
Lines 267-276 Link Here
267
[% PROCESS submitter %]
270
[% PROCESS submitter %]
268
[% IF mode == 'new' || mode == 'deleted' %]
271
[% IF mode == 'new' || mode == 'deleted' %]
269
    [% PROCESS form_new %]
272
    [% PROCESS form_new %]
270
    [% PROCESS form_browse %]
273
    <div class="row">
271
    [% PROCESS form_search %]
274
        <div class="col-sm-6">
275
            [% PROCESS form_browse %]
276
        </div>
277
        <div class="col-sm-6">
278
            [% PROCESS form_search %]
279
        </div>
280
    </div>
272
    [% PROCESS closer %]
281
    [% PROCESS closer %]
273
[% ELSIF mode == 'report' %]
282
[% ELSIF mode == 'report' %]
283
    <div id="toolbar" class="btn-toolbar">
284
        <a href="/cgi-bin/koha/tools/upload.pl" class="btn btn-default">Upload file</a>
285
    </div>
274
    [% IF uploads %]
286
    [% IF uploads %]
275
        <h3>Your request gave the following results:</h3>
287
        <h3>Your request gave the following results:</h3>
276
        [% PROCESS table_results %]
288
        [% PROCESS table_results %]
Lines 288-293 Link Here
288
300
289
        <div class="col-sm-2 col-sm-pull-10">
301
        <div class="col-sm-2 col-sm-pull-10">
290
            <aside>
302
            <aside>
303
                [% IF mode == 'report' %]
304
                    [% PROCESS form_browse %]
305
                    [% PROCESS form_search %]
306
                [% END %]
307
308
291
                [% INCLUDE 'tools-menu.inc' %]
309
                [% INCLUDE 'tools-menu.inc' %]
292
            </aside>
310
            </aside>
293
        </div> <!-- /.col-sm-2.col-sm-pull-10 -->
311
        </div> <!-- /.col-sm-2.col-sm-pull-10 -->
294
- 

Return to bug 28175