MDL-68353 core: replace invalid labels with div
[moodle.git] / lib / templates / filemanager_fileselect.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_fileselect
20     This template renders the window with file information/actions.
22     Example context (json):
23     {
24         "helpicon": "<a class='btn ..'><i class='icon fa fa-question-circle ..'></i></a>"
25     }
26 }}
27 <div class="filemanager fp-select">
28     <div class="fp-select-loading">
29         {{#pix}}i/loading_small{{/pix}}
30     </div>
31     <form class="mform clearfix">
32         <div class="form-group mx-0">
33             <button class="fp-file-download btn btn-secondary">{{#str}}download{{/str}}</button>
34             <button class="fp-file-delete btn btn-secondary">{{#str}}delete{{/str}}</button>
35             <button class="fp-file-setmain btn btn-secondary">{{#str}}setmainfile, repository{{/str}}</button>
36             <span class="fp-file-setmain-help">{{{helpicon}}}</span>
37             <button class="fp-file-zip btn btn-secondary">{{#str}}zip, editor{{/str}}</button>
38             <button class="fp-file-unzip btn btn-secondary">{{#str}}unzip{{/str}}</button>
39         </div>
41                 <div class="fp-saveas form-group row mx-0">
42                     <label class="form-control-label col-4 px-0">{{#str}}name, repository{{/str}}</label>
43                     <div class="col-8 form-inline"><input class="form-control" type="text"/></div>
44                 </div>
45                 <div class="fp-author form-group row mx-0">
46                     <label class="form-control-label col-4 px-0">{{#str}}author, repository{{/str}}</label>
47                     <div class="col-8 form-inline"><input class="form-control" type="text"/></div>
49                 </div>
50                 <div class="fp-license form-group row mx-0">
51                     <label class="form-control-label col-4 px-0">{{#str}}chooselicense, repository{{/str}}</label>
52                     <div class="col-8 form-inline pr-0">
53                         <select class="custom-select form-control"></select>
54                     </div>
55                 </div>
56                 <div class="fp-path form-group row mx-0">
57                     <label class="form-control-label col-4 px-0">{{#str}}path, repository{{/str}}</label>
58                     <div class="col-8 form-inline pr-0">
59                         <select class="custom-select form-control"></select>
60                     </div>
61                 </div>
62                 <div class="fp-original form-group row mx-0">
63                     <div class="form-control-label col-4 px-0">{{#str}}original, repository{{/str}}</div>
64                     <div class="col-8 form-inline">
65                         <span class="fp-originloading">{{#pix}}i/loading_small{{/pix}} {{#str}}loading, repository{{/str}}</span><span class="fp-value"></span>
66                     </div>
67                 </div>
68                 <div class="fp-reflist form-group row mx-0">
69                     <div class="form-control-label col-4 px-0">{{#str}}referenceslist, repository{{/str}}</div>
70                     <div class="col-8 form-inline">
71                         <p class="fp-refcount"></p>
72                         <span class="fp-reflistloading">{{#pix}}i/loading_small{{/pix}} {{#str}}loading, repository{{/str}}</span>
73                         <ul class="fp-value"></ul>
74                     </div>
75                 </div>
76         <div class="fp-select-buttons form-group">
77             <button class="fp-file-update btn-primary btn">{{#str}}update{{/str}}</button>
78             <button class="fp-file-cancel btn-secondary btn">{{#str}}cancel{{/str}}</button>
79         </div>
80     </form>
81     <div class="fp-info clearfix">
82         <hr>
83         <p class="fp-thumbnail"></p>
84         <div class="fp-fileinfo">
85             <div class="fp-datemodified">{{#str}}lastmodified, repository{{/str}} <span class="fp-value"></span></div>
86             <div class="fp-datecreated">{{#str}}datecreated, repository{{/str}} <span class="fp-value"></span></div>
87             <div class="fp-size">{{#str}}size, repository{{/str}} <span class="fp-value"></span></div>
88             <div class="fp-dimensions">{{#str}}dimensions, repository{{/str}} <span class="fp-value"></span></div>
89         </div>
90     </div>
91 </div>