Dateiverwaltung für die WebBox
Ulrich
2017-02-27 7d8ef67736311d75b97a249482a938662035fd39
commit | author | age
c7c502 1 <!DOCTYPE html>
U 2 <html>
3   <head>
9fac84 4     <title>Dateiverwaltung</title>
c7c502 5     <meta charset="UTF-8">
U 6     <meta name="viewport" content="width=device-width, initial-scale=1.0">
a4d3b5 7     <link rel="stylesheet" href="/jslib/codemirror/lib/codemirror.css">    
U 8     <link rel="stylesheet" href="/jslib/codemirror/addon/display/fullscreen.css">        
c7c502 9     <link rel="stylesheet" type="text/css" href="/jslib/bootstrap/css/bootstrap.min.css">
U 10     <link rel="stylesheet" type="text/css" href="/jslib/font-awesome/css/font-awesome.min.css">
11     <link rel="stylesheet" type="text/css" href="stile.css">
7d8ef6 12     <script id="tpl-kacheln" type="x-tmpl-mustache">
U 13       {{#files}}          
14         <figure class="figure datei-figure text-center text-warning align-top datei-elem">
15           <i class="fa {{ typeClass }} fa-3x"></i>
16           <figcaption class="figure-caption dateiname">{{ fileName }}</figcaption>
17         </figure>   
18       {{/files}}          
19     </script>
20     <script id="tpl-liste" type="x-tmpl-mustache">
21       <table class="table table-hover table-sm table-responsive tableBodyScroll">
22         <thead>
23           <tr>
24             <th colspan="2">Name</th>
25             <th>Gr&ouml;&szlig;e</th>
26             <th>Art</th>
27             <th>ge&auml;ndert</th>
28           </tr>
29         </thead>
30         <tbody>
31         {{#files}}
32           <tr class="datei-zeile">
33             <td class="datei-elem"><i class="fa {{ typeClass }}"></i></td>
34             <td class="dateiname">{{ fileName }}</td>
35             <td>{{ fr.length }}</td>
36             <td>&nbsp;</td>
37             <td>{{ fr.lastModified }}</td>
38           </tr>
39         {{/files}}
40         </tbody>
41       </table>
42     </script>
43     <script id="tpl-bcr" type="x-tmpl-mustache">
44       {{#files}}
45           <a class="breadcrumb-item" rpath="{{ relPath }}" href="#">{{ fName }}</a>
46       {{/files}}
47     </script>
48     <script id="tpl-bcr2" type="x-tmpl-mustache">
49       <span class="breadcrumb-item active">{{ fName }}</span>
50     </script>
5dfab6 51     <script id="tpl-bcr3" type="x-tmpl-mustache">
10d3d3 52       <div id="ansicht" class="pull-right align-middle">
U 53         <i class="fa fa-th-list"></i>
5dfab6 54       </div>              
7d8ef6 55     </script>  </head>
c7c502 56   <body>
U 57     <!-- Kopfzeile -->
58     <div class="nord">
59       
60       <div id="menue"> <!-- Menue -->
28b4d2 61         <ul class="nav pl-3">
c7c502 62           <li class="nav-item dropdown">
9fac84 63             <a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">Datei</a>
c7c502 64             <div class="dropdown-menu">
fc1897 65               <a id="newTextFile" class="dropdown-item" href="#">Neuer Text..</a>
305573 66               <a id="newDoc" class="dropdown-item" href="#">Neues Dokument..</a>
c509a0 67               <a id="newFolder" class="dropdown-item" href="#">Neuer Ordner..</a>
c7c502 68               <div class="dropdown-divider"></div>
fc1897 69               <a id="editTextFile" class="dropdown-item" href="#">&Ouml;ffnen als Text</a>
7d8ef6 70               <a id="editDocFile" class="dropdown-item" href="#">&Ouml;ffnen als Dokument</a>
9fac84 71               <div class="dropdown-divider"></div>
fc1897 72               <a class="dropdown-item disabled" href="#">Ansehen als Text</a>
U 73               <a class="dropdown-item disabled" href="#">Ansehen als Dokument</a>
a4d3b5 74               <div class="dropdown-divider"></div>
e5ff42 75               <a id="saveFile" class="dropdown-item" href="#">Speichern</a>
5ebb8e 76               <a id="saveFileAs" class="dropdown-item" href="#">Speichern unter..</a>
a4d3b5 77               <div class="dropdown-divider"></div>
fc1897 78               <a id="renameFile" class="dropdown-item" href="#">Umbenennen..</a>
bef5c6 79               <div class="dropdown-divider"></div>
fc1897 80               <a id="closeFile" class="dropdown-item" href="#">Schliessen</a>
U 81             </div>
82           </li>
83           <li class="nav-item dropdown">
84             <a id="editMenu" class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">Bearbeiten</a>
85             <div class="dropdown-menu">
86               <a id="m-cut" class="dropdown-item" href="#">Ausschneiden</a>
87               <a id="m-copy" class="dropdown-item" href="#">Kopieren</a>
88               <a id="m-paste" class="dropdown-item" href="#">Einf&uuml;gen</a>
89               <div class="dropdown-divider"></div>
90               <a id="m-del" class="dropdown-item" href="#">L&ouml;schen</a>
c7c502 91             </div>
U 92           </li>
93           <li class="nav-item dropdown">
9fac84 94             <a id="userMenu" class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">Nutzer-ID</a>
c7c502 95             <div class="dropdown-menu">
9fac84 96               <a class="dropdown-item" href="/">Zur Hauptseite der WebBox wechseln</a>
U 97               <div class="dropdown-divider"></div>
98               <a class="dropdown-item" href="/wbx/mng">Apps verwalten</a>
99               <a class="dropdown-item" href="/um/ui">Benutzer verwalten</a>
e5ff42 100               <a class="dropdown-item disabled" href="/file-cms/ui">Dateien verwalten</a>
fc1897 101               <div class="dropdown-divider"></div>
U 102               <a id="m-test" class="dropdown-item" href="#">Test</a>
9fac84 103               <div class="dropdown-divider"></div>
c7c502 104               <a id="logout" class="dropdown-item" href="#">Abmelden</a>
U 105             </div>
106           </li>
107         </ul>
108       </div> <!-- Menue -->
109       
110     </div>
111     <div class="inhalt">
112       <!-- westliche Seitenleiste -->
113       <div class="west hidden-xs-down">
114           <!-- linke Seitenleiste mit Links -->
653519 115           <!--
c7c502 116           <nav class="nav flex-column">
U 117             <a class="nav-link active" href="#">Active</a>
118             <a class="nav-link" href="#">Link</a>
119             <a class="nav-link" href="#">Link</a>
120             <a class="nav-link disabled" href="#">Disabled</a>
653519 121           </nav> 
U 122           -->
c7c502 123       </div>
U 124       <!-- zentraler Inhaltsbereich -->
125       <div class="zentrum">
a4d3b5 126         
f5505f 127         <!-- Codemirror Start -->
653519 128         <div class="code-editor-container pl-3 pr-3 pb-3">
a4d3b5 129         <div class="codeeditor-space pr-3">
U 130           <textarea class="codeeditor" id="editspace"></textarea>       
c7c502 131         </div>
a4d3b5 132         </div>
f5505f 133         <!-- Codemirror Ende -->
305573 134         <!-- TinyMCE Start -->
7d8ef6 135         <div id="mce-editor" class="pl-3 pr-3">
305573 136           <textarea class="text-editor" id="text-editspace"></textarea>
U 137         </div>        
138         <!-- TinyMCE Ende -->
f5505f 139         <!-- Breadcrumb Start -->
305573 140         <div id="zentrum_bc" class="zentrum-bc pl-3 pr-3">
28b4d2 141           <nav class="breadcrumb" id="bcnav"></nav>             
c7c502 142         </div>
f5505f 143         <!-- Breadcrumb Ende -->
U 144         <!-- Dateikacheln/-liste Start -->
28b4d2 145         <div class="zentrum-liste pl-3 pr-3" id="dateien"></div>
f5505f 146         <!-- Dateikacheln Ende -->
915927 147         
c7c502 148       </div>
U 149       <!-- oestliche Seitenleiste -->
7aa566 150       <div class="ost"></div>
bef5c6 151       
f5505f 152       <!-- Modal -->
U 153       <div class="modal fade" id="saveModal">
154         <div class="modal-dialog" role="document">
155           <div class="modal-content">
156             <div class="modal-header">
957b51 157               <h5 id="saveModalTitle" class="modal-title">Datei speichern</h5>
f5505f 158               <button type="button" class="close" data-dismiss="modal" aria-label="Close">
U 159                 <span aria-hidden="true">&times;</span>
160               </button>
161             </div>
957b51 162             <div id="saveModalBody" class="modal-body">
f5505f 163               <p id="dialogfrage">Dateiname?</p>
U 164               <input class="form-control eingabe" type="text" size="20" maxlength="250" placeholder="Dateiname" name="dateiname" id="dateiname">
165             </div>
166             <div class="modal-footer">
167               <button id="modal_ok" type="button" class="btn btn-primary" data-dismiss="modal">Speichern</button>
168               <button id="modal_cancel" type="button" class="btn btn-secondary" data-dismiss="modal">Abbrechen</button>
169             </div>
170           </div>
171         </div>
172       </div> <!-- Modal Ende -->        
fc1897 173       <!-- Modal ok / cancel Start -->
U 174       <div class="modal fade" id="confirmModal">
175         <div class="modal-dialog" role="document">
176           <div class="modal-content">
177             <div class="modal-header">
957b51 178               <h5 id="confirmModalTitle" class="modal-title">L&ouml;schen</h5>
fc1897 179               <button type="button" class="close" data-dismiss="modal" aria-label="Close">
U 180                 <span aria-hidden="true">&times;</span>
181               </button>
182             </div>
957b51 183             <div id="confirmModalBody" class="modal-body">
fc1897 184               <p>Wirklich ...?</p>
U 185             </div>
186             <div class="modal-footer">
187               <button id="confirmOk" type="button" class="btn btn-danger" data-dismiss="modal">L&ouml;schen</button>
188               <button id="confirmCancel" type="button" class="btn btn-secondary" data-dismiss="modal">Abbrechen</button>
189             </div>
190           </div>
191         </div>
192       </div>
193       <!-- Modal ok / cancel Ende -->
c7c502 194     </div>
U 195     <!-- Fusszeile -->
196     <!--
197     <div class="sued">
198       Fu&szlig;zeile
199     </div>
200     -->
201     <!-- Skripte -->
202     <script src="/jslib/jquery/jquery.min.js"></script>
a4d3b5 203     <script src="/jslib/codemirror/lib/codemirror.js"></script>
U 204     <script src="/jslib/codemirror/mode/javascript/javascript.js"></script>
205     <script src="/jslib/codemirror/mode/xml/xml.js"></script>
206     <script src="/jslib/codemirror/mode/htmlmixed/htmlmixed.js"></script>
207     
208     <script src="/jslib/codemirror/addon/display/fullscreen.js"></script>
305573 209     <script src="/jslib/tinymce/tinymce.min.js"></script>
c7c502 210     <script src="/jslib/bootstrap/js/bootstrap.min.js"></script>
U 211     <script src="/jslib/mustache/mustache.min.js"></script>
212     <script src="ui.js"></script>
213     <script type="text/javascript" charset="utf-8">
214       //var ui;
215       $(document).ready(function() {
a4d3b5 216         fm_init();
c7c502 217       });
U 218     </script>
219   </body>
220 </html>