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