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 |
<svg class="spinner" viewBox="0 0 50 50">
|
|
|
35 |
<circle class="path" cx="25" cy="25" r="20" fill="none" stroke-width="5"></circle>
|
|
|
36 |
</svg>
|
|
|
37 |
</div>
|
|
|
38 |
<form class="form clearfix">
|
|
|
39 |
<div class="form-group row justify-content-end no-gutters mt-0 mb-3">
|
|
|
40 |
<button class="fp-file-download btn btn-sm btn-secondary m-1 border-0">
|
|
|
41 |
<svg class="mr-2" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
|
|
42 |
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.6" d="M4.75 14.75V16.25C4.75 17.9069 6.09315 19.25 7.75 19.25H16.25C17.9069 19.25 19.25 17.9069 19.25 16.25V14.75"></path>
|
|
|
43 |
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.6" d="M12 14.25L12 4.75"></path>
|
|
|
44 |
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.6" d="M8.75 10.75L12 14.25L15.25 10.75"></path>
|
|
|
45 |
</svg>
|
|
|
46 |
{{#str}}download{{/str}}
|
|
|
47 |
</button>
|
|
|
48 |
<button class="fp-file-delete btn btn-sm btn-danger m-1 border-0">
|
|
|
49 |
<svg width="24" height="24" fill="none" viewBox="0 0 24 24">
|
|
|
50 |
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.6" d="M6.75 7.75L7.59115 17.4233C7.68102 18.4568 8.54622 19.25 9.58363 19.25H14.4164C15.4538 19.25 16.319 18.4568 16.4088 17.4233L17.25 7.75"/>
|
|
|
51 |
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.6" d="M9.75 7.5V6.75C9.75 5.64543 10.6454 4.75 11.75 4.75H12.25C13.3546 4.75 14.25 5.64543 14.25 6.75V7.5"/>
|
|
|
52 |
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.6" d="M5 7.75H19"/>
|
|
|
53 |
</svg>
|
|
|
54 |
</button>
|
|
|
55 |
<button class="fp-file-setmain btn btn-sm btn-secondary m-1 border-0">{{#str}}setmainfile, repository{{/str}}</button>
|
|
|
56 |
<span class="fp-file-setmain-help col m-1">{{{helpicon}}}</span>
|
|
|
57 |
<button class="fp-file-zip btn btn-sm btn-secondary m-1 border-0">
|
|
|
58 |
<svg class="mr-2" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
|
|
59 |
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.6" d="M18.25 8.75H5.75L6.57758 17.4396C6.67534 18.4661 7.53746 19.25 8.56857 19.25H15.4314C16.4625 19.25 17.3247 18.4661 17.4224 17.4396L18.25 8.75Z"></path>
|
|
|
60 |
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.6" d="M19.25 5.75C19.25 5.19772 18.8023 4.75 18.25 4.75H5.75C5.19771 4.75 4.75 5.19772 4.75 5.75V7.75C4.75 8.30228 5.19772 8.75 5.75 8.75H18.25C18.8023 8.75 19.25 8.30228 19.25 7.75V5.75Z"></path>
|
|
|
61 |
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.6" d="M9.75 13.25H14.25"></path>
|
|
|
62 |
</svg>
|
|
|
63 |
{{#str}}zip, editor{{/str}}
|
|
|
64 |
</button>
|
|
|
65 |
<button class="fp-file-unzip btn btn-sm btn-secondary m-1 border-0">
|
|
|
66 |
<svg class="mr-2" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
|
67 |
<path d="M4.75 19.25H19.25" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"></path>
|
|
|
68 |
<path d="M12 15.25V4.75" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"></path>
|
|
|
69 |
<path d="M15.25 8.25L12 4.75L8.75 8.25" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"></path>
|
|
|
70 |
</svg>
|
|
|
71 |
{{#str}}unzip{{/str}}
|
|
|
72 |
</button>
|
|
|
73 |
</div>
|
|
|
74 |
|
|
|
75 |
<div class="fp-saveas form-group row no-gutters">
|
|
|
76 |
<label class="form-control-label my-0 mr-md-2 col-sm-12 col-md-4">{{#str}}name, repository{{/str}}</label>
|
|
|
77 |
<div class="col"><input class="form-control" type="text"/></div>
|
|
|
78 |
</div>
|
|
|
79 |
<div class="fp-author form-group row no-gutters">
|
|
|
80 |
<label class="form-control-label my-0 mr-md-2 col-sm-12 col-md-4">{{#str}}author, repository{{/str}}</label>
|
|
|
81 |
<div class="col"><input class="form-control" type="text"/></div>
|
|
|
82 |
</div>
|
|
|
83 |
<div class="fp-license form-group row no-gutters">
|
|
|
84 |
<div class="form-control-label my-0 mr-md-2 col-sm-12 col-md-4 d-inline-flex align-items-center">
|
|
|
85 |
<label for="choose-license-{{uniqid}}" class="mb-0">
|
|
|
86 |
{{#str}}chooselicense, repository{{/str}}
|
|
|
87 |
</label>
|
|
|
88 |
{{#licensehelpicon}}{{>core/help_icon}}{{/licensehelpicon}}
|
|
|
89 |
</div>
|
|
|
90 |
<div class="col">
|
|
|
91 |
<select id="choose-license-{{uniqid}}" class="form-control custom-select w-100"></select>
|
|
|
92 |
</div>
|
|
|
93 |
</div>
|
|
|
94 |
<div class="fp-path form-group row no-gutters">
|
|
|
95 |
<label class="form-control-label my-0 mr-md-2 col-sm-12 col-md-4">{{#str}}path, repository{{/str}}</label>
|
|
|
96 |
<div class="col">
|
|
|
97 |
<select class="custom-select"></select>
|
|
|
98 |
</div>
|
|
|
99 |
</div>
|
|
|
100 |
<div class="fp-original form-group row no-gutters">
|
|
|
101 |
<label class="form-control-label my-0 mr-md-2 col-sm-12 col-md-4">{{#str}}original, repository{{/str}}</label>
|
|
|
102 |
<div class="col">
|
|
|
103 |
<span class="fp-originloading">{{#pix}}i/loading_small{{/pix}} {{#str}}loading, repository{{/str}}</span><span class="fp-value"></span>
|
|
|
104 |
</div>
|
|
|
105 |
</div>
|
|
|
106 |
<div class="fp-reflist form-group row no-gutters">
|
|
|
107 |
<label class="form-control-label my-0 mr-md-2 col-sm-12 col-md-4">{{#str}}referenceslist, repository{{/str}}</label>
|
|
|
108 |
<div class="col">
|
|
|
109 |
<p class="fp-refcount"></p>
|
|
|
110 |
<span class="fp-reflistloading">
|
|
|
111 |
<svg class="spinner" viewBox="0 0 50 50">
|
|
|
112 |
<circle class="path" cx="25" cy="25" r="20" fill="none" stroke-width="5"></circle>
|
|
|
113 |
</svg>
|
|
|
114 |
{{#str}}loading, repository{{/str}}
|
|
|
115 |
</span>
|
|
|
116 |
<ul class="fp-value"></ul>
|
|
|
117 |
</div>
|
|
|
118 |
</div>
|
|
|
119 |
<div class="fp-select-buttons form-group mb-0 w-100 d-inline-flex">
|
|
|
120 |
<button class="fp-file-cancel btn-secondary btn mb-1 col-4">{{#str}}cancel{{/str}}</button>
|
|
|
121 |
<button class="fp-file-update btn-primary btn ml-2 mb-1 col justify-content-bettween">
|
|
|
122 |
{{#str}}update{{/str}}
|
|
|
123 |
<svg class="ml-2" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
|
|
124 |
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.6" d="M11.25 4.75L8.75 7L11.25 9.25"></path>
|
|
|
125 |
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.6" d="M12.75 19.25L15.25 17L12.75 14.75"></path>
|
|
|
126 |
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.6" d="M9.75 7H13.25C16.5637 7 19.25 9.68629 19.25 13V13.25"></path>
|
|
|
127 |
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.6" d="M14.25 17H10.75C7.43629 17 4.75 14.3137 4.75 11V10.75"></path>
|
|
|
128 |
</svg>
|
|
|
129 |
</button>
|
|
|
130 |
</div>
|
|
|
131 |
</form>
|
|
|
132 |
<hr />
|
|
|
133 |
<div class="fp-info clearfix d-inline-flex align-items-start col-12 p-0">
|
|
|
134 |
<div class="row no-gutters w-100">
|
|
|
135 |
<div class="fp-thumbnail col"></div>
|
|
|
136 |
<div class="col fp-fileinfo">
|
|
|
137 |
<div class="fp-datemodified"><p><strong>{{#str}}lastmodified, repository{{/str}}</strong><br><span class="fp-value"></span></div>
|
|
|
138 |
<div class="fp-datecreated"><strong>{{#str}}datecreated, repository{{/str}}</strong><br><span class="fp-value"></span></div>
|
|
|
139 |
<div class="fp-size"><strong>{{#str}}size, repository{{/str}}</strong><br><span class="fp-value"></span></div>
|
|
|
140 |
<div class="fp-dimensions"><strong>{{#str}}dimensions, repository{{/str}}</strong><br><span class="fp-value"></span></div>
|
|
|
141 |
</div>
|
|
|
142 |
</div>
|
|
|
143 |
|
|
|
144 |
</div>
|
|
|
145 |
</div>
|