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