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/>.
18 @template core/filemanager_selectlayout
20 This template renders the window appearing to select a file.
22 Example context (json):
25 <div class="file-picker fp-select">
26 <div class="fp-select-loading">
27 <span class="sr-only">{{#str}}loadinghelp{{/str}}</span>
28 {{#pix}}i/loading_small{{/pix}}
30 <div class="container">
32 <fieldset class="form-group row flex-column">
33 <div class="form-check fp-linktype-2">
34 <label class="form-check-label">
35 <input class="form-check-input" type="radio">
36 {{#str}}makefileinternal, repository{{/str}}
39 <div class="form-check fp-linktype-1">
40 <label class="form-check-label">
41 <input class="form-check-input" type="radio">
42 {{#str}}makefilelink, repository{{/str}}
45 <div class="form-check fp-linktype-4">
46 <label class="form-check-label">
47 <input class="form-check-input" type="radio">
48 {{#str}}makefilereference, repository{{/str}}
51 <div class="form-check fp-linktype-8">
52 <label class="form-check-label">
53 <input class="form-check-input" type="radio">
54 {{#str}}makefilecontrolledlink, repository{{/str}}
58 <div class="fp-saveas form-group row">
59 <label class="col-form-label">{{#str}}saveas, repository{{/str}}</label>
60 <input class="form-control" type="text">
62 <div class="fp-setauthor form-group row">
63 <label class="col-form-label">{{#str}}author, repository{{/str}}</label>
64 <input class="form-control" type="text">
66 <div class="fp-setlicense form-group row">
67 {{>core/filemanager_chooselicense}}
69 <div class="form-group row">
70 <div class="fp-select-buttons">
71 <button class="fp-select-confirm btn-primary btn">{{#str}}getfile, repository{{/str}}</button>
72 <button class="fp-select-cancel btn-secondary btn">{{#str}}cancel{{/str}}</button>
77 <div class="fp-info clearfix">
79 <p class="fp-thumbnail"></p>
80 <div class="fp-fileinfo">
81 <div class="fp-datemodified">{{#str}}lastmodified, repository{{/str}}<span class="fp-value"></span></div>
82 <div class="fp-datecreated">{{#str}}datecreated, repository{{/str}}<span class="fp-value"></span></div>
83 <div class="fp-size">{{#str}}size, repository{{/str}}<span class="fp-value"></span></div>
84 <div class="fp-license">{{#str}}license, repository{{/str}}<span class="fp-value"></span></div>
85 <div class="fp-author">{{#str}}author, repository{{/str}}<span class="fp-value"></span></div>
86 <div class="fp-dimensions">{{#str}}dimensions, repository{{/str}}<span class="fp-value" dir="ltr"></span></div>