Compare commits
23 Commits
Author | SHA1 | Date | |
---|---|---|---|
c271bc1f60 | |||
9c04bb973e | |||
6d7298548b | |||
42a11abe61 | |||
3c6d2f7c45 | |||
d143d6c7b6 | |||
e6638b737d | |||
1f493e0a37 | |||
469ad0ce05 | |||
8a8c13e407 | |||
18974eb69b | |||
9e406ed7a3 | |||
8b82a44ad8 | |||
528baff7b5 | |||
e105dc4663 | |||
3f69ba6198 | |||
7e812eb835 | |||
ece7f984f7 | |||
6cfc2e0162 | |||
bbcd04fd21 | |||
89a5152ada | |||
e6f43ca10a | |||
da3ef358d2 |
77
CHANGELOG.md
77
CHANGELOG.md
@@ -5,49 +5,54 @@ Alle wichtigen Änderungen an diesem Projekt werden in dieser Datei dokumentiert
|
|||||||
Das Format basiert auf [Keep a Changelog](https://keepachangelog.com/de/1.0.0/),
|
Das Format basiert auf [Keep a Changelog](https://keepachangelog.com/de/1.0.0/),
|
||||||
und dieses Projekt adhäriert zu [Semantic Versioning](https://semver.org/lang/de/).
|
und dieses Projekt adhäriert zu [Semantic Versioning](https://semver.org/lang/de/).
|
||||||
|
|
||||||
## [1.0.2] - 2024-03-19
|
## [v1.2.0] - 2024-03-17
|
||||||
|
|
||||||
### Hinzugefügt
|
### Hinzugefügt
|
||||||
- Wetterinformationen für jeden Suchtreffer
|
- Benutzer-Login-Funktionalität
|
||||||
- Integration der OpenWeather API
|
- Login-Seite mit Passwortüberprüfung
|
||||||
- Wetter-Icons und Temperaturanzeige
|
- Umgebungsvariable für Login-Passwort
|
||||||
- Umgebungsvariablen für API-Keys
|
|
||||||
|
## [v1.1.0] - 2024-03-17
|
||||||
|
|
||||||
### Geändert
|
### Geändert
|
||||||
- Anpassung der API-Antwortstruktur
|
- Verbesserte Darstellung der Telefonnummern:
|
||||||
- Verbesserte Fehlerbehandlung für API-Anfragen
|
- Separate Felder für private Telefonnummer, Firmennummer und Mobilfunknummer
|
||||||
|
- Entfernung der Faxnummer aus der Anzeige
|
||||||
## [1.0.1] - 2024-03-19
|
- Übersichtlichere Darstellung der Kontaktinformationen
|
||||||
|
|
||||||
### Hinzugefügt
|
|
||||||
- Neues Suchfeld für Telefonnummer
|
|
||||||
- Reset-Icons für alle Suchfelder
|
|
||||||
- Trefferzähler für Suchergebnisse
|
|
||||||
|
|
||||||
|
## [1.0.6] - 2024-03-17
|
||||||
### Geändert
|
### Geändert
|
||||||
- Verbesserte Positionierung der UI-Elemente
|
- Verbesserte Suchfunktion: Kombinierte Suche über mehrere Felder möglich
|
||||||
- Optimierte Suchlogik im Backend
|
- Dokumentation: Beispiele für kombinierte Suche hinzugefügt
|
||||||
- CSV-Datei in data-Verzeichnis verschoben
|
|
||||||
- Allgemeine Suche um Telefonnummer erweitert
|
|
||||||
|
|
||||||
### Behoben
|
## [1.0.5] - 2024-03-17
|
||||||
- Korrektur der Icon-Anzeige in Suchfeldern
|
### Geändert
|
||||||
- Verbesserte Fehlerbehandlung beim Laden der CSV-Datei
|
- Verbesserte Suchfunktion: Ergebnisliste wird gelöscht, wenn alle Suchfelder leer sind
|
||||||
|
|
||||||
## [1.0.0] - 2024-03-18
|
## [1.0.4] - 2024-03-17
|
||||||
|
### Geändert
|
||||||
|
- Verbesserte Adressanzeige: Location-Icon neben der Adresse
|
||||||
|
- Entfernung des Google Maps Links aus dem Adresstext
|
||||||
|
|
||||||
|
## [1.0.3] - 2024-03-17
|
||||||
|
### Geändert
|
||||||
|
- Hervorhebung der Suchbegriffe in den Ergebnissen
|
||||||
|
- Verbesserte Benutzeroberfläche
|
||||||
|
|
||||||
|
## [1.0.2] - 2024-03-17
|
||||||
|
### Geändert
|
||||||
|
- Entfernung der Wetterinformationen
|
||||||
|
- Optimierung der Suchfunktion
|
||||||
|
|
||||||
|
## [1.0.1] - 2024-03-17
|
||||||
|
### Hinzugefügt
|
||||||
|
- Wetterinformationen für Kundensitz
|
||||||
|
- Caching für Wetterdaten
|
||||||
|
|
||||||
|
## [v1.0.0] - 2024-03-17
|
||||||
|
|
||||||
### Hinzugefügt
|
### Hinzugefügt
|
||||||
- Grundlegende Suchfunktionalität
|
- Erste Version der Kundensuche
|
||||||
- Spezifische Suchfelder für:
|
- Grundlegende Suchfunktionen
|
||||||
- Name
|
- Responsive Design
|
||||||
- Ort
|
- Docker-Integration
|
||||||
- Kundennummer
|
|
||||||
- Fachrichtung
|
|
||||||
- Allgemeine Suche über alle Felder
|
|
||||||
- Klickbare Links für:
|
|
||||||
- Telefonnummern
|
|
||||||
- E-Mail-Adressen
|
|
||||||
- Google Maps Integration
|
|
||||||
- Share-Funktion für Suchergebnisse
|
|
||||||
- Responsive Design mit Bootstrap
|
|
||||||
- Live-Suche während der Eingabe
|
|
113
README.md
113
README.md
@@ -1,23 +1,14 @@
|
|||||||
# medisoftware Kundensuche
|
# medisoftware Kundensuche
|
||||||
|
|
||||||
Eine Webanwendung zur Suche in Kundendaten der medisoftware.
|
Eine webbasierte Suchanwendung für medisoftware Kunden, die eine schnelle und effiziente Suche nach Kundendaten ermöglicht.
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
- Live-Suche in Kundendaten
|
- Echtzeit-Suche über Kundendaten
|
||||||
- Spezifische Suchfelder für:
|
- Hervorhebung von Suchbegriffen in den Ergebnissen
|
||||||
- Name
|
- Klickbare Links für Telefonnummern, E-Mail-Adressen und Adressen
|
||||||
- Ort
|
- Responsive Design für mobile Geräte
|
||||||
- Kundennummer
|
- Docker-Container für einfache Installation und Deployment
|
||||||
- Fachrichtung
|
|
||||||
- Telefonnummer
|
|
||||||
- Allgemeine Suche über alle Felder
|
|
||||||
- Klickbare Telefonnummern
|
|
||||||
- Klickbare E-Mail-Adressen
|
|
||||||
- Google Maps Integration für Adressen
|
|
||||||
- Share-Funktion für Suchergebnisse
|
|
||||||
- Trefferzähler
|
|
||||||
- Reset-Funktion für alle Suchfelder
|
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
@@ -27,81 +18,67 @@ git clone https://gitea.elpatron.me/elpatron/medi-customers.git
|
|||||||
cd medi-customers
|
cd medi-customers
|
||||||
```
|
```
|
||||||
|
|
||||||
2. Python-Abhängigkeiten installieren:
|
2. Docker Container starten:
|
||||||
```bash
|
```bash
|
||||||
pip install -r requirements.txt
|
docker-compose up -d
|
||||||
```
|
```
|
||||||
|
|
||||||
3. CSV-Datei in das `data`-Verzeichnis kopieren:
|
Die Anwendung ist dann unter `http://localhost:5000` erreichbar.
|
||||||
```bash
|
|
||||||
mkdir data
|
|
||||||
cp spezexpo.csv data/customers.csv
|
|
||||||
```
|
|
||||||
|
|
||||||
4. Anwendung starten:
|
## Versionen
|
||||||
```bash
|
|
||||||
python app.py
|
|
||||||
```
|
|
||||||
|
|
||||||
Die Anwendung ist dann unter `http://localhost:5001` erreichbar.
|
- v1.2.0 (2024-03-17): Benutzer-Login hinzugefügt
|
||||||
|
- v1.1.0 (2024-03-17): Verbesserte Darstellung der Telefonnummern
|
||||||
|
- v1.0.0 (2024-03-17): Erste Version mit grundlegenden Suchfunktionen
|
||||||
|
|
||||||
|
## Lizenz
|
||||||
|
|
||||||
|
Alle Rechte vorbehalten. © 2025 medisoftware
|
||||||
|
|
||||||
## API-Beispiele
|
## API-Beispiele
|
||||||
|
|
||||||
Die Such-API unterstützt folgende Parameter:
|
### Suche nach Name
|
||||||
|
|
||||||
### Spezifische Suche
|
|
||||||
```bash
|
```bash
|
||||||
# Nach Name suchen
|
curl "http://localhost:5001/search?name=Mustermann"
|
||||||
curl "http://localhost:5001/search?name=Schmidt"
|
```
|
||||||
|
|
||||||
# Nach Ort suchen
|
### Suche nach Ort
|
||||||
|
```bash
|
||||||
curl "http://localhost:5001/search?ort=Berlin"
|
curl "http://localhost:5001/search?ort=Berlin"
|
||||||
|
```
|
||||||
|
|
||||||
# Nach Kundennummer suchen
|
### Suche nach Kundennummer
|
||||||
|
```bash
|
||||||
curl "http://localhost:5001/search?kundennummer=12345"
|
curl "http://localhost:5001/search?kundennummer=12345"
|
||||||
|
```
|
||||||
|
|
||||||
# Nach Fachrichtung suchen
|
### Suche nach Fachrichtung
|
||||||
curl "http://localhost:5001/search?fachrichtung=Allgemeinmedizin"
|
```bash
|
||||||
|
curl "http://localhost:5001/search?fachrichtung=Zahnarzt"
|
||||||
|
```
|
||||||
|
|
||||||
# Nach Telefonnummer suchen
|
### Suche nach Telefon
|
||||||
|
```bash
|
||||||
curl "http://localhost:5001/search?telefon=030"
|
curl "http://localhost:5001/search?telefon=030"
|
||||||
|
|
||||||
# Kombinierte Suche
|
|
||||||
curl "http://localhost:5001/search?name=Schmidt&ort=Berlin&fachrichtung=Allgemeinmedizin"
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Allgemeine Suche
|
### Allgemeine Suche
|
||||||
```bash
|
```bash
|
||||||
# Suche in allen Feldern
|
curl "http://localhost:5001/search?q=Suchbegriff"
|
||||||
curl "http://localhost:5001/search?q=Schmidt"
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Beispiel-Response
|
### Kombinierte Suche
|
||||||
```json
|
```bash
|
||||||
[
|
# Suche nach Fachrichtung und Ort
|
||||||
{
|
curl "http://localhost:5001/search?fachrichtung=Zahnarzt&ort=Berlin"
|
||||||
"Vorname": "Max",
|
|
||||||
"Nachname": "Mustermann",
|
# Suche nach Name und Telefon
|
||||||
"Nummer": "12345",
|
curl "http://localhost:5001/search?name=Mustermann&telefon=030"
|
||||||
"Ort": "Berlin",
|
|
||||||
"Fachrichtung": "Allgemeinmedizin",
|
# Suche nach mehreren Kriterien
|
||||||
"Tel": "030123456",
|
curl "http://localhost:5001/search?fachrichtung=Zahnarzt&ort=Berlin&name=Schmidt"
|
||||||
"Email": "max@example.com"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Versionen
|
## Version
|
||||||
|
|
||||||
### v1.0.1
|
Aktuelle Version: [v1.2.0](CHANGELOG.md#v120---2024-03-17)
|
||||||
- Telefonnummer-Suchfeld hinzugefügt
|
|
||||||
- Reset-Icons für alle Suchfelder
|
|
||||||
- Verbesserte Positionierung der UI-Elemente
|
|
||||||
- Optimierte Suchlogik
|
|
||||||
- CSV-Datei in data-Verzeichnis verschoben
|
|
||||||
|
|
||||||
### v1.0.0
|
|
||||||
- Erste Version
|
|
||||||
- Grundlegende Suchfunktionalität
|
|
||||||
- Klickbare Links für Telefon, E-Mail und Adressen
|
|
||||||
- Share-Funktion für Suchergebnisse
|
|
103
app.py
103
app.py
@@ -1,4 +1,4 @@
|
|||||||
from flask import Flask, render_template, request, jsonify, url_for
|
from flask import Flask, render_template, request, jsonify, url_for, redirect, session
|
||||||
import pandas as pd
|
import pandas as pd
|
||||||
import os
|
import os
|
||||||
import logging
|
import logging
|
||||||
@@ -7,13 +7,15 @@ from datetime import datetime, timedelta
|
|||||||
from dotenv import load_dotenv
|
from dotenv import load_dotenv
|
||||||
import requests
|
import requests
|
||||||
from collections import defaultdict
|
from collections import defaultdict
|
||||||
|
import ipaddress
|
||||||
|
|
||||||
app = Flask(__name__, static_folder='static')
|
app = Flask(__name__, static_folder='static')
|
||||||
|
app.secret_key = 'your_secret_key' # Setzen Sie einen sicheren geheimen Schlüssel für die Session
|
||||||
logging.basicConfig(level=logging.DEBUG)
|
logging.basicConfig(level=logging.DEBUG)
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
# Version der Anwendung
|
# Version der Anwendung
|
||||||
VERSION = "1.0.5"
|
VERSION = "1.0.6"
|
||||||
|
|
||||||
# Pfad zur CSV-Datei
|
# Pfad zur CSV-Datei
|
||||||
CSV_FILE = "data/customers.csv"
|
CSV_FILE = "data/customers.csv"
|
||||||
@@ -21,6 +23,9 @@ CSV_FILE = "data/customers.csv"
|
|||||||
# Lade Umgebungsvariablen
|
# Lade Umgebungsvariablen
|
||||||
load_dotenv()
|
load_dotenv()
|
||||||
|
|
||||||
|
# Statisches Passwort aus der .env Datei
|
||||||
|
STATIC_PASSWORD = os.getenv('LOGIN_PASSWORD', 'changeme')
|
||||||
|
|
||||||
def clean_dataframe(df):
|
def clean_dataframe(df):
|
||||||
"""Konvertiert NaN-Werte in None für JSON-Kompatibilität"""
|
"""Konvertiert NaN-Werte in None für JSON-Kompatibilität"""
|
||||||
return df.replace({np.nan: None})
|
return df.replace({np.nan: None})
|
||||||
@@ -48,12 +53,47 @@ def load_data():
|
|||||||
logger.error(f"Fehler beim Laden der CSV-Datei: {str(e)}")
|
logger.error(f"Fehler beim Laden der CSV-Datei: {str(e)}")
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
@app.route('/login', methods=['GET', 'POST'])
|
||||||
|
def login():
|
||||||
|
# Versuche, die tatsächliche Client-IP aus dem X-Forwarded-For-Header zu erhalten
|
||||||
|
client_ip = request.headers.get('X-Forwarded-For', request.remote_addr)
|
||||||
|
allowed_ip_ranges = os.getenv('ALLOWED_IP_RANGES', '').split(',')
|
||||||
|
|
||||||
|
logger.info(f"Client-IP: {client_ip}")
|
||||||
|
logger.info(f"Erlaubte IP-Bereiche: {allowed_ip_ranges}")
|
||||||
|
|
||||||
|
# Überprüfen, ob die IP-Adresse in einem der erlaubten Subnetze liegt
|
||||||
|
client_ip_obj = ipaddress.ip_address(client_ip)
|
||||||
|
for ip_range in allowed_ip_ranges:
|
||||||
|
try:
|
||||||
|
network = ipaddress.ip_network(ip_range.strip(), strict=False)
|
||||||
|
logger.info(f"Überprüfe Netzwerk: {network}")
|
||||||
|
if client_ip_obj in network:
|
||||||
|
logger.info("Client-IP ist im erlaubten Bereich.")
|
||||||
|
session['logged_in'] = True
|
||||||
|
return redirect(url_for('index'))
|
||||||
|
except ValueError:
|
||||||
|
logger.error(f"Ungültiges Netzwerkformat: {ip_range}")
|
||||||
|
|
||||||
|
if request.method == 'POST':
|
||||||
|
password = request.form.get('password')
|
||||||
|
if password == STATIC_PASSWORD:
|
||||||
|
session['logged_in'] = True
|
||||||
|
return redirect(url_for('index'))
|
||||||
|
else:
|
||||||
|
return render_template('login.html', error="Falsches Passwort")
|
||||||
|
return render_template('login.html')
|
||||||
|
|
||||||
@app.route('/')
|
@app.route('/')
|
||||||
def index():
|
def index():
|
||||||
|
if not session.get('logged_in'):
|
||||||
|
return redirect(url_for('login'))
|
||||||
return render_template('index.html')
|
return render_template('index.html')
|
||||||
|
|
||||||
@app.route('/search')
|
@app.route('/search')
|
||||||
def search():
|
def search():
|
||||||
|
if not session.get('logged_in'):
|
||||||
|
return redirect(url_for('login'))
|
||||||
try:
|
try:
|
||||||
# CSV-Datei laden
|
# CSV-Datei laden
|
||||||
df = load_data()
|
df = load_data()
|
||||||
@@ -68,10 +108,12 @@ def search():
|
|||||||
telefon = request.args.get('telefon', '').strip()
|
telefon = request.args.get('telefon', '').strip()
|
||||||
query = request.args.get('q', '').strip()
|
query = request.args.get('q', '').strip()
|
||||||
|
|
||||||
# Wenn keine spezifischen Suchkriterien angegeben sind, aber eine allgemeine Suche
|
# Initialisiere die Maske für die Filterung
|
||||||
if not any([name, ort, kundennummer, fachrichtung, telefon]) and query:
|
mask = pd.Series(True, index=df.index)
|
||||||
# Suche in allen relevanten Feldern
|
|
||||||
mask = (
|
# Wenn eine allgemeine Suche angegeben ist
|
||||||
|
if query:
|
||||||
|
query_mask = (
|
||||||
df['Vorname'].str.contains(query, case=False, na=False) |
|
df['Vorname'].str.contains(query, case=False, na=False) |
|
||||||
df['Nachname'].str.contains(query, case=False, na=False) |
|
df['Nachname'].str.contains(query, case=False, na=False) |
|
||||||
df['Ort'].str.contains(query, case=False, na=False) |
|
df['Ort'].str.contains(query, case=False, na=False) |
|
||||||
@@ -79,32 +121,31 @@ def search():
|
|||||||
df['Fachrichtung'].str.contains(query, case=False, na=False) |
|
df['Fachrichtung'].str.contains(query, case=False, na=False) |
|
||||||
df['Tel'].astype(str).str.contains(query, case=False, na=False)
|
df['Tel'].astype(str).str.contains(query, case=False, na=False)
|
||||||
)
|
)
|
||||||
else:
|
mask &= query_mask
|
||||||
# Spezifische Suche
|
|
||||||
mask = pd.Series(True, index=df.index)
|
# Spezifische Suchkriterien anwenden
|
||||||
|
if name:
|
||||||
if name:
|
name_mask = (
|
||||||
name_mask = (
|
df['Vorname'].str.contains(name, case=False, na=False) |
|
||||||
df['Vorname'].str.contains(name, case=False, na=False) |
|
df['Nachname'].str.contains(name, case=False, na=False)
|
||||||
df['Nachname'].str.contains(name, case=False, na=False)
|
)
|
||||||
)
|
mask &= name_mask
|
||||||
mask &= name_mask
|
|
||||||
|
if ort:
|
||||||
if ort:
|
ort_mask = df['Ort'].str.contains(ort, case=False, na=False)
|
||||||
ort_mask = df['Ort'].str.contains(ort, case=False, na=False)
|
mask &= ort_mask
|
||||||
mask &= ort_mask
|
|
||||||
|
if kundennummer:
|
||||||
if kundennummer:
|
kundennummer_mask = df['Nummer'].astype(str).str.contains(kundennummer, case=False, na=False)
|
||||||
kundennummer_mask = df['Nummer'].astype(str).str.contains(kundennummer, case=False, na=False)
|
mask &= kundennummer_mask
|
||||||
mask &= kundennummer_mask
|
|
||||||
|
if fachrichtung:
|
||||||
if fachrichtung:
|
fachrichtung_mask = df['Fachrichtung'].str.contains(fachrichtung, case=False, na=False)
|
||||||
fachrichtung_mask = df['Fachrichtung'].str.contains(fachrichtung, case=False, na=False)
|
mask &= fachrichtung_mask
|
||||||
mask &= fachrichtung_mask
|
|
||||||
|
|
||||||
if telefon:
|
if telefon:
|
||||||
telefon_mask = df['Tel'].astype(str).str.contains(telefon, case=False, na=False)
|
telefon_mask = df['Tel'].astype(str).str.contains(telefon, case=False, na=False)
|
||||||
mask &= telefon_mask
|
mask &= telefon_mask
|
||||||
|
|
||||||
results = df[mask].to_dict('records')
|
results = df[mask].to_dict('records')
|
||||||
logger.info(f"{len(results)} Ergebnisse gefunden")
|
logger.info(f"{len(results)} Ergebnisse gefunden")
|
||||||
|
@@ -1,5 +1,3 @@
|
|||||||
version: '3.8'
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
web:
|
web:
|
||||||
build: .
|
build: .
|
||||||
|
BIN
static/medisoftware_logo_rb_200.png
Normal file
BIN
static/medisoftware_logo_rb_200.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 7.4 KiB |
@@ -18,6 +18,7 @@
|
|||||||
.main-content {
|
.main-content {
|
||||||
flex: 1 0 auto;
|
flex: 1 0 auto;
|
||||||
padding: 2rem 0;
|
padding: 2rem 0;
|
||||||
|
margin-bottom: 4rem; /* Platz für die fixierte Fußzeile */
|
||||||
}
|
}
|
||||||
.search-container {
|
.search-container {
|
||||||
max-width: 800px;
|
max-width: 800px;
|
||||||
@@ -75,6 +76,10 @@
|
|||||||
background-color: #f8f9fa;
|
background-color: #f8f9fa;
|
||||||
border-top: 1px solid #dee2e6;
|
border-top: 1px solid #dee2e6;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
position: fixed;
|
||||||
|
bottom: 0;
|
||||||
|
left: 0;
|
||||||
|
z-index: 100;
|
||||||
}
|
}
|
||||||
.share-feedback {
|
.share-feedback {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
@@ -102,6 +107,14 @@
|
|||||||
padding: 5px 10px;
|
padding: 5px 10px;
|
||||||
border-radius: 15px;
|
border-radius: 15px;
|
||||||
font-size: 0.9em;
|
font-size: 0.9em;
|
||||||
|
background-color: #0d6efd;
|
||||||
|
color: white;
|
||||||
|
border: none;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: background-color 0.2s;
|
||||||
|
}
|
||||||
|
.share-button:hover {
|
||||||
|
background-color: #0b5ed7;
|
||||||
}
|
}
|
||||||
.search-fields {
|
.search-fields {
|
||||||
display: grid;
|
display: grid;
|
||||||
@@ -139,72 +152,96 @@
|
|||||||
margin-left: 4px;
|
margin-left: 4px;
|
||||||
font-size: 1.2em;
|
font-size: 1.2em;
|
||||||
}
|
}
|
||||||
.weather-info {
|
.customer-card {
|
||||||
display: inline-flex;
|
background: white;
|
||||||
align-items: center;
|
border-radius: 8px;
|
||||||
margin-left: 10px;
|
padding: 1.5rem;
|
||||||
font-size: 0.9em;
|
margin-bottom: 1.5rem;
|
||||||
color: #666;
|
box-shadow: 0 2px 4px rgba(0,0,0,0.05);
|
||||||
|
border-bottom: 1px solid #e9ecef;
|
||||||
}
|
}
|
||||||
.weather-info img {
|
.customer-card:last-child {
|
||||||
width: 24px;
|
border-bottom: none;
|
||||||
height: 24px;
|
}
|
||||||
margin-right: 4px;
|
.customer-info {
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
}
|
||||||
|
.footer-content {
|
||||||
|
padding: 1rem;
|
||||||
|
background-color: #f8f9fa;
|
||||||
|
border-top: 1px solid #dee2e6;
|
||||||
|
width: 100%;
|
||||||
|
position: fixed;
|
||||||
|
bottom: 0;
|
||||||
|
left: 0;
|
||||||
|
z-index: 100;
|
||||||
|
}
|
||||||
|
.footer-link {
|
||||||
|
color: #0d6efd;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
.footer-link:hover {
|
||||||
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="main-content">
|
<div class="main-content">
|
||||||
<div class="container search-container">
|
<div class="container">
|
||||||
<h1 class="text-center mb-4">medisoftware Kundensuche</h1>
|
<div class="text-center mb-4">
|
||||||
|
<img src="{{ url_for('static', filename='medisoftware_logo_rb_200.png') }}" alt="medisoftware Logo" class="img-fluid" style="max-width: 200px;">
|
||||||
<div class="input-group mb-4 position-relative">
|
|
||||||
<input type="text" id="searchInput" class="form-control form-control-lg"
|
|
||||||
placeholder="Allgemeine Suche...">
|
|
||||||
<i class="fa-solid fa-xmark reset-icon" id="searchReset"></i>
|
|
||||||
<span class="search-icon">🔍</span>
|
|
||||||
</div>
|
</div>
|
||||||
|
<div class="search-container">
|
||||||
|
<h1 class="text-center mb-4">medisoftware Kundensuche</h1>
|
||||||
|
|
||||||
|
<div class="input-group mb-4 position-relative">
|
||||||
|
<input type="text" id="searchInput" class="form-control form-control-lg"
|
||||||
|
placeholder="Allgemeine Suche...">
|
||||||
|
<i class="fa-solid fa-xmark reset-icon" id="searchReset"></i>
|
||||||
|
<span class="search-icon">🔍</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="search-fields">
|
<div class="search-fields">
|
||||||
<div class="search-field">
|
<div class="search-field">
|
||||||
<input type="text" id="nameInput" class="form-control"
|
<input type="text" id="nameInput" class="form-control"
|
||||||
placeholder="Name...">
|
placeholder="Name...">
|
||||||
<i class="fa-solid fa-xmark reset-icon" id="nameReset"></i>
|
<i class="fa-solid fa-xmark reset-icon" id="nameReset"></i>
|
||||||
|
</div>
|
||||||
|
<div class="search-field">
|
||||||
|
<input type="text" id="ortInput" class="form-control"
|
||||||
|
placeholder="Ort...">
|
||||||
|
<i class="fa-solid fa-xmark reset-icon" id="ortReset"></i>
|
||||||
|
</div>
|
||||||
|
<div class="search-field">
|
||||||
|
<input type="text" id="kundennummerInput" class="form-control"
|
||||||
|
placeholder="Kundennummer...">
|
||||||
|
<i class="fa-solid fa-xmark reset-icon" id="kundennummerReset"></i>
|
||||||
|
</div>
|
||||||
|
<div class="search-field">
|
||||||
|
<input type="text" id="fachrichtungInput" class="form-control"
|
||||||
|
placeholder="Fachrichtung...">
|
||||||
|
<i class="fa-solid fa-xmark reset-icon" id="fachrichtungReset"></i>
|
||||||
|
</div>
|
||||||
|
<div class="search-field">
|
||||||
|
<input type="text" id="telefonInput" class="form-control"
|
||||||
|
placeholder="Telefon...">
|
||||||
|
<i class="fa-solid fa-xmark reset-icon" id="telefonReset"></i>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="search-field">
|
|
||||||
<input type="text" id="ortInput" class="form-control"
|
|
||||||
placeholder="Ort...">
|
|
||||||
<i class="fa-solid fa-xmark reset-icon" id="ortReset"></i>
|
|
||||||
</div>
|
|
||||||
<div class="search-field">
|
|
||||||
<input type="text" id="kundennummerInput" class="form-control"
|
|
||||||
placeholder="Kundennummer...">
|
|
||||||
<i class="fa-solid fa-xmark reset-icon" id="kundennummerReset"></i>
|
|
||||||
</div>
|
|
||||||
<div class="search-field">
|
|
||||||
<input type="text" id="fachrichtungInput" class="form-control"
|
|
||||||
placeholder="Fachrichtung...">
|
|
||||||
<i class="fa-solid fa-xmark reset-icon" id="fachrichtungReset"></i>
|
|
||||||
</div>
|
|
||||||
<div class="search-field">
|
|
||||||
<input type="text" id="telefonInput" class="form-control"
|
|
||||||
placeholder="Telefon...">
|
|
||||||
<i class="fa-solid fa-xmark reset-icon" id="telefonReset"></i>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="result-counts">
|
<div class="result-counts">
|
||||||
<span id="generalCount" class="result-count"></span>
|
<span id="generalCount" class="result-count"></span>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="loading" class="loading">
|
|
||||||
<div class="spinner-border text-primary" role="status">
|
|
||||||
<span class="visually-hidden">Laden...</span>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="results" class="mt-4">
|
<div id="loading" class="loading">
|
||||||
<!-- Hier werden die Suchergebnisse angezeigt -->
|
<div class="spinner-border text-primary" role="status">
|
||||||
|
<span class="visually-hidden">Laden...</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="results" class="mt-4">
|
||||||
|
<!-- Hier werden die Suchergebnisse angezeigt -->
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -214,7 +251,10 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<footer class="footer">
|
<footer class="footer">
|
||||||
<p class="mb-0">(c) 2025 <a href="https://medisoftware.de" target="_blank" rel="noopener noreferrer" class="text-decoration-none">medisoftware</a></p>
|
<div class="footer-content">
|
||||||
|
Made with ❤️ and 🍺 by <a href="https://www.medisoftware.de" target="_blank" class="footer-link">medisoftware</a>
|
||||||
|
<div style="font-size: 0.8em;">Version: v1.2.0</div>
|
||||||
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
@@ -223,8 +263,8 @@
|
|||||||
|
|
||||||
function createPhoneLink(phone) {
|
function createPhoneLink(phone) {
|
||||||
if (!phone) return 'N/A';
|
if (!phone) return 'N/A';
|
||||||
const cleaned = phone.replace(/\D/g, '');
|
const cleaned = phone.replace(/[^\d+\s]/g, '');
|
||||||
const telLink = '0' + cleaned;
|
const telLink = cleaned.startsWith('+') ? cleaned : '0' + cleaned.replace(/\s/g, '');
|
||||||
return `<a href="tel:${telLink}" class="phone-link">${phone}</a>`;
|
return `<a href="tel:${telLink}" class="phone-link">${phone}</a>`;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -233,23 +273,68 @@
|
|||||||
return `<a href="mailto:${email}" class="email-link">${email}</a>`;
|
return `<a href="mailto:${email}" class="email-link">${email}</a>`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function highlightText(text, searchTerms) {
|
||||||
|
// Konvertiere text zu String und prüfe auf null/undefined
|
||||||
|
const textStr = String(text || '');
|
||||||
|
if (!textStr || !searchTerms || searchTerms.length === 0) return textStr;
|
||||||
|
|
||||||
|
// Escapen der Suchbegriffe für reguläre Ausdrücke
|
||||||
|
const escapedTerms = searchTerms.map(term =>
|
||||||
|
String(term || '').replace(/[.*+?^${}()|[\]\\]/g, '\\$&')
|
||||||
|
).filter(term => term.length > 0);
|
||||||
|
|
||||||
|
if (escapedTerms.length === 0) return textStr;
|
||||||
|
|
||||||
|
// Erstelle einen temporären div-Element
|
||||||
|
const tempDiv = document.createElement('div');
|
||||||
|
tempDiv.innerHTML = textStr;
|
||||||
|
|
||||||
|
// Funktion zum Hervorheben von Text
|
||||||
|
function highlightNode(node) {
|
||||||
|
if (node.nodeType === 3) { // Text node
|
||||||
|
const text = node.textContent;
|
||||||
|
let newText = text;
|
||||||
|
|
||||||
|
escapedTerms.forEach(term => {
|
||||||
|
const regex = new RegExp(`(${term})`, 'gi');
|
||||||
|
newText = newText.replace(regex, '<mark>$1</mark>');
|
||||||
|
});
|
||||||
|
|
||||||
|
if (newText !== text) {
|
||||||
|
const span = document.createElement('span');
|
||||||
|
span.innerHTML = newText;
|
||||||
|
node.parentNode.replaceChild(span, node);
|
||||||
|
}
|
||||||
|
} else if (node.nodeType === 1) { // Element node
|
||||||
|
// Überspringe mark-Tags und Links
|
||||||
|
if (node.tagName !== 'MARK' && node.tagName !== 'A') {
|
||||||
|
Array.from(node.childNodes).forEach(highlightNode);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
highlightNode(tempDiv);
|
||||||
|
return tempDiv.innerHTML;
|
||||||
|
}
|
||||||
|
|
||||||
function createAddressLink(street, plz, city) {
|
function createAddressLink(street, plz, city) {
|
||||||
if (!street || !plz || !city) return 'N/A';
|
if (!street || !plz || !city) return 'N/A';
|
||||||
const address = `${street}, ${plz} ${city}`;
|
const address = `${street}, ${plz} ${city}`;
|
||||||
const searchQuery = encodeURIComponent(address);
|
const searchQuery = encodeURIComponent(address);
|
||||||
return `${address}
|
return `<span class="address-text">${address}</span>
|
||||||
<a href="https://www.google.com/maps/search/?api=1&query=${searchQuery}"
|
<a href="https://www.google.com/maps/search/?api=1&query=${searchQuery}"
|
||||||
class="address-link" target="_blank" rel="noopener noreferrer">
|
class="address-link" target="_blank" rel="noopener noreferrer">
|
||||||
<i class="fa-solid fa-location-pin location-pin"></i>
|
<i class="fa-solid fa-location-pin location-pin"></i>
|
||||||
</a>`;
|
</a>`;
|
||||||
}
|
}
|
||||||
|
|
||||||
function createCustomerLink(customerNumber) {
|
function adjustCustomerNumber(number) {
|
||||||
if (!customerNumber) return 'N/A';
|
return number - 12000;
|
||||||
return `<a href="medisw:openkkbefe/P${customerNumber}?NetGrp=4"
|
}
|
||||||
class="customer-link" target="_blank" rel="noopener noreferrer">
|
|
||||||
${customerNumber}
|
function createCustomerLink(number) {
|
||||||
</a>`;
|
const adjustedNumber = adjustCustomerNumber(number);
|
||||||
|
return `<a href="medisw:openkkbefe/P${adjustedNumber}?NetGrp=4" class="customer-link">${adjustedNumber}</a>`;
|
||||||
}
|
}
|
||||||
|
|
||||||
function showCopyFeedback() {
|
function showCopyFeedback() {
|
||||||
@@ -283,91 +368,128 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function searchCustomers() {
|
function searchCustomers() {
|
||||||
const name = document.getElementById('nameInput').value;
|
const query = document.getElementById('searchInput').value.trim();
|
||||||
const ort = document.getElementById('ortInput').value;
|
const fachrichtung = document.getElementById('fachrichtungInput').value.trim();
|
||||||
const kundennummer = document.getElementById('kundennummerInput').value;
|
const ort = document.getElementById('ortInput').value.trim();
|
||||||
const fachrichtung = document.getElementById('fachrichtungInput').value;
|
const name = document.getElementById('nameInput').value.trim();
|
||||||
const telefon = document.getElementById('telefonInput').value;
|
const telefon = document.getElementById('telefonInput').value.trim();
|
||||||
const query = document.getElementById('searchInput').value;
|
const kundennummer = document.getElementById('kundennummerInput')?.value.trim() || '';
|
||||||
|
|
||||||
// Prüfe, ob mindestens ein Suchfeld ausgefüllt ist
|
// Sammle alle nicht-leeren Suchbegriffe
|
||||||
if (!name && !ort && !kundennummer && !fachrichtung && !telefon && !query) {
|
const searchTerms = [query, fachrichtung, ort, name, telefon, kundennummer]
|
||||||
document.getElementById('results').innerHTML = '';
|
.filter(term => term && term.length > 0);
|
||||||
lastResults = [];
|
|
||||||
updateResultCounts();
|
// Prüfe, ob alle Suchfelder leer sind
|
||||||
|
if (searchTerms.length === 0) {
|
||||||
|
const resultsDiv = document.getElementById('results');
|
||||||
|
const generalCount = document.getElementById('generalCount');
|
||||||
|
resultsDiv.innerHTML = '';
|
||||||
|
generalCount.textContent = '';
|
||||||
|
generalCount.classList.remove('visible');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Lade-Animation anzeigen
|
const resultsDiv = document.getElementById('results');
|
||||||
document.getElementById('loading').style.display = 'block';
|
const loadingDiv = document.getElementById('loading');
|
||||||
document.getElementById('results').innerHTML = '';
|
loadingDiv.style.display = 'block';
|
||||||
|
resultsDiv.innerHTML = '';
|
||||||
// URL-Parameter erstellen
|
|
||||||
const params = new URLSearchParams();
|
const searchParams = new URLSearchParams();
|
||||||
if (name) params.append('name', name);
|
if (query) searchParams.append('q', query);
|
||||||
if (ort) params.append('ort', ort);
|
if (fachrichtung) searchParams.append('fachrichtung', fachrichtung);
|
||||||
if (kundennummer) params.append('kundennummer', kundennummer);
|
if (ort) searchParams.append('ort', ort);
|
||||||
if (fachrichtung) params.append('fachrichtung', fachrichtung);
|
if (name) searchParams.append('name', name);
|
||||||
if (telefon) params.append('telefon', telefon);
|
if (telefon) searchParams.append('telefon', telefon);
|
||||||
if (query) params.append('q', query);
|
if (kundennummer) searchParams.append('kundennummer', kundennummer);
|
||||||
|
|
||||||
fetch(`/search?${params.toString()}`)
|
fetch(`/search?${searchParams.toString()}`)
|
||||||
.then(response => response.json())
|
.then(response => response.json())
|
||||||
.then(data => {
|
.then(data => {
|
||||||
if (data.error) {
|
resultsDiv.innerHTML = '';
|
||||||
showError(data.error);
|
|
||||||
|
// Prüfe, ob data ein Objekt mit results-Array ist
|
||||||
|
if (!data || !data.results || !Array.isArray(data.results)) {
|
||||||
|
console.error('Unerwartetes Datenformat:', data);
|
||||||
|
resultsDiv.innerHTML = '<div class="error">Unerwartetes Datenformat vom Server</div>';
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const resultsContainer = document.getElementById('results');
|
const results = data.results;
|
||||||
resultsContainer.innerHTML = '';
|
if (results.length === 0) {
|
||||||
|
resultsDiv.innerHTML = '<div class="no-results">Keine Ergebnisse gefunden</div>';
|
||||||
if (data.results && data.results.length > 0) {
|
|
||||||
data.results.forEach(customer => {
|
|
||||||
const card = document.createElement('div');
|
|
||||||
card.className = 'card mb-3';
|
|
||||||
card.innerHTML = `
|
|
||||||
<div class="card-body">
|
|
||||||
<h5 class="card-title">${customer.Vorname} ${customer.Nachname}</h5>
|
|
||||||
<p class="card-text">
|
|
||||||
<strong>Kundennummer:</strong> ${customer.Nummer}<br>
|
|
||||||
<strong>Fachrichtung:</strong> ${customer.Fachrichtung || 'N/A'}<br>
|
|
||||||
<strong>Adresse:</strong> ${createAddressLink(customer.Strasse, customer.PLZ, customer.Ort)}
|
|
||||||
${customer.weather ? `
|
|
||||||
<span class="weather-info">
|
|
||||||
<img src="http://openweathermap.org/img/wn/${customer.weather.icon}@2x.png"
|
|
||||||
alt="${customer.weather.description}"
|
|
||||||
title="${customer.weather.description}">
|
|
||||||
${customer.weather.temperature}°C
|
|
||||||
</span>
|
|
||||||
` : ''}
|
|
||||||
<br>
|
|
||||||
<strong>Telefon:</strong> ${createPhoneLink(customer.Tel)}<br>
|
|
||||||
<strong>E-Mail:</strong> ${createEmailLink(customer.mail)}
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
`;
|
|
||||||
resultsContainer.appendChild(card);
|
|
||||||
});
|
|
||||||
|
|
||||||
// Zeige die Anzahl der Treffer an
|
|
||||||
const totalResults = document.getElementById('total-results');
|
|
||||||
if (totalResults) {
|
|
||||||
totalResults.textContent = `${data.total} Treffer gefunden`;
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
resultsContainer.innerHTML = '<div class="alert alert-info">Keine Ergebnisse gefunden.</div>';
|
results.forEach(customer => {
|
||||||
|
const card = document.createElement('div');
|
||||||
|
card.className = 'customer-card';
|
||||||
|
|
||||||
|
// Debug-Ausgabe für die Kundendaten
|
||||||
|
console.log('Kundendaten:', customer);
|
||||||
|
console.log('Alle verfügbaren Felder:', Object.keys(customer));
|
||||||
|
console.log('Telefon-bezogene Felder:', {
|
||||||
|
Telefon: customer.Telefon,
|
||||||
|
Telefonnummer: customer.Telefonnummer,
|
||||||
|
telefon: customer.telefon,
|
||||||
|
telefonnummer: customer.telefonnummer,
|
||||||
|
phone: customer.phone,
|
||||||
|
'phone.number': customer.phone?.number
|
||||||
|
});
|
||||||
|
|
||||||
|
// Erstelle die Adresse mit Hervorhebung
|
||||||
|
const address = `${customer.Strasse || ''}, ${customer.PLZ || ''} ${customer.Ort || ''}`;
|
||||||
|
const addressLink = createAddressLink(customer.Strasse, customer.PLZ, customer.Ort);
|
||||||
|
const highlightedAddress = highlightText(addressLink, searchTerms);
|
||||||
|
|
||||||
|
// Erstelle die Kundennummer mit Hervorhebung
|
||||||
|
const highlightedNumber = highlightText(customer.Nummer, searchTerms);
|
||||||
|
const customerLink = createCustomerLink(customer.Nummer);
|
||||||
|
|
||||||
|
// Erstelle die Telefonnummern mit Hervorhebung
|
||||||
|
let phoneNumber = '';
|
||||||
|
let companyPhone = '';
|
||||||
|
let mobilePhone = '';
|
||||||
|
|
||||||
|
if (typeof customer === 'object') {
|
||||||
|
phoneNumber = customer.Tel || '';
|
||||||
|
companyPhone = customer['Tele Firma'] || '';
|
||||||
|
mobilePhone = customer.Handy || '';
|
||||||
|
}
|
||||||
|
|
||||||
|
const phoneLink = createPhoneLink(phoneNumber);
|
||||||
|
const companyPhoneLink = createPhoneLink(companyPhone);
|
||||||
|
const mobilePhoneLink = createPhoneLink(mobilePhone);
|
||||||
|
|
||||||
|
const highlightedPhone = highlightText(phoneLink, searchTerms);
|
||||||
|
const highlightedCompanyPhone = highlightText(companyPhoneLink, searchTerms);
|
||||||
|
const highlightedMobilePhone = highlightText(mobilePhoneLink, searchTerms);
|
||||||
|
|
||||||
|
card.innerHTML = `
|
||||||
|
<div class="customer-info">
|
||||||
|
<strong>Kundennummer:</strong> ${customerLink}<br>
|
||||||
|
<strong>Name:</strong> ${highlightText(`${customer.Vorname || ''} ${customer.Nachname || ''}`, searchTerms)}<br>
|
||||||
|
<strong>Fachrichtung:</strong> ${highlightText(customer.Fachrichtung || '', searchTerms)}<br>
|
||||||
|
<strong>Adresse:</strong> ${highlightedAddress}<br>
|
||||||
|
<strong>Telefon:</strong> ${highlightedPhone}<br>
|
||||||
|
<strong>Firma:</strong> ${highlightedCompanyPhone}<br>
|
||||||
|
<strong>Mobil:</strong> ${highlightedMobilePhone}
|
||||||
|
</div>
|
||||||
|
<button class="share-button" onclick="copyCustomerLink('${customer.Nummer}')">
|
||||||
|
<i class="fas fa-share-alt"></i> Teilen
|
||||||
|
</button>
|
||||||
|
`;
|
||||||
|
resultsDiv.appendChild(card);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
// Aktualisiere die Anzahl der Treffer
|
||||||
|
const generalCount = document.getElementById('generalCount');
|
||||||
|
generalCount.textContent = results.length > 0 ? `${results.length} Treffer gefunden` : '';
|
||||||
|
generalCount.classList.toggle('visible', results.length > 0);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch(error => {
|
||||||
console.error('Fehler:', error);
|
console.error('Fehler bei der Suche:', error);
|
||||||
document.getElementById('results').innerHTML =
|
resultsDiv.innerHTML = '<div class="error">Ein Fehler ist aufgetreten</div>';
|
||||||
`<div class="alert alert-danger">${error.message}</div>`;
|
|
||||||
lastResults = [];
|
|
||||||
updateResultCounts();
|
|
||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
document.getElementById('loading').style.display = 'none';
|
loadingDiv.style.display = 'none';
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
60
templates/login.html
Normal file
60
templates/login.html
Normal file
@@ -0,0 +1,60 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="de">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>medisoftware Kundensuche</title>
|
||||||
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||||
|
<style>
|
||||||
|
body {
|
||||||
|
min-height: 100vh;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
.main-content {
|
||||||
|
flex: 1 0 auto;
|
||||||
|
padding: 2rem 0;
|
||||||
|
margin-bottom: 4rem; /* Platz für die fixierte Fußzeile */
|
||||||
|
}
|
||||||
|
.footer {
|
||||||
|
flex-shrink: 0;
|
||||||
|
text-align: center;
|
||||||
|
padding: 1rem;
|
||||||
|
background-color: #f8f9fa;
|
||||||
|
border-top: 1px solid #dee2e6;
|
||||||
|
width: 100%;
|
||||||
|
position: fixed;
|
||||||
|
bottom: 0;
|
||||||
|
left: 0;
|
||||||
|
z-index: 100;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="container mt-5">
|
||||||
|
<div class="text-center mb-4">
|
||||||
|
<img src="{{ url_for('static', filename='medisoftware_logo_rb_200.png') }}" alt="medisoftware Logo" class="img-fluid" style="max-width: 200px;">
|
||||||
|
</div>
|
||||||
|
<div class="row justify-content-center">
|
||||||
|
<div class="col-md-4">
|
||||||
|
<h2 class="text-center">Login</h2>
|
||||||
|
<form method="POST" action="/login">
|
||||||
|
<div class="mb-3">
|
||||||
|
<label for="password" class="form-label">Passwort</label>
|
||||||
|
<input type="password" class="form-control" id="password" name="password" required>
|
||||||
|
</div>
|
||||||
|
<button type="submit" class="btn btn-primary w-100">Einloggen</button>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<footer class="footer">
|
||||||
|
<div class="footer-content">
|
||||||
|
Made with ❤️ and 🍺 by <a href="https://www.medisoftware.de" target="_blank" class="footer-link">medisoftware</a>
|
||||||
|
<div style="font-size: 0.8em;">Version: v1.2.0</div>
|
||||||
|
</div>
|
||||||
|
</footer>
|
||||||
|
</body>
|
||||||
|
</html>
|
Reference in New Issue
Block a user