Dateiverwaltung für die WebBox
ulrich
2017-03-08 438b168cad54853a8b419e6c19e639b6d2f70bc0
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>
311e88 72               <a id="viewFile" class="dropdown-item" href="#">Ansehen</a>
U 73               <!--<a class="dropdown-item" 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>
438b16 90               <a id="m-shrink" class="dropdown-item" href="#">Verkleinern</a>
U 91               <div class="dropdown-divider"></div>
fc1897 92               <a id="m-del" class="dropdown-item" href="#">L&ouml;schen</a>
c7c502 93             </div>
U 94           </li>
95           <li class="nav-item dropdown">
9fac84 96             <a id="userMenu" class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">Nutzer-ID</a>
c7c502 97             <div class="dropdown-menu">
9fac84 98               <a class="dropdown-item" href="/">Zur Hauptseite der WebBox wechseln</a>
U 99               <div class="dropdown-divider"></div>
100               <a class="dropdown-item" href="/wbx/mng">Apps verwalten</a>
101               <a class="dropdown-item" href="/um/ui">Benutzer verwalten</a>
e5ff42 102               <a class="dropdown-item disabled" href="/file-cms/ui">Dateien verwalten</a>
fc1897 103               <div class="dropdown-divider"></div>
U 104               <a id="m-test" class="dropdown-item" href="#">Test</a>
9fac84 105               <div class="dropdown-divider"></div>
c7c502 106               <a id="logout" class="dropdown-item" href="#">Abmelden</a>
U 107             </div>
108           </li>
109         </ul>
110       </div> <!-- Menue -->
111       
112     </div>
113     <div class="inhalt">
114       <!-- westliche Seitenleiste -->
115       <div class="west hidden-xs-down">
116           <!-- linke Seitenleiste mit Links -->
653519 117           <!--
c7c502 118           <nav class="nav flex-column">
U 119             <a class="nav-link active" href="#">Active</a>
120             <a class="nav-link" href="#">Link</a>
121             <a class="nav-link" href="#">Link</a>
122             <a class="nav-link disabled" href="#">Disabled</a>
653519 123           </nav> 
U 124           -->
c7c502 125       </div>
U 126       <!-- zentraler Inhaltsbereich -->
127       <div class="zentrum">
a4d3b5 128         
f5505f 129         <!-- Codemirror Start -->
653519 130         <div class="code-editor-container pl-3 pr-3 pb-3">
a4d3b5 131         <div class="codeeditor-space pr-3">
U 132           <textarea class="codeeditor" id="editspace"></textarea>       
c7c502 133         </div>
a4d3b5 134         </div>
f5505f 135         <!-- Codemirror Ende -->
305573 136         <!-- TinyMCE Start -->
7d8ef6 137         <div id="mce-editor" class="pl-3 pr-3">
305573 138           <textarea class="text-editor" id="text-editspace"></textarea>
U 139         </div>        
140         <!-- TinyMCE Ende -->
f5505f 141         <!-- Breadcrumb Start -->
305573 142         <div id="zentrum_bc" class="zentrum-bc pl-3 pr-3">
28b4d2 143           <nav class="breadcrumb" id="bcnav"></nav>             
c7c502 144         </div>
f5505f 145         <!-- Breadcrumb Ende -->
U 146         <!-- Dateikacheln/-liste Start -->
28b4d2 147         <div class="zentrum-liste pl-3 pr-3" id="dateien"></div>
f5505f 148         <!-- Dateikacheln Ende -->
915927 149         
c7c502 150       </div>
U 151       <!-- oestliche Seitenleiste -->
7aa566 152       <div class="ost"></div>
bef5c6 153       
f5505f 154       <!-- Modal -->
U 155       <div class="modal fade" id="saveModal">
156         <div class="modal-dialog" role="document">
157           <div class="modal-content">
158             <div class="modal-header">
957b51 159               <h5 id="saveModalTitle" class="modal-title">Datei speichern</h5>
f5505f 160               <button type="button" class="close" data-dismiss="modal" aria-label="Close">
U 161                 <span aria-hidden="true">&times;</span>
162               </button>
163             </div>
957b51 164             <div id="saveModalBody" class="modal-body">
f5505f 165               <p id="dialogfrage">Dateiname?</p>
U 166               <input class="form-control eingabe" type="text" size="20" maxlength="250" placeholder="Dateiname" name="dateiname" id="dateiname">
167             </div>
168             <div class="modal-footer">
169               <button id="modal_ok" type="button" class="btn btn-primary" data-dismiss="modal">Speichern</button>
170               <button id="modal_cancel" type="button" class="btn btn-secondary" data-dismiss="modal">Abbrechen</button>
171             </div>
172           </div>
173         </div>
174       </div> <!-- Modal Ende -->        
fc1897 175       <!-- Modal ok / cancel Start -->
U 176       <div class="modal fade" id="confirmModal">
177         <div class="modal-dialog" role="document">
178           <div class="modal-content">
179             <div class="modal-header">
957b51 180               <h5 id="confirmModalTitle" class="modal-title">L&ouml;schen</h5>
fc1897 181               <button type="button" class="close" data-dismiss="modal" aria-label="Close">
U 182                 <span aria-hidden="true">&times;</span>
183               </button>
184             </div>
957b51 185             <div id="confirmModalBody" class="modal-body">
fc1897 186               <p>Wirklich ...?</p>
U 187             </div>
188             <div class="modal-footer">
189               <button id="confirmOk" type="button" class="btn btn-danger" data-dismiss="modal">L&ouml;schen</button>
190               <button id="confirmCancel" type="button" class="btn btn-secondary" data-dismiss="modal">Abbrechen</button>
191             </div>
192           </div>
193         </div>
194       </div>
195       <!-- Modal ok / cancel Ende -->
c7c502 196     </div>
U 197     <!-- Fusszeile -->
198     <!--
199     <div class="sued">
200       Fu&szlig;zeile
201     </div>
202     -->
203     <!-- Skripte -->
204     <script src="/jslib/jquery/jquery.min.js"></script>
a4d3b5 205     <script src="/jslib/codemirror/lib/codemirror.js"></script>
42fece 206     
a4d3b5 207     <script src="/jslib/codemirror/mode/javascript/javascript.js"></script>
U 208     <script src="/jslib/codemirror/mode/xml/xml.js"></script>
209     <script src="/jslib/codemirror/mode/htmlmixed/htmlmixed.js"></script>
42fece 210     <script src="/jslib/codemirror/mode/clike/clike.js"></script>
a4d3b5 211     
U 212     <script src="/jslib/codemirror/addon/display/fullscreen.js"></script>
305573 213     <script src="/jslib/tinymce/tinymce.min.js"></script>
c7c502 214     <script src="/jslib/bootstrap/js/bootstrap.min.js"></script>
U 215     <script src="/jslib/mustache/mustache.min.js"></script>
216     <script src="ui.js"></script>
217     <script type="text/javascript" charset="utf-8">
218       //var ui;
219       $(document).ready(function() {
a4d3b5 220         fm_init();
c7c502 221       });
U 222     </script>
223   </body>
224 </html>