1 |
efrain |
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 |
"licensehelpicon": {
|
|
|
26 |
"text": "<ul><li><a href='http://en.wikipedia.org/wiki/All_rights_reserved'>All rights reserved</a></li></ul>",
|
|
|
27 |
"alt": "Help with Choose license"
|
|
|
28 |
},
|
|
|
29 |
"columns": true
|
|
|
30 |
}
|
|
|
31 |
}}
|
|
|
32 |
<div class="filemanager fp-select">
|
|
|
33 |
<div class="fp-select-loading">
|
|
|
34 |
{{#pix}}i/loading_small{{/pix}}
|
|
|
35 |
</div>
|
|
|
36 |
<form class="mform clearfix">
|
|
|
37 |
<div class="mb-3 mx-0">
|
|
|
38 |
<button class="fp-file-download btn btn-secondary">{{#str}}download{{/str}}</button>
|
|
|
39 |
<button class="fp-file-delete btn btn-secondary">{{#str}}delete{{/str}}</button>
|
|
|
40 |
<button class="fp-file-setmain btn btn-secondary">{{#str}}setmainfile, repository{{/str}}</button>
|
|
|
41 |
<span class="fp-file-setmain-help">{{{helpicon}}}</span>
|
|
|
42 |
<button class="fp-file-zip btn btn-secondary">{{#str}}zip, editor{{/str}}</button>
|
|
|
43 |
<button class="fp-file-unzip btn btn-secondary">{{#str}}unzip{{/str}}</button>
|
|
|
44 |
</div>
|
|
|
45 |
|
|
|
46 |
<div class="fp-saveas mb-3 row mx-0">
|
|
|
47 |
<label class="form-control-label col-4 px-0">{{#str}}name, repository{{/str}}</label>
|
|
|
48 |
<div class="col-8 d-flex flex-wrap align-items-center"><input class="form-control" type="text"/></div>
|
|
|
49 |
</div>
|
|
|
50 |
<div class="fp-author mb-3 row mx-0">
|
|
|
51 |
<label class="form-control-label col-4 px-0">{{#str}}author, repository{{/str}}</label>
|
|
|
52 |
<div class="col-8 d-flex flex-wrap align-items-center"><input class="form-control" type="text"/></div>
|
|
|
53 |
|
|
|
54 |
</div>
|
|
|
55 |
<div class="fp-license mb-3 row mx-0">
|
|
|
56 |
{{>core/filemanager_chooselicense}}
|
|
|
57 |
</div>
|
|
|
58 |
<div class="fp-path mb-3 row mx-0">
|
|
|
59 |
<label class="form-control-label col-4 px-0">{{#str}}path, repository{{/str}}</label>
|
|
|
60 |
<div class="col-8 d-flex flex-wrap align-items-center pr-0">
|
|
|
61 |
<select class="custom-select form-control"></select>
|
|
|
62 |
</div>
|
|
|
63 |
</div>
|
|
|
64 |
<div class="fp-original mb-3 row mx-0">
|
|
|
65 |
<div class="form-control-label col-4 px-0">{{#str}}original, repository{{/str}}</div>
|
|
|
66 |
<div class="col-8 d-flex flex-wrap align-items-center">
|
|
|
67 |
<span class="fp-originloading">{{#pix}}i/loading_small{{/pix}} {{#str}}loading, repository{{/str}}</span><span class="fp-value"></span>
|
|
|
68 |
</div>
|
|
|
69 |
</div>
|
|
|
70 |
<div class="fp-reflist mb-3 row mx-0">
|
|
|
71 |
<div class="form-control-label col-4 px-0">{{#str}}referenceslist, repository{{/str}}</div>
|
|
|
72 |
<div class="col-8 d-flex flex-wrap align-items-center">
|
|
|
73 |
<p class="fp-refcount"></p>
|
|
|
74 |
<span class="fp-reflistloading">{{#pix}}i/loading_small{{/pix}} {{#str}}loading, repository{{/str}}</span>
|
|
|
75 |
<ul class="fp-value"></ul>
|
|
|
76 |
</div>
|
|
|
77 |
</div>
|
|
|
78 |
<div class="fp-select-buttons mb-3">
|
|
|
79 |
<button class="fp-file-update btn-primary btn">{{#str}}update{{/str}}</button>
|
|
|
80 |
<button class="fp-file-cancel btn-secondary btn">{{#str}}cancel{{/str}}</button>
|
|
|
81 |
</div>
|
|
|
82 |
</form>
|
|
|
83 |
<div class="fp-info clearfix">
|
|
|
84 |
<hr>
|
|
|
85 |
<p class="fp-thumbnail"></p>
|
|
|
86 |
<div class="fp-fileinfo">
|
|
|
87 |
<div class="fp-datemodified">{{#str}}lastmodified, repository{{/str}} <span class="fp-value"></span></div>
|
|
|
88 |
<div class="fp-datecreated">{{#str}}datecreated, repository{{/str}} <span class="fp-value"></span></div>
|
|
|
89 |
<div class="fp-size">{{#str}}size, repository{{/str}} <span class="fp-value"></span></div>
|
|
|
90 |
<div class="fp-dimensions">{{#str}}dimensions, repository{{/str}} <span class="fp-value"></span></div>
|
|
|
91 |
</div>
|
|
|
92 |
</div>
|
|
|
93 |
</div>
|