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