From 305573a68785ff329bc0f3c9b28ba738bcb58e46 Mon Sep 17 00:00:00 2001 From: ulrich <undisclosed> Date: Mon, 27 Feb 2017 06:47:42 +0000 Subject: [PATCH] Einbau TinyMCE in Arbeit --- web/ui/index.html | 113 ++++++++++++++++++++++++++++---------------------------- 1 files changed, 56 insertions(+), 57 deletions(-) diff --git a/web/ui/index.html b/web/ui/index.html index be7287c..e8960be 100644 --- a/web/ui/index.html +++ b/web/ui/index.html @@ -9,45 +9,6 @@ <link rel="stylesheet" type="text/css" href="/jslib/bootstrap/css/bootstrap.min.css"> <link rel="stylesheet" type="text/css" href="/jslib/font-awesome/css/font-awesome.min.css"> <link rel="stylesheet" type="text/css" href="stile.css"> - <script id="tpl-kacheln" type="x-tmpl-mustache"> - {{#files}} - <figure class="figure datei-figure text-center text-warning align-top datei-elem"> - <i class="fa {{ typeClass }} fa-3x"></i> - <figcaption class="figure-caption dateiname">{{ fileName }}</figcaption> - </figure> - {{/files}} - </script> - <script id="tpl-liste" type="x-tmpl-mustache"> - <table class="table table-hover table-sm table-responsive tableBodyScroll"> - <thead> - <tr> - <th colspan="2">Name</th> - <th>Größe</th> - <th>Art</th> - <th>geändert</th> - </tr> - </thead> - <tbody> - {{#files}} - <tr class="datei-zeile"> - <td class="datei-elem"><i class="fa {{ typeClass }}"></i></td> - <td class="dateiname">{{ fileName }}</td> - <td>{{ fr.length }}</td> - <td> </td> - <td>{{ fr.lastModified }}</td> - </tr> - {{/files}} - </tbody> - </table> - </script> - <script id="tpl-bcr" type="x-tmpl-mustache"> - {{#files}} - <a class="breadcrumb-item" rpath="{{ relPath }}" href="#">{{ fName }}</a> - {{/files}} - </script> - <script id="tpl-bcr2" type="x-tmpl-mustache"> - <span class="breadcrumb-item active">{{ fName }}</span> - </script> <script id="tpl-bcr3" type="x-tmpl-mustache"> <div id="ansicht" class="pull-right align-middle"> <i class="fa fa-th-list"></i> @@ -59,23 +20,36 @@ <div class="nord"> <div id="menue"> <!-- Menue --> - <ul class="nav ml-3"> + <ul class="nav pl-3"> <li class="nav-item dropdown"> <a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">Datei</a> <div class="dropdown-menu"> - <a id="newTextFile" class="dropdown-item" href="#">Neue Text-Datei..</a> - <a class="dropdown-item disabled" href="#">Neues Dokument..</a> + <a id="newTextFile" class="dropdown-item" href="#">Neuer Text..</a> + <a id="newDoc" class="dropdown-item" href="#">Neues Dokument..</a> <a id="newFolder" class="dropdown-item" href="#">Neuer Ordner..</a> <div class="dropdown-divider"></div> - <a class="dropdown-item disabled" href="#">Ansehen als Code</a> + <a id="editTextFile" class="dropdown-item" href="#">Öffnen als Text</a> + <a class="dropdown-item disabled" href="#">Öffnen als Dokument</a> + <div class="dropdown-divider"></div> + <a class="dropdown-item disabled" href="#">Ansehen als Text</a> <a class="dropdown-item disabled" href="#">Ansehen als Dokument</a> <div class="dropdown-divider"></div> - <a id="editTextFile" class="dropdown-item" href="#">Bearbeiten als Code</a> - <a class="dropdown-item disabled" href="#">Bearbeiten als Dokument</a> - <div class="dropdown-divider"></div> <a id="saveFile" class="dropdown-item" href="#">Speichern</a> + <a id="saveFileAs" class="dropdown-item" href="#">Speichern unter..</a> + <div class="dropdown-divider"></div> + <a id="renameFile" class="dropdown-item" href="#">Umbenennen..</a> <div class="dropdown-divider"></div> <a id="closeFile" class="dropdown-item" href="#">Schliessen</a> + </div> + </li> + <li class="nav-item dropdown"> + <a id="editMenu" class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">Bearbeiten</a> + <div class="dropdown-menu"> + <a id="m-cut" class="dropdown-item" href="#">Ausschneiden</a> + <a id="m-copy" class="dropdown-item" href="#">Kopieren</a> + <a id="m-paste" class="dropdown-item" href="#">Einfügen</a> + <div class="dropdown-divider"></div> + <a id="m-del" class="dropdown-item" href="#">Löschen</a> </div> </li> <li class="nav-item dropdown"> @@ -86,6 +60,8 @@ <a class="dropdown-item" href="/wbx/mng">Apps verwalten</a> <a class="dropdown-item" href="/um/ui">Benutzer verwalten</a> <a class="dropdown-item disabled" href="/file-cms/ui">Dateien verwalten</a> + <div class="dropdown-divider"></div> + <a id="m-test" class="dropdown-item" href="#">Test</a> <div class="dropdown-divider"></div> <a id="logout" class="dropdown-item" href="#">Abmelden</a> </div> @@ -117,33 +93,35 @@ </div> </div> <!-- Codemirror Ende --> + <!-- TinyMCE Start --> + <div id="mce-editor"> + <textarea class="text-editor" id="text-editspace"></textarea> + </div> + <!-- TinyMCE Ende --> <!-- Breadcrumb Start --> - <div class="zentrum-bc"> - <nav class="breadcrumb ml-3 mr-5" id="bcnav"></nav> + <div id="zentrum_bc" class="zentrum-bc pl-3 pr-3"> + <nav class="breadcrumb" id="bcnav"></nav> </div> <!-- Breadcrumb Ende --> <!-- Dateikacheln/-liste Start --> - <div class="zentrum-liste ml-3 mr-2" id="dateien"></div> + <div class="zentrum-liste pl-3 pr-3" id="dateien"></div> <!-- Dateikacheln Ende --> </div> <!-- oestliche Seitenleiste --> - <!-- - <div class="ost"> - östliche Seitenleiste - </div> - --> + <div class="ost"></div> + <!-- Modal --> <div class="modal fade" id="saveModal"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> - <h5 class="modal-title">Datei speichern</h5> + <h5 id="saveModalTitle" class="modal-title">Datei speichern</h5> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> - <div class="modal-body"> + <div id="saveModalBody" class="modal-body"> <p id="dialogfrage">Dateiname?</p> <input class="form-control eingabe" type="text" size="20" maxlength="250" placeholder="Dateiname" name="dateiname" id="dateiname"> </div> @@ -154,6 +132,27 @@ </div> </div> </div> <!-- Modal Ende --> + <!-- Modal ok / cancel Start --> + <div class="modal fade" id="confirmModal"> + <div class="modal-dialog" role="document"> + <div class="modal-content"> + <div class="modal-header"> + <h5 id="confirmModalTitle" class="modal-title">Löschen</h5> + <button type="button" class="close" data-dismiss="modal" aria-label="Close"> + <span aria-hidden="true">×</span> + </button> + </div> + <div id="confirmModalBody" class="modal-body"> + <p>Wirklich ...?</p> + </div> + <div class="modal-footer"> + <button id="confirmOk" type="button" class="btn btn-danger" data-dismiss="modal">Löschen</button> + <button id="confirmCancel" type="button" class="btn btn-secondary" data-dismiss="modal">Abbrechen</button> + </div> + </div> + </div> + </div> + <!-- Modal ok / cancel Ende --> </div> <!-- Fusszeile --> <!-- @@ -169,7 +168,7 @@ <script src="/jslib/codemirror/mode/htmlmixed/htmlmixed.js"></script> <script src="/jslib/codemirror/addon/display/fullscreen.js"></script> - + <script src="/jslib/tinymce/tinymce.min.js"></script> <script src="/jslib/bootstrap/js/bootstrap.min.js"></script> <script src="/jslib/mustache/mustache.min.js"></script> <script src="ui.js"></script> -- Gitblit v1.9.3