Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
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_page_generallayout
19
 
20
    This template renders the html for displaying one file manager
21
 
22
    Example context (json):
23
    {
24
        "client_id": "Unique-string",
25
        "restrictions": "<span>Maximum size for new files: Unlimited</span>",
26
        "helpicon": "<a class='btn'><i class='icon fa fa-question-circle'></i></a>"
27
    }
28
}}
29
<div id="filemanager-{{{client_id}}}" class="filemanager w-100 fm-loading">
30
    <div class="fp-navbar">
31
        <div class="filemanager-toolbar justify-content-between w-100 d-flex">
32
            <div class="fp-toolbar d-inline-flex">
33
                <div class="fp-btn-add">
34
                    <a role="button" title="{{#str}}addfile, repository{{/str}}" class="rui-icon-no-margin btn btn-icon btn-secondary" href="#">
35
                        <svg width="18" height="18" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
36
                            <path d="M12.75 4.75H7.75C6.64543 4.75 5.75 5.64543 5.75 6.75V17.25C5.75 18.3546 6.64543 19.25 7.75 19.25H16.25C17.3546 19.25 18.25 18.3546 18.25 17.25V10.25M12.75 4.75V8.25C12.75 9.35457 13.6454 10.25 14.75 10.25H18.25M12.75 4.75L18.25 10.25" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
37
                        </svg>
38
                    </a>
39
                </div>
40
                <div class="fp-btn-mkdir">
41
                    <a role="button" title="{{#str}}makeafolder{{/str}}" class="rui-icon-no-margin btn btn-icon btn-secondary" href="#">
42
                        <svg width="18" height="18" fill="none" viewBox="0 0 24 24">
43
                            <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M12.25 19.25H6.75C5.64543 19.25 4.75 18.3546 4.75 17.25V7.75H17.25C18.3546 7.75 19.25 8.64543 19.25 9.75V12.25"></path>
44
                            <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M13.5 7.5L12.5685 5.7923C12.2181 5.14977 11.5446 4.75 10.8127 4.75H6.75C5.64543 4.75 4.75 5.64543 4.75 6.75V11"></path>
45
                            <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M17 14.75V19.25"></path>
46
                            <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M19.25 17L14.75 17"></path>
47
                        </svg>
48
                    </a>
49
                </div>
50
                <div class="fp-btn-download">
51
                    <a role="button" title="{{#str}}download, repository{{/str}}" class="rui-icon-no-margin btn btn-icon btn-info" href="#">
52
                        <svg width="18" height="18" fill="none" viewBox="0 0 24 24">
53
                            <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" 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>
54
                            <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M12 14.25L12 4.75"></path>
55
                            <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M8.75 10.75L12 14.25L15.25 10.75"></path>
56
                        </svg>
57
                    </a>
58
                </div>
59
                <div class="fp-btn-delete">
60
                    <a role="button" title="{{#str}}delete{{/str}}" class="con-no-margin btn btn-icon btn-danger" href="#">
61
                        <svg width="18" height="18" fill="none" viewBox="0 0 24 24">
62
                            <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" 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"></path>
63
                            <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" 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"></path>
64
                            <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M5 7.75H19"></path>
65
                        </svg>
66
                    </a>
67
                </div>
68
                <span class="fp-img-downloading">
69
                    <span class="sr-only">{{#str}}loadinghelp{{/str}}</span>
70
                    <svg class="spinner" viewBox="0 0 50 50">
71
                        <circle class="path" cx="25" cy="25" r="20" fill="none" stroke-width="5"></circle>
72
                    </svg>
73
                </span>
74
            </div>
75
            <div class="fp-viewbar btn-group ml-auto">
76
                <a title="{{#str}}displayicons, repository{{/str}}" class="fp-vb-icons rui-icon-no-margin btn btn-icon btn-secondary" href="#">
77
                    <svg width="18" height="18" fill="none" viewBox="0 0 24 24">
78
                        <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M4.75 5.75C4.75 5.19772 5.19772 4.75 5.75 4.75H9.25C9.80228 4.75 10.25 5.19772 10.25 5.75V9.25C10.25 9.80228 9.80228 10.25 9.25 10.25H5.75C5.19772 10.25 4.75 9.80228 4.75 9.25V5.75Z"/>
79
                        <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M4.75 14.75C4.75 14.1977 5.19772 13.75 5.75 13.75H9.25C9.80228 13.75 10.25 14.1977 10.25 14.75V18.25C10.25 18.8023 9.80228 19.25 9.25 19.25H5.75C5.19772 19.25 4.75 18.8023 4.75 18.25V14.75Z"/>
80
                        <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M13.75 5.75C13.75 5.19772 14.1977 4.75 14.75 4.75H18.25C18.8023 4.75 19.25 5.19772 19.25 5.75V9.25C19.25 9.80228 18.8023 10.25 18.25 10.25H14.75C14.1977 10.25 13.75 9.80228 13.75 9.25V5.75Z"/>
81
                        <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M13.75 14.75C13.75 14.1977 14.1977 13.75 14.75 13.75H18.25C18.8023 13.75 19.25 14.1977 19.25 14.75V18.25C19.25 18.8023 18.8023 19.25 18.25 19.25H14.75C14.1977 19.25 13.75 18.8023 13.75 18.25V14.75Z"/>
82
                    </svg>
83
                </a>
84
                <a title="{{#str}}displaydetails, repository{{/str}}" class="fp-vb-details rui-icon-no-margin btn btn-icon btn-secondary" href="#">
85
                    <svg width="18" height="18" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
86
                        <path d="M7.75 5.75H16.25" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
87
                        <path d="M7.75 18.25H16.25" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
88
                        <path d="M4.75 12H19.25" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
89
                    </svg>
90
                </a>
91
                <a title="{{#str}}displaytree, repository{{/str}}" class="fp-vb-tree rui-icon-no-margin btn btn-icon btn-secondary" href="#">
92
                    <svg width="18" height="18" fill="none" viewBox="0 0 24 24">
93
                        <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M19.25 17.25V9.75C19.25 8.64543 18.3546 7.75 17.25 7.75H4.75V17.25C4.75 18.3546 5.64543 19.25 6.75 19.25H17.25C18.3546 19.25 19.25 18.3546 19.25 17.25Z"/>
94
                        <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M13.5 7.5L12.5685 5.7923C12.2181 5.14977 11.5446 4.75 10.8127 4.75H6.75C5.64543 4.75 4.75 5.64543 4.75 6.75V11"/>
95
                    </svg>
96
                </a>
97
            </div>
98
        </div>
99
        <div class="fp-pathbar breadcrumb mx-1 my-2 border-top pt-2">
100
            <span class="fp-path-folder breadcrumb-item"><a class="fp-path-folder-name aalink" href="#"></a></span>
101
        </div>
102
    </div>
103
    <div class="filemanager-loading mdl-align">
104
        <svg class="spinner" viewBox="0 0 50 50">
105
            <circle class="path" cx="25" cy="25" r="20" fill="none" stroke-width="5"></circle>
106
        </svg>
107
        <span class="sr-only">{{#str}}loadinghelp{{/str}}</span>
108
    </div>
109
    <div class="filemanager-container mt-2" >
110
        <div class="fm-content-wrapper">
111
            <div class="fp-content"></div>
112
            <div class="fm-empty-container">
113
                <div class="dndupload-message">{{#str}}dndenabled_inbox{{/str}}<br/><div class="dndupload-arrow"></div></div>
114
            </div>
115
            <div class="dndupload-target">{{#str}}droptoupload{{/str}}<br/><div class="dndupload-arrow"></div></div>
116
            <div class="dndupload-progressbars"></div>
117
            <div class="dndupload-uploadinprogress">
118
                <svg class="spinner" viewBox="0 0 50 50">
119
                    <circle class="path" cx="25" cy="25" r="20" fill="none" stroke-width="5"></circle>
120
                </svg>
121
                <span class="sr-only">{{#str}}loadinghelp{{/str}}</span>
122
            </div>
123
        </div>
124
        <div class="filemanager-updating">
125
            <svg class="spinner" viewBox="0 0 50 50">
126
                <circle class="path" cx="25" cy="25" r="20" fill="none" stroke-width="5"></circle>
127
            </svg>
128
            <span class="sr-only">{{#str}}loadinghelp{{/str}}</span>
129
        </div>
130
    </div>
131
 
132
        <div class="fp-restrictions mt-2">
133
        {{{restrictions}}}
134
        <span class="dnduploadnotsupported-message"> - {{#str}}dndnotsupported_insentence{{/str}}{{{helpicon}}}</span>
135
    </div>
136
</div>