Dateiverwaltung für die WebBox
ulrich
2017-02-20 7342b1f3850299264b571d1d63778173c9a30703
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}}          
14         <figure class="figure datei-figure text-center text-warning align-top">
15           <i class="fa {{ typeClass }} fa-folder fa-3x"></i>
16           <figcaption class="figure-caption">{{ fr.absolutePath }}</figcaption>
17         </figure>   
18       {{/files}}
19           
20     </script>
c7c502 21   </head>
U 22   <body>
23     <!-- Kopfzeile -->
24     <div class="nord">
25       
26       <div id="menue"> <!-- Menue -->
27         <ul class="nav">
28           <li class="nav-item dropdown">
9fac84 29             <a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">Datei</a>
c7c502 30             <div class="dropdown-menu">
a4d3b5 31               <a id="newTextFile" class="dropdown-item" href="#">Neue Text-Datei..</a>
9fac84 32               <a class="dropdown-item" href="#">Neues Dokument..</a>
c7c502 33               <div class="dropdown-divider"></div>
9fac84 34               <a class="dropdown-item" href="#">Ansehen als Code</a>
U 35               <a class="dropdown-item" href="#">Ansehen als Dokument</a>
36               <div class="dropdown-divider"></div>
37               <a class="dropdown-item" href="#">Bearbeiten als Code</a>
38               <a class="dropdown-item" href="#">Bearbeiten als Dokument</a>
a4d3b5 39               <div class="dropdown-divider"></div>
e5ff42 40               <a id="saveFile" class="dropdown-item" href="#">Speichern</a>
a4d3b5 41               <div class="dropdown-divider"></div>
U 42               <a id="closeFile" class="dropdown-item" href="#">Schliessen</a>
c7c502 43             </div>
U 44           </li>
45           <li class="nav-item dropdown">
9fac84 46             <a id="userMenu" class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">Nutzer-ID</a>
c7c502 47             <div class="dropdown-menu">
9fac84 48               <a class="dropdown-item" href="/">Zur Hauptseite der WebBox wechseln</a>
U 49               <div class="dropdown-divider"></div>
50               <a class="dropdown-item" href="/wbx/mng">Apps verwalten</a>
51               <a class="dropdown-item" href="/um/ui">Benutzer verwalten</a>
e5ff42 52               <a class="dropdown-item disabled" href="/file-cms/ui">Dateien verwalten</a>
9fac84 53               <div class="dropdown-divider"></div>
c7c502 54               <a id="logout" class="dropdown-item" href="#">Abmelden</a>
U 55             </div>
56           </li>
57         </ul>
58       </div> <!-- Menue -->
59       
60     </div>
61     <div class="inhalt">
62       <!-- westliche Seitenleiste -->
63       <div class="west hidden-xs-down">
64           <!-- linke Seitenleiste mit Links -->
65           <nav class="nav flex-column">
66             <a class="nav-link active" href="#">Active</a>
67             <a class="nav-link" href="#">Link</a>
68             <a class="nav-link" href="#">Link</a>
69             <a class="nav-link disabled" href="#">Disabled</a>
70           </nav>    
71       </div>
72       <!-- zentraler Inhaltsbereich -->
73       <div class="zentrum">
a4d3b5 74         
U 75         <div class="code-editor-container pr-3 pb-3">
76         <div class="codeeditor-space pr-3">
77           <textarea class="codeeditor" id="editspace"></textarea>       
c7c502 78         </div>
a4d3b5 79         </div>
U 80         
81         <!-- <div id="code-editor-container" class="pr-2"> -->
82           
83           <!--
84           <div id="edit-tabs">
85             <ul class="nav nav-tabs">
86               <li class="nav-item">
87                 <a class="nav-link active" href="#">Active</a>
88               </li>
89               <li class="nav-item">
90                 <a class="nav-link" href="#">Link</a>
91               </li>
92               <li class="nav-item">
93                 <a class="nav-link" href="#">Link</a>
94               </li>
95               <li class="nav-item">
96                 <a class="nav-link disabled" href="#">Disabled</a>
97               </li>
98             </ul>
99           </div>
100           -->
101           
102         <!-- </div> -->
103         
104         <div id="dateiansicht">
105           <!-- Breadcrumb Start -->
106           <div class="zentrum-bc">
107             <nav class="breadcrumb">
108               <a class="breadcrumb-item" href="#">Home</a>
109               <a class="breadcrumb-item" href="#">Library</a>
110               <a class="breadcrumb-item" href="#">Data</a>
111               <span class="breadcrumb-item active">Bootstrap</span>
112               <div class="pull-right align-middle">
113                 <i class="fa fa-th-large"></i>
114               </div>
115             </nav>            
116           </div>
117           <!-- Breadcrumb Ende -->
118           <!-- Dateikacheln Start -->
7342b1 119           <div class="zentrum-liste" id="dateien">
a4d3b5 120             <figure class="figure datei-figure text-center text-warning align-top">
U 121               <i class="fa fa-folder fa-3x"></i>
122               <figcaption class="figure-caption">Kurzer Text</figcaption>
123             </figure>   
124             <figure class="figure datei-figure text-center text-warning align-top">
125               <i class="fa fa-folder fa-3x"></i>
126               <figcaption class="figure-caption">A caption for the above image.</figcaption>
127             </figure>   
128             <figure class="figure datei-figure text-center text-warning align-top">
129               <i class="fa fa-folder fa-3x"></i>
130               <figcaption class="figure-caption">Ein ganz langer Text, der dieses Element benennt.</figcaption>
131             </figure>   
132             <figure class="figure datei-figure text-center text-warning align-top">
133               <i class="fa fa-folder fa-3x"></i>
134               <figcaption class="figure-caption">Wort</figcaption>
135             </figure>   
136             <figure class="figure datei-figure text-center text-warning align-top">
137               <i class="fa fa-folder fa-3x"></i>
138               <figcaption class="figure-caption">Wort2</figcaption>
139             </figure>   
140             <figure class="figure datei-figure text-center text-warning align-top">
141               <i class="fa fa-folder fa-3x"></i>
142               <figcaption class="figure-caption">Wort3</figcaption>
143             </figure>   
144           </div>
145           <!-- Dateikacheln Ende -->
c7c502 146         </div>
915927 147         
U 148         <!-- Modal -->
149         <div class="modal fade" id="saveModal">
150           <div class="modal-dialog" role="document">
151             <div class="modal-content">
152               <div class="modal-header">
1a47ca 153                 <h5 class="modal-title">Datei speichern</h5>
915927 154                 <button type="button" class="close" data-dismiss="modal" aria-label="Close">
U 155                   <span aria-hidden="true">&times;</span>
156                 </button>
157               </div>
158               <div class="modal-body">
159                 <p>Dateiname?</p>
160                 <input class="form-control eingabe" type="text" size="20" maxlength="250" placeholder="Dateiname" name="dateiname" id="dateiname">
161               </div>
162               <div class="modal-footer">
163                 <button id="modal_ok" type="button" class="btn btn-primary" data-dismiss="modal">Speichern</button>
164                 <button id="modal_cancel" type="button" class="btn btn-secondary" data-dismiss="modal">Abbrechen</button>
165               </div>
166             </div>
167           </div>
168         </div> <!-- Modal Ende -->        
c7c502 169       </div>
U 170       <!-- oestliche Seitenleiste -->
171       <!--
172       <div class="ost">
173         &ouml;stliche Seitenleiste
174       </div>
175       -->
176     </div>
177     <!-- Fusszeile -->
178     <!--
179     <div class="sued">
180       Fu&szlig;zeile
181     </div>
182     -->
183     <!-- Skripte -->
184     <script src="/jslib/jquery/jquery.min.js"></script>
a4d3b5 185     <script src="/jslib/codemirror/lib/codemirror.js"></script>
U 186     <script src="/jslib/codemirror/mode/javascript/javascript.js"></script>
187     <script src="/jslib/codemirror/mode/xml/xml.js"></script>
188     <script src="/jslib/codemirror/mode/htmlmixed/htmlmixed.js"></script>
189     
190     <script src="/jslib/codemirror/addon/display/fullscreen.js"></script>
191     
c7c502 192     <script src="/jslib/bootstrap/js/bootstrap.min.js"></script>
U 193     <script src="/jslib/mustache/mustache.min.js"></script>
194     <script src="ui.js"></script>
195     <script type="text/javascript" charset="utf-8">
196       //var ui;
197       $(document).ready(function() {
a4d3b5 198         fm_init();
c7c502 199       });
U 200     </script>
201   </body>
202 </html>