Dateiverwaltung für die WebBox
ulrich
2017-02-23 bef5c6d6beadf50e8c938653fa7881b94bcd1344
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">
a4d3b5 66               <a id="newTextFile" class="dropdown-item" href="#">Neue Text-Datei..</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>
10d3d3 70               <a class="dropdown-item disabled" href="#">Ansehen als Code</a>
U 71               <a class="dropdown-item disabled" href="#">Ansehen als Dokument</a>
9fac84 72               <div class="dropdown-divider"></div>
2121cc 73               <a id="editTextFile" class="dropdown-item" href="#">Bearbeiten als Code</a>
10d3d3 74               <a class="dropdown-item disabled" href="#">Bearbeiten 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>
U 79               <a id="closeFile" class="dropdown-item" href="#">Schliessen</a>
bef5c6 80               <div class="dropdown-divider"></div>
U 81               <a id="m-test" class="dropdown-item" href="#">Test</a>
c7c502 82             </div>
U 83           </li>
84           <li class="nav-item dropdown">
9fac84 85             <a id="userMenu" class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">Nutzer-ID</a>
c7c502 86             <div class="dropdown-menu">
9fac84 87               <a class="dropdown-item" href="/">Zur Hauptseite der WebBox wechseln</a>
U 88               <div class="dropdown-divider"></div>
89               <a class="dropdown-item" href="/wbx/mng">Apps verwalten</a>
90               <a class="dropdown-item" href="/um/ui">Benutzer verwalten</a>
e5ff42 91               <a class="dropdown-item disabled" href="/file-cms/ui">Dateien verwalten</a>
9fac84 92               <div class="dropdown-divider"></div>
c7c502 93               <a id="logout" class="dropdown-item" href="#">Abmelden</a>
U 94             </div>
95           </li>
96         </ul>
97       </div> <!-- Menue -->
98       
99     </div>
100     <div class="inhalt">
101       <!-- westliche Seitenleiste -->
102       <div class="west hidden-xs-down">
103           <!-- linke Seitenleiste mit Links -->
653519 104           <!--
c7c502 105           <nav class="nav flex-column">
U 106             <a class="nav-link active" href="#">Active</a>
107             <a class="nav-link" href="#">Link</a>
108             <a class="nav-link" href="#">Link</a>
109             <a class="nav-link disabled" href="#">Disabled</a>
653519 110           </nav> 
U 111           -->
c7c502 112       </div>
U 113       <!-- zentraler Inhaltsbereich -->
114       <div class="zentrum">
a4d3b5 115         
f5505f 116         <!-- Codemirror Start -->
653519 117         <div class="code-editor-container pl-3 pr-3 pb-3">
a4d3b5 118         <div class="codeeditor-space pr-3">
U 119           <textarea class="codeeditor" id="editspace"></textarea>       
c7c502 120         </div>
a4d3b5 121         </div>
f5505f 122         <!-- Codemirror Ende -->
U 123         <!-- Breadcrumb Start -->
28b4d2 124         <div class="zentrum-bc pl-3 pr-3">
U 125           <nav class="breadcrumb" id="bcnav"></nav>             
c7c502 126         </div>
f5505f 127         <!-- Breadcrumb Ende -->
U 128         <!-- Dateikacheln/-liste Start -->
28b4d2 129         <div class="zentrum-liste pl-3 pr-3" id="dateien"></div>
f5505f 130         <!-- Dateikacheln Ende -->
915927 131         
c7c502 132       </div>
U 133       <!-- oestliche Seitenleiste -->
bef5c6 134       
c7c502 135       <div class="ost">
U 136         &ouml;stliche Seitenleiste
137       </div>
bef5c6 138       
f5505f 139       <!-- Modal -->
U 140       <div class="modal fade" id="saveModal">
141         <div class="modal-dialog" role="document">
142           <div class="modal-content">
143             <div class="modal-header">
144               <h5 class="modal-title">Datei speichern</h5>
145               <button type="button" class="close" data-dismiss="modal" aria-label="Close">
146                 <span aria-hidden="true">&times;</span>
147               </button>
148             </div>
149             <div class="modal-body">
150               <p id="dialogfrage">Dateiname?</p>
151               <input class="form-control eingabe" type="text" size="20" maxlength="250" placeholder="Dateiname" name="dateiname" id="dateiname">
152             </div>
153             <div class="modal-footer">
154               <button id="modal_ok" type="button" class="btn btn-primary" data-dismiss="modal">Speichern</button>
155               <button id="modal_cancel" type="button" class="btn btn-secondary" data-dismiss="modal">Abbrechen</button>
156             </div>
157           </div>
158         </div>
159       </div> <!-- Modal Ende -->        
c7c502 160     </div>
U 161     <!-- Fusszeile -->
162     <!--
163     <div class="sued">
164       Fu&szlig;zeile
165     </div>
166     -->
167     <!-- Skripte -->
168     <script src="/jslib/jquery/jquery.min.js"></script>
a4d3b5 169     <script src="/jslib/codemirror/lib/codemirror.js"></script>
U 170     <script src="/jslib/codemirror/mode/javascript/javascript.js"></script>
171     <script src="/jslib/codemirror/mode/xml/xml.js"></script>
172     <script src="/jslib/codemirror/mode/htmlmixed/htmlmixed.js"></script>
173     
174     <script src="/jslib/codemirror/addon/display/fullscreen.js"></script>
175     
c7c502 176     <script src="/jslib/bootstrap/js/bootstrap.min.js"></script>
U 177     <script src="/jslib/mustache/mustache.min.js"></script>
178     <script src="ui.js"></script>
179     <script type="text/javascript" charset="utf-8">
180       //var ui;
181       $(document).ready(function() {
a4d3b5 182         fm_init();
c7c502 183       });
U 184     </script>
185   </body>
186 </html>