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