MDL-68353 core: replace invalid labels with div
[moodle.git] / lib / templates / filemanager_fileselect.mustache
CommitLineData
28cbff4a
MM
1{{!
2 This file is part of Moodle - http://moodle.org/
3
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.
8
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.
13
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
19
20 This template renders the window with file information/actions.
21
22 Example context (json):
23 {
24 "helpicon": "<a class='btn ..'><i class='icon fa fa-question-circle ..'></i></a>"
25 }
26}}
88af0208
DW
27<div class="filemanager fp-select">
28 <div class="fp-select-loading">
29 {{#pix}}i/loading_small{{/pix}}
30 </div>
2eec5251
LB
31 <form class="mform clearfix">
32 <div class="form-group mx-0">
88af0208 33 <button class="fp-file-download btn btn-secondary">{{#str}}download{{/str}}</button>
bc8594bd
FM
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>
8712a50e 36 <span class="fp-file-setmain-help">{{{helpicon}}}</span>
bc8594bd
FM
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>
88af0208
DW
39 </div>
40
2eec5251
LB
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>
88af0208 44 </div>
2eec5251
LB
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>
88af0208
DW
48
49 </div>
2eec5251
LB
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>
88af0208
DW
54 </div>
55 </div>
2eec5251
LB
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>
88af0208
DW
60 </div>
61 </div>
2eec5251 62 <div class="fp-original form-group row mx-0">
08be893a 63 <div class="form-control-label col-4 px-0">{{#str}}original, repository{{/str}}</div>
2eec5251 64 <div class="col-8 form-inline">
88af0208
DW
65 <span class="fp-originloading">{{#pix}}i/loading_small{{/pix}} {{#str}}loading, repository{{/str}}</span><span class="fp-value"></span>
66 </div>
67 </div>
2eec5251 68 <div class="fp-reflist form-group row mx-0">
08be893a 69 <div class="form-control-label col-4 px-0">{{#str}}referenceslist, repository{{/str}}</div>
2eec5251 70 <div class="col-8 form-inline">
88af0208
DW
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>