MDL-68758 core_repository: Allow ability to download files on all views.
[moodle.git] / lib / templates / filemanager_page_generallayout.mustache
1 {{!
2     This file is part of Moodle - http://moodle.org/
4     Moodle is free software: you can redistribute it and/or modify
5     it under the terms of the GNU General Public License as published by
6     the Free Software Foundation, either version 3 of the License, or
7     (at your option) any later version.
9     Moodle is distributed in the hope that it will be useful,
10     but WITHOUT ANY WARRANTY; without even the implied warranty of
11     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12     GNU General Public License for more details.
14     You should have received a copy of the GNU General Public License
15     along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
16 }}
17 {{!
18     @template core/filemanager_page_generallayout
20     This template renders the html for displaying one file manager
22     Example context (json):
23     {
24         "client_id": "Unique-string",
25         "restrictions": "<span>Maximum size for new files: Unlimited</span>",
26         "helpicon": "<a class='btn'><i class='icon fa fa-question-circle'></i></a>"
27     }
28 }}
29 <div id="filemanager-{{{client_id}}}" class="filemanager w-100 fm-loading">
30     <div class="fp-restrictions">
31         {{{restrictions}}}
32         <span class="dnduploadnotsupported-message"> - {{#str}}dndnotsupported_insentence{{/str}}{{{helpicon}}}</span>
33     </div>
34     <div class="fp-navbar bg-faded card mb-0">
35         <div class="filemanager-toolbar icon-no-spacing">
36             <div class="fp-toolbar">
37                 <div class="fp-btn-add">
38                     <a role="button" title="{{#str}}addfile, repository{{/str}}" class="btn btn-secondary btn-sm" href="#">
39                         {{#pix}}a/add_file{{/pix}}
40                     </a>
41                 </div>
42                 <div class="fp-btn-mkdir">
43                     <a role="button" title="{{#str}}makeafolder{{/str}}" class="btn btn-secondary btn-sm" href="#">
44                         {{#pix}}a/create_folder{{/pix}}
45                     </a>
46                 </div>
47                 <div class="fp-btn-download">
48                     <a role="button" title="{{#str}}download, repository{{/str}}" class="btn btn-secondary btn-sm" href="#">
49                         {{#pix}}a/download_all{{/pix}}
50                     </a>
51                 </div>
52                 <div class="fp-btn-delete">
53                     <a role="button" title="{{#str}}delete{{/str}}" class="btn btn-secondary btn-sm" href="#">
54                         {{#pix}}i/trash{{/pix}}
55                     </a>
56                 </div>
57                 <span class="fp-img-downloading">
58                     <span class="sr-only">{{#str}}loadinghelp{{/str}}</span>
59                     {{#pix}}i/loading_small{{/pix}}
60                 </span>
61             </div>
62             <div class="fp-viewbar btn-group float-sm-right">
63                 <a title="{{#str}}displayicons, repository{{/str}}" class="fp-vb-icons btn btn-secondary btn-sm" href="#">
64                     {{#pix}}fp/view_icon_active, theme{{/pix}}
65                 </a>
66                 <a title="{{#str}}displaydetails, repository{{/str}}" class="fp-vb-details btn btn-secondary btn-sm" href="#">
67                     {{#pix}}fp/view_list_active, theme{{/pix}}
68                 </a>
69                 <a title="{{#str}}displaytree, repository{{/str}}" class="fp-vb-tree btn btn-secondary btn-sm" href="#">
70                     {{#pix}}fp/view_tree_active, theme{{/pix}}
71                 </a>
72             </div>
73         </div>
74         <div class="fp-pathbar">
75             <span class="fp-path-folder"><a class="fp-path-folder-name" href="#"></a></span>
76         </div>
77     </div>
78     <div class="filemanager-loading mdl-align">{{#pix}}i/loading_small{{/pix}}<span class="sr-only">{{#str}}loadinghelp{{/str}}</span></div>
79     <div class="filemanager-container card" >
80         <div class="fm-content-wrapper">
81             <div class="fp-content"></div>
82             <div class="fm-empty-container">
83                 <div class="dndupload-message">{{#str}}dndenabled_inbox{{/str}}<br/><div class="dndupload-arrow"></div></div>
84             </div>
85             <div class="dndupload-target">{{#str}}droptoupload{{/str}}<br/><div class="dndupload-arrow"></div></div>
86             <div class="dndupload-progressbars"></div>
87             <div class="dndupload-uploadinprogress">{{#pix}}i/loading_small{{/pix}}<span class="sr-only">{{#str}}loadinghelp{{/str}}</span></div>
88         </div>
89         <div class="filemanager-updating">{{#pix}}i/loading_small{{/pix}}<span class="sr-only">{{#str}}loadinghelp{{/str}}</span></div>
90     </div>
91 </div>