From 50e53e791b318e29a9deb9228a6d1b615b8a9053 Mon Sep 17 00:00:00 2001
From: ulrich
Date: Sat, 10 Apr 2021 17:46:18 +0000
Subject: [PATCH] UI-Anpassungen
---
www/ui/data/tpl/abspielliste_liste.tpl | 4 --
www/ui/data/tpl/einstellung_liste.tpl | 4 --
www/ui/data/tpl/abspieler_liste.tpl | 4 --
www/ui/app.css | 15 ++++++-
www/ui/data/tpl/ablageort_liste.tpl | 5 --
www/ui/data/tpl/katalog_root_liste.tpl | 4 --
www/ui/js/app.js | 26 +++++++-----
www/ui/data/tpl/titel_liste.tpl | 4 --
www/ui/index.html | 4 ++
www/ui/data/tpl/katalog_inhalt_liste.tpl | 4 --
10 files changed, 32 insertions(+), 42 deletions(-)
diff --git a/www/ui/app.css b/www/ui/app.css
index 39c646c..010d925 100644
--- a/www/ui/app.css
+++ b/www/ui/app.css
@@ -86,6 +86,15 @@
cursor: pointer;
}
+.top-band {
+ display: flex;
+ flex-flow: row;
+}
+
+.bereich-name {
+ padding-left: 0.4rem;
+}
+
.dialog {
position: relative;
/* height: 0.1em; */
@@ -155,10 +164,12 @@
.entity-liste {
list-style-type: none;
+ padding: 0;
+ margin: 0;
}
.entity-eintrag {
- margin-top: 0.8rem;
+ margin-top: 0.3rem;
margin-left: 0;
margin-right: 0;
margin-bottom: 0;
@@ -229,7 +240,7 @@
}
.ctrl-btn, .ctrl-btn:focus {
- width: 4rem;
+ width: 2rem;
font-size: medium;
display: inline-block;
height: 2rem;
diff --git a/www/ui/data/tpl/ablageort_liste.tpl b/www/ui/data/tpl/ablageort_liste.tpl
index 3d5e114..6447b01 100644
--- a/www/ui/data/tpl/ablageort_liste.tpl
+++ b/www/ui/data/tpl/ablageort_liste.tpl
@@ -1,9 +1,4 @@
-
<div class='entity-formular'>
- <div class='entity-liste-kopf'>
- Kataloge
- <!-- <button class='ctrl-btn' id='neu-btn' title='Neu'><i class='icon-doc'></i></button> -->
- </div>
<ul class='entity-liste'>
{{#ArrayList}}
<li class='entity-eintrag'>{{.}}</li>
diff --git a/www/ui/data/tpl/abspieler_liste.tpl b/www/ui/data/tpl/abspieler_liste.tpl
index 329ce7b..9872957 100644
--- a/www/ui/data/tpl/abspieler_liste.tpl
+++ b/www/ui/data/tpl/abspieler_liste.tpl
@@ -1,8 +1,4 @@
<div class='entity-formular'>
- <div class='entity-liste-kopf'>
- Abspieler
- <!-- <button class='ctrl-btn' id='neu-btn' title='Neu'><i class='icon-doc'></i></button> -->
- </div>
<ul class='entity-liste'>
{{#ArrayList}}
<li class='entity-eintrag'>{{.}}</li>
diff --git a/www/ui/data/tpl/abspielliste_liste.tpl b/www/ui/data/tpl/abspielliste_liste.tpl
index c82ecaf..e03cfb5 100644
--- a/www/ui/data/tpl/abspielliste_liste.tpl
+++ b/www/ui/data/tpl/abspielliste_liste.tpl
@@ -1,8 +1,4 @@
<div class='entity-formular'>
- <div class='entity-liste-kopf'>
- Abspiellisten
- <!-- <button class='ctrl-btn' id='neu-btn' title='Neu'><i class='icon-doc'></i></button> -->
- </div>
<ul class='entity-liste'>
{{#ArrayList}}
<li class='entity-eintrag'>{{.}}</li>
diff --git a/www/ui/data/tpl/einstellung_liste.tpl b/www/ui/data/tpl/einstellung_liste.tpl
index af68b20..d290bc6 100644
--- a/www/ui/data/tpl/einstellung_liste.tpl
+++ b/www/ui/data/tpl/einstellung_liste.tpl
@@ -1,8 +1,4 @@
<div class='entity-formular'>
- <div class='entity-liste-kopf'>
- Einstellungen
- <!-- <button class='ctrl-btn' id='neu-btn' title='Neu'><i class='icon-doc'></i></button> -->
- </div>
<ul class='entity-liste'>
{{#ArrayList}}
<li class='entity-eintrag'>{{.}}</li>
diff --git a/www/ui/data/tpl/katalog_inhalt_liste.tpl b/www/ui/data/tpl/katalog_inhalt_liste.tpl
index b62cf46..c6c9691 100644
--- a/www/ui/data/tpl/katalog_inhalt_liste.tpl
+++ b/www/ui/data/tpl/katalog_inhalt_liste.tpl
@@ -1,8 +1,4 @@
<div class='entity-formular'>
- <div class='entity-liste-kopf'>
- Media-Inhalte
- <!-- <button class='ctrl-btn' id='zurueck-btn'><i class='icon-up-open'></i></button> -->
- </div>
<ul class='entity-liste'>
{{#Medialiste}}
<li class='entity-eintrag entity-typ-{{typ}}'
diff --git a/www/ui/data/tpl/katalog_root_liste.tpl b/www/ui/data/tpl/katalog_root_liste.tpl
index abf177a..006f141 100644
--- a/www/ui/data/tpl/katalog_root_liste.tpl
+++ b/www/ui/data/tpl/katalog_root_liste.tpl
@@ -1,9 +1,5 @@
<div class='entity-formular'>
- <div class='entity-liste-kopf'>
- Media-Inhalte
- <!-- <button class='button' id='neu-btn'>Neu</button> -->
- </div>
<ul class='entity-liste'>
{{#ArrayList}}
<li class='entity-eintrag entity-typ-katalog'>{{.}}</li>
diff --git a/www/ui/data/tpl/titel_liste.tpl b/www/ui/data/tpl/titel_liste.tpl
index b233c09..02b9158 100644
--- a/www/ui/data/tpl/titel_liste.tpl
+++ b/www/ui/data/tpl/titel_liste.tpl
@@ -1,9 +1,5 @@
{{#Abspielliste}}
<div class='entity-formular'>
- <div class='entity-liste-kopf'>
- Abspielliste {{name}}
- <!-- <button class='ctrl-btn' id='neu-btn' title='Neu'><i class='icon-doc'></i></button> -->
- </div>
<ul class='entity-liste'>
{{#titel}}
<li class='entity-eintrag'>{{interpret}}: {{titelAnzName}}</li>
diff --git a/www/ui/index.html b/www/ui/index.html
index b4582b7..f88e463 100644
--- a/www/ui/index.html
+++ b/www/ui/index.html
@@ -66,6 +66,10 @@
</div>
<div class="zentrum-behaelter">
<!-- Einblendbereich oben -->
+ <div class="top-band">
+ <div class="breadcrumb-behaelter">Breadcrumb hier</div>
+ <div class="bereich-name">Name des Bereichs</div>
+ </div>
<div class="dialog"></div>
<!-- zentraler Inhaltsbereich -->
<div class="zentrum">
diff --git a/www/ui/js/app.js b/www/ui/js/app.js
index 15e1e64..e8ed993 100644
--- a/www/ui/js/app.js
+++ b/www/ui/js/app.js
@@ -41,6 +41,7 @@
// darunter der Inhalt des aktuellen Pfades
this.media_liste = function() {
self.reset_top_buttons();
+ document.querySelector('.bereich-name').textContent = 'Medien-Inhalte';
if(self.ortPfad === '/') {
// Kataloge listen
self.http_get('../api/store/Ablageort/liste/', function (responseText) {
@@ -106,7 +107,7 @@
};
this.ablageort_liste = function() {
- self.entitaet_liste('../api/store/Ablageort/liste/',
+ self.entitaet_liste('Ablageort','../api/store/Ablageort/liste/',
"data/tpl/ablageort_liste.tpl", '../api/store/Ablageort/',
"self.ablageort_form", function(responseText) {
var ablageort = JSON.parse(responseText);
@@ -115,7 +116,7 @@
};
this.prefs_liste = function() {
- self.entitaet_liste('../api/store/Einstellung/liste/',
+ self.entitaet_liste('Einstellungen','../api/store/Einstellung/liste/',
"data/tpl/einstellung_liste.tpl", '../api/store/Einstellung/',
"self.prefs_form", function(responseText) {
var einstellung = JSON.parse(responseText);
@@ -124,7 +125,7 @@
};
this.abspieler_liste = function() {
- self.entitaet_liste('../api/store/Abspieler/liste/',
+ self.entitaet_liste('Abspieler','../api/store/Abspieler/liste/',
"data/tpl/abspieler_liste.tpl", '../api/store/Abspieler/',
"self.abspieler_form", function(responseText) {
var abspieler = JSON.parse(responseText);
@@ -133,7 +134,7 @@
};
this.abspielliste_liste = function() {
- self.entitaet_liste('../api/store/Abspielliste/liste/',
+ self.entitaet_liste('Abspielliste','../api/store/Abspielliste/liste/',
"data/tpl/abspielliste_liste.tpl", '../api/store/Abspielliste/',
"self.abspielliste_form", function(responseText) {
var abspielliste = JSON.parse(responseText);
@@ -144,7 +145,7 @@
/* -------------------- Entitaets-Formulare ------------------ */
this.abspielliste_form = function(al) {
- self.entitaet_form(al, al.name,
+ self.entitaet_form('Abspielliste', al, al.name,
"data/tpl/form_abspielliste.tpl", '../api/store/Abspielliste/',
'#abspielliste-name', function() {
self.abspielliste_auswahl_fuellen();
@@ -153,7 +154,7 @@
};
this.abspieler_form = function(pl) {
- self.entitaet_form(pl, pl.key,
+ self.entitaet_form('Abspieler', pl, pl.key,
"data/tpl/form_abspieler.tpl", '../api/store/Abspieler/',
'#abspieler-name', function() {
self.abspieler_auswahl_fuellen();
@@ -162,7 +163,7 @@
};
this.prefs_form = function(k) {
- self.entitaet_form(k, k.key,
+ self.entitaet_form('Einstellungen', k, k.key,
"data/tpl/form_einstellung.tpl", '../api/store/Einstellung/',
'#einstellung-key', function() {
self.prefs_liste();
@@ -178,7 +179,7 @@
* @returns {undefined} kein Rueckgabewert
*/
this.ablageort_form = function(ort) {
- self.entitaet_form(ort, ort.name,
+ self.entitaet_form('Ablageort', ort, ort.name,
"data/tpl/form_ablageort.tpl", '../api/store/Ablageort/',
'#ablageort-name', function() {
self.ablageort_liste();
@@ -227,7 +228,7 @@
}
var plname = document.querySelector('#playlist').value;
self.http_put('../api/alist/' + plname, JSON.stringify(titel), function(responseText) {
- self.meldung_mit_timeout(responseText, 1500);
+ //self.meldung_mit_timeout(responseText, 1500);
});
};
@@ -276,6 +277,7 @@
this.titel_liste = function() {
self.reset_top_buttons();
+ document.querySelector('.bereich-name').textContent = 'Abspielliste';
var plname = document.querySelector('#playlist').value;
self.http_get('../api/alist/' + plname, function (responseText) {
self.vorlage_laden_und_fuellen("data/tpl/titel_liste.tpl", JSON.parse(responseText), function (html) {
@@ -315,8 +317,9 @@
* self.ablageort_form(ablageort);
* });
*/
- this.entitaet_liste = function(listUrl, tpl, storeUrl, formFunc, cb) {
+ this.entitaet_liste = function(bname, listUrl, tpl, storeUrl, formFunc, cb) {
self.reset_top_buttons();
+ document.querySelector('.bereich-name').textContent = bname;
self.http_get(listUrl, function (responseText) {
self.vorlage_laden_und_fuellen(tpl, JSON.parse(responseText), function (html) {
document.querySelector(".zentraler-inhalt").innerHTML = html;
@@ -351,7 +354,8 @@
* });
*/
- this.entitaet_form = function(dat, key, tpl, url, selector, cb) {
+ this.entitaet_form = function(bname, dat, key, tpl, url, selector, cb) {
+ document.querySelector('.bereich-name').textContent = bname;
self.vorlage_laden_und_fuellen(tpl, dat, function (html) {
document.querySelector(".zentraler-inhalt").innerHTML = html;
const form = document.querySelector('form');
--
Gitblit v1.9.3