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_uploadform
|
|
|
19 |
|
|
|
20 |
This template renders the 'Upload file' repository.
|
|
|
21 |
|
|
|
22 |
Example context (json):
|
|
|
23 |
{}
|
|
|
24 |
}}
|
|
|
25 |
<div class="fp-upload-form">
|
|
|
26 |
<div class="fp-content">
|
|
|
27 |
<form enctype="multipart/form-data" method="POST" class="form">
|
|
|
28 |
<div class="fp-formset">
|
1037 |
ariadna |
29 |
<div class="fp-file form-group">
|
1 |
efrain |
30 |
<label>{{#str}}attachment, repository{{/str}}</label>
|
|
|
31 |
<div>
|
1037 |
ariadna |
32 |
<input type="file" class="form-control p-1"/>
|
1 |
efrain |
33 |
</div>
|
|
|
34 |
</div>
|
|
|
35 |
<div class="fp-saveas form-group row no-gutters">
|
|
|
36 |
<label class="form-control-label my-0 mr-md-2 col-sm-12 col-md-4">{{#str}}saveas, repository{{/str}}</label>
|
|
|
37 |
<div class="col"><input type="text" class="form-control"/></div>
|
|
|
38 |
</div>
|
|
|
39 |
<div class="fp-setauthor form-group row no-gutters">
|
|
|
40 |
<label class="form-control-label my-0 mr-md-2 col-sm-12 col-md-4">{{#str}}author, repository{{/str}}</label>
|
|
|
41 |
<div class="col"><input type="text" class="form-control"/></div>
|
|
|
42 |
</div>
|
|
|
43 |
<div class="fp-setlicense form-group row no-gutters">
|
|
|
44 |
{{>core/filemanager_chooselicense}}
|
|
|
45 |
</div>
|
|
|
46 |
</div>
|
|
|
47 |
</form>
|
|
|
48 |
|
|
|
49 |
<button class="fp-upload-btn btn btn-primary">{{#str}}upload, repository{{/str}}</button>
|
|
|
50 |
|
|
|
51 |
</div>
|
|
|
52 |
</div>
|