Compare commits
7 Commits
Author | SHA1 | Date | |
---|---|---|---|
8e7d3da07f | |||
35e0d0a783 | |||
40196fa28f | |||
7b5e90e3bd | |||
3c48988e88 | |||
869acdcb18 | |||
91af1dfca0 |
16
.env.example
Normal file
16
.env.example
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
# Flask-Konfiguration
|
||||||
|
FLASK_APP=app.py
|
||||||
|
FLASK_ENV=development
|
||||||
|
SECRET_KEY=your-secret-key-here
|
||||||
|
|
||||||
|
# Datenbank-Konfiguration
|
||||||
|
DATABASE_URL=sqlite:///customers.db
|
||||||
|
|
||||||
|
# Authentifizierung
|
||||||
|
STATIC_PASSWORD=your-static-password-here
|
||||||
|
|
||||||
|
# IP-Bereiche für direkten Zugriff (ohne Login)
|
||||||
|
ALLOWED_IP_RANGES=192.168.0.0/24,192.168.177.0/24,213.178.68.218/29
|
||||||
|
|
||||||
|
# Logging-Konfiguration
|
||||||
|
LOG_LEVEL=INFO
|
67
CHANGELOG.md
67
CHANGELOG.md
@@ -5,54 +5,39 @@ 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/).
|
||||||
|
|
||||||
## [v1.2.0] - 2024-03-17
|
## [v1.2.0] - 2024-03-18
|
||||||
|
|
||||||
|
### Geändert
|
||||||
|
- IP-Subnetz-Prüfung korrigiert (CIDR-Notation wird jetzt korrekt ausgewertet)
|
||||||
|
- Debug-Logging für IP-Adressen hinzugefügt
|
||||||
|
- Beispiel-Umgebungsvariablen (.env.example) hinzugefügt
|
||||||
|
|
||||||
### Hinzugefügt
|
### Hinzugefügt
|
||||||
- Benutzer-Login-Funktionalität
|
- IP-basierte Zugriffssteuerung für medisoftware-Links
|
||||||
- Login-Seite mit Passwortüberprüfung
|
- IP-basierte Zugriffssteuerung für Telefonnummern-Links
|
||||||
- Umgebungsvariable für Login-Passwort
|
- Google Maps Integration für Adressen
|
||||||
|
- Version im Footer angezeigt
|
||||||
|
|
||||||
|
### Verbessert
|
||||||
|
- Verbesserte Fehlerbehandlung bei der IP-Überprüfung
|
||||||
|
- Bessere Dokumentation der Konfigurationsmöglichkeiten
|
||||||
|
|
||||||
## [v1.1.0] - 2024-03-17
|
## [v1.1.0] - 2024-03-17
|
||||||
|
|
||||||
### Geändert
|
|
||||||
- Verbesserte Darstellung der Telefonnummern:
|
|
||||||
- Separate Felder für private Telefonnummer, Firmennummer und Mobilfunknummer
|
|
||||||
- Entfernung der Faxnummer aus der Anzeige
|
|
||||||
- Übersichtlichere Darstellung der Kontaktinformationen
|
|
||||||
|
|
||||||
## [1.0.6] - 2024-03-17
|
|
||||||
### Geändert
|
|
||||||
- Verbesserte Suchfunktion: Kombinierte Suche über mehrere Felder möglich
|
|
||||||
- Dokumentation: Beispiele für kombinierte Suche hinzugefügt
|
|
||||||
|
|
||||||
## [1.0.5] - 2024-03-17
|
|
||||||
### Geändert
|
|
||||||
- Verbesserte Suchfunktion: Ergebnisliste wird gelöscht, wenn alle Suchfelder leer sind
|
|
||||||
|
|
||||||
## [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
|
### Hinzugefügt
|
||||||
- Wetterinformationen für Kundensitz
|
- Benutzer-Login für nicht-autorisierte IPs
|
||||||
- Caching für Wetterdaten
|
- Verbesserte Darstellung der Telefonnummern
|
||||||
|
- Responsive Design für mobile Geräte
|
||||||
|
|
||||||
|
### Verbessert
|
||||||
|
- Optimierte Suchfunktion
|
||||||
|
- Verbesserte Benutzeroberfläche
|
||||||
|
|
||||||
## [v1.0.0] - 2024-03-17
|
## [v1.0.0] - 2024-03-17
|
||||||
|
|
||||||
### Hinzugefügt
|
### Hinzugefügt
|
||||||
- Erste Version der Kundensuche
|
- Erste Version mit grundlegenden Suchfunktionen
|
||||||
- Grundlegende Suchfunktionen
|
- Echtzeit-Suche über Kundendaten
|
||||||
- Responsive Design
|
- Hervorhebung von Suchbegriffen in den Ergebnissen
|
||||||
- Docker-Integration
|
- Klickbare Links für Telefonnummern, E-Mail-Adressen und Adressen
|
||||||
|
- Docker-Container für einfache Installation und Deployment
|
46
README.md
46
README.md
@@ -1,14 +1,15 @@
|
|||||||
# medisoftware Kundensuche
|
# medisoftware Kundensuche
|
||||||
|
|
||||||
Eine webbasierte Suchanwendung für medisoftware Kunden, die eine schnelle und effiziente Suche nach Kundendaten ermöglicht.
|
Eine einfache Webanwendung zur Suche nach medisoftware Kunden mit IP-basierter Zugriffssteuerung.
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
- Echtzeit-Suche über Kundendaten
|
- Kundensuche nach verschiedenen Kriterien (Name, Ort, Kundennummer, etc.)
|
||||||
- Hervorhebung von Suchbegriffen in den Ergebnissen
|
- Direkte Links zu Kundendaten in medisoftware (für autorisierte IPs)
|
||||||
- Klickbare Links für Telefonnummern, E-Mail-Adressen und Adressen
|
- Telefonnummern-Links für autorisierte IPs
|
||||||
- Responsive Design für mobile Geräte
|
- Adress-Links mit Google Maps Integration
|
||||||
- Docker-Container für einfache Installation und Deployment
|
- IP-basierte Zugriffssteuerung
|
||||||
|
- Responsive Design
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
@@ -18,18 +19,39 @@ git clone https://gitea.elpatron.me/elpatron/medi-customers.git
|
|||||||
cd medi-customers
|
cd medi-customers
|
||||||
```
|
```
|
||||||
|
|
||||||
2. Docker Container starten:
|
2. Umgebungsvariablen einrichten:
|
||||||
|
```bash
|
||||||
|
cp .env.example .env
|
||||||
|
# Bearbeiten Sie die .env-Datei mit Ihren Einstellungen
|
||||||
|
```
|
||||||
|
|
||||||
|
3. Docker Container starten:
|
||||||
```bash
|
```bash
|
||||||
docker-compose up -d
|
docker-compose up -d
|
||||||
```
|
```
|
||||||
|
|
||||||
Die Anwendung ist dann unter `http://localhost:5000` erreichbar.
|
## Konfiguration
|
||||||
|
|
||||||
## Versionen
|
Die Anwendung kann über folgende Umgebungsvariablen konfiguriert werden:
|
||||||
|
|
||||||
- v1.2.0 (2024-03-17): Benutzer-Login hinzugefügt
|
- `FLASK_APP`: Die Hauptanwendungsdatei (Standard: app.py)
|
||||||
- v1.1.0 (2024-03-17): Verbesserte Darstellung der Telefonnummern
|
- `FLASK_ENV`: Die Flask-Umgebung (development/production)
|
||||||
- v1.0.0 (2024-03-17): Erste Version mit grundlegenden Suchfunktionen
|
- `SECRET_KEY`: Der geheime Schlüssel für Flask-Sessions
|
||||||
|
- `DATABASE_URL`: Die URL zur SQLite-Datenbank
|
||||||
|
- `STATIC_PASSWORD`: Das Passwort für die Login-Seite
|
||||||
|
- `ALLOWED_IP_RANGES`: Komma-getrennte Liste von IP-Bereichen, die direkten Zugriff haben
|
||||||
|
- `LOG_LEVEL`: Das Logging-Level (INFO/DEBUG)
|
||||||
|
|
||||||
|
## IP-Bereiche
|
||||||
|
|
||||||
|
Die Anwendung unterstützt CIDR-Notation für IP-Bereiche. Beispiele:
|
||||||
|
- Einzelne IP: 192.168.1.1/32
|
||||||
|
- Subnetz: 192.168.1.0/24
|
||||||
|
- Größeres Netzwerk: 10.0.0.0/8
|
||||||
|
|
||||||
|
## Version
|
||||||
|
|
||||||
|
Aktuelle Version: v1.2.0
|
||||||
|
|
||||||
## Lizenz
|
## Lizenz
|
||||||
|
|
||||||
|
6
app.py
6
app.py
@@ -88,7 +88,11 @@ def login():
|
|||||||
def index():
|
def index():
|
||||||
if not session.get('logged_in'):
|
if not session.get('logged_in'):
|
||||||
return redirect(url_for('login'))
|
return redirect(url_for('login'))
|
||||||
return render_template('index.html')
|
allowed_ip_ranges = os.getenv('ALLOWED_IP_RANGES', '')
|
||||||
|
client_ip = request.headers.get('X-Forwarded-For', request.remote_addr)
|
||||||
|
logger.info(f"Client-IP: {client_ip}")
|
||||||
|
logger.info(f"Erlaubte IP-Bereiche: {allowed_ip_ranges}")
|
||||||
|
return render_template('index.html', allowed_ip_ranges=allowed_ip_ranges)
|
||||||
|
|
||||||
@app.route('/search')
|
@app.route('/search')
|
||||||
def search():
|
def search():
|
||||||
|
@@ -7,183 +7,7 @@
|
|||||||
<link rel="icon" type="image/x-icon" href="{{ url_for('static', filename='favicon.ico') }}">
|
<link rel="icon" type="image/x-icon" href="{{ url_for('static', filename='favicon.ico') }}">
|
||||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||||
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css" rel="stylesheet">
|
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css" rel="stylesheet">
|
||||||
<style>
|
<link href="{{ url_for('static', filename='css/styles.css') }}" rel="stylesheet">
|
||||||
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 */
|
|
||||||
}
|
|
||||||
.search-container {
|
|
||||||
max-width: 800px;
|
|
||||||
margin: 0 auto;
|
|
||||||
}
|
|
||||||
.result-card {
|
|
||||||
margin-bottom: 1rem;
|
|
||||||
transition: all 0.3s ease;
|
|
||||||
}
|
|
||||||
.result-card:hover {
|
|
||||||
transform: translateY(-2px);
|
|
||||||
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
|
|
||||||
}
|
|
||||||
.loading {
|
|
||||||
display: none;
|
|
||||||
text-align: center;
|
|
||||||
margin: 2rem 0;
|
|
||||||
}
|
|
||||||
.phone-link, .email-link, .address-link, .customer-link {
|
|
||||||
text-decoration: none;
|
|
||||||
color: #0d6efd;
|
|
||||||
}
|
|
||||||
.phone-link:hover, .email-link:hover, .address-link:hover, .customer-link:hover {
|
|
||||||
text-decoration: underline;
|
|
||||||
}
|
|
||||||
.search-icon, .reset-icon {
|
|
||||||
position: absolute;
|
|
||||||
top: 50%;
|
|
||||||
transform: translateY(-50%);
|
|
||||||
color: #6c757d;
|
|
||||||
cursor: pointer;
|
|
||||||
display: none;
|
|
||||||
z-index: 10;
|
|
||||||
}
|
|
||||||
.reset-icon {
|
|
||||||
right: 10px;
|
|
||||||
}
|
|
||||||
.search-icon {
|
|
||||||
right: 35px;
|
|
||||||
}
|
|
||||||
.reset-icon.visible {
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
.search-icon.visible {
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
.customer-number {
|
|
||||||
color: #6c757d;
|
|
||||||
font-size: 0.9em;
|
|
||||||
}
|
|
||||||
.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;
|
|
||||||
}
|
|
||||||
.share-feedback {
|
|
||||||
position: fixed;
|
|
||||||
bottom: 20px;
|
|
||||||
right: 20px;
|
|
||||||
background: #28a745;
|
|
||||||
color: white;
|
|
||||||
padding: 8px 16px;
|
|
||||||
border-radius: 4px;
|
|
||||||
display: none;
|
|
||||||
animation: fadeOut 2s forwards;
|
|
||||||
z-index: 1000;
|
|
||||||
}
|
|
||||||
@keyframes fadeOut {
|
|
||||||
0% { opacity: 1; }
|
|
||||||
70% { opacity: 1; }
|
|
||||||
100% { opacity: 0; }
|
|
||||||
}
|
|
||||||
.card-actions {
|
|
||||||
display: flex;
|
|
||||||
justify-content: flex-end;
|
|
||||||
margin-top: 1rem;
|
|
||||||
}
|
|
||||||
.share-button {
|
|
||||||
padding: 5px 10px;
|
|
||||||
border-radius: 15px;
|
|
||||||
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 {
|
|
||||||
display: grid;
|
|
||||||
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
|
||||||
gap: 1rem;
|
|
||||||
margin-bottom: 1rem;
|
|
||||||
}
|
|
||||||
.search-field {
|
|
||||||
position: relative;
|
|
||||||
}
|
|
||||||
.input-group {
|
|
||||||
position: relative;
|
|
||||||
}
|
|
||||||
.result-counts {
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
margin-bottom: 1rem;
|
|
||||||
padding: 0.5rem;
|
|
||||||
background-color: #f8f9fa;
|
|
||||||
border-radius: 4px;
|
|
||||||
}
|
|
||||||
.result-count {
|
|
||||||
background-color: #e9ecef;
|
|
||||||
padding: 4px 12px;
|
|
||||||
border-radius: 12px;
|
|
||||||
font-size: 0.9em;
|
|
||||||
color: #6c757d;
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
.result-count.visible {
|
|
||||||
display: inline-block;
|
|
||||||
}
|
|
||||||
.location-pin {
|
|
||||||
color: #dc3545;
|
|
||||||
margin-left: 4px;
|
|
||||||
font-size: 1.2em;
|
|
||||||
}
|
|
||||||
.customer-card {
|
|
||||||
background: white;
|
|
||||||
border-radius: 8px;
|
|
||||||
padding: 1.5rem;
|
|
||||||
margin-bottom: 1.5rem;
|
|
||||||
box-shadow: 0 2px 4px rgba(0,0,0,0.05);
|
|
||||||
border-bottom: 1px solid #e9ecef;
|
|
||||||
}
|
|
||||||
.customer-card:last-child {
|
|
||||||
border-bottom: none;
|
|
||||||
}
|
|
||||||
.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>
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="main-content">
|
<div class="main-content">
|
||||||
@@ -264,7 +88,13 @@
|
|||||||
function createPhoneLink(phone) {
|
function createPhoneLink(phone) {
|
||||||
if (!phone) return 'N/A';
|
if (!phone) return 'N/A';
|
||||||
const cleaned = phone.replace(/[^\d+\s]/g, '');
|
const cleaned = phone.replace(/[^\d+\s]/g, '');
|
||||||
const telLink = cleaned.startsWith('+') ? cleaned : '0' + cleaned.replace(/\s/g, '');
|
const clientIP = '{{ request.headers.get("X-Forwarded-For", request.remote_addr) }}';
|
||||||
|
const allowedIPRanges = '{{ allowed_ip_ranges }}'.split(',');
|
||||||
|
|
||||||
|
// Überprüfen, ob die Client-IP in einem der erlaubten Bereiche liegt
|
||||||
|
const isAllowed = allowedIPRanges.some(range => clientIP.startsWith(range.trim()));
|
||||||
|
|
||||||
|
const telLink = cleaned.startsWith('+') ? cleaned : (isAllowed ? '0' + cleaned.replace(/\s/g, '') : cleaned.replace(/\s/g, ''));
|
||||||
return `<a href="tel:${telLink}" class="phone-link">${phone}</a>`;
|
return `<a href="tel:${telLink}" class="phone-link">${phone}</a>`;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -321,10 +151,17 @@
|
|||||||
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);
|
||||||
|
const routeQuery = encodeURIComponent(address);
|
||||||
|
const clientIP = '{{ request.headers.get("X-Forwarded-For", request.remote_addr) }}';
|
||||||
|
console.log('Client IP in createAddressLink:', clientIP);
|
||||||
return `<span class="address-text">${address}</span>
|
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 href="https://www.google.com/maps/dir/?api=1&destination=${routeQuery}"
|
||||||
|
class="route-link" target="_blank" rel="noopener noreferrer">
|
||||||
|
<i class="fa-solid fa-car route-pin"></i>
|
||||||
</a>`;
|
</a>`;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -332,9 +169,46 @@
|
|||||||
return number - 12000;
|
return number - 12000;
|
||||||
}
|
}
|
||||||
|
|
||||||
function createCustomerLink(number) {
|
function isIPInSubnet(ip, subnet) {
|
||||||
const adjustedNumber = adjustCustomerNumber(number);
|
// Teile die IP und das Subnetz in ihre Komponenten
|
||||||
return `<a href="medisw:openkkbefe/P${adjustedNumber}?NetGrp=4" class="customer-link">${adjustedNumber}</a>`;
|
const [subnetIP, bits] = subnet.split('/');
|
||||||
|
const ipParts = ip.split('.').map(Number);
|
||||||
|
const subnetParts = subnetIP.split('.').map(Number);
|
||||||
|
|
||||||
|
// Konvertiere IPs in 32-bit Zahlen
|
||||||
|
const ipNum = (ipParts[0] << 24) | (ipParts[1] << 16) | (ipParts[2] << 8) | ipParts[3];
|
||||||
|
const subnetNum = (subnetParts[0] << 24) | (subnetParts[1] << 16) | (subnetParts[2] << 8) | subnetParts[3];
|
||||||
|
|
||||||
|
// Erstelle die Subnetzmaske
|
||||||
|
const mask = ~((1 << (32 - bits)) - 1);
|
||||||
|
|
||||||
|
// Prüfe, ob die IP im Subnetz liegt
|
||||||
|
return (ipNum & mask) === (subnetNum & mask);
|
||||||
|
}
|
||||||
|
|
||||||
|
function createCustomerLink(nummer) {
|
||||||
|
const clientIP = '{{ request.headers.get("X-Forwarded-For", request.remote_addr) }}';
|
||||||
|
const allowedIPRanges = '{{ allowed_ip_ranges }}'.split(',');
|
||||||
|
|
||||||
|
// Debug-Ausgabe für die IP-Bereiche
|
||||||
|
console.log('Client IP in createCustomerLink:', clientIP);
|
||||||
|
console.log('Allowed IP Ranges:', allowedIPRanges);
|
||||||
|
|
||||||
|
// Überprüfe, ob die Client-IP in einem der erlaubten Bereiche liegt
|
||||||
|
const isAllowed = allowedIPRanges.some(range => {
|
||||||
|
const trimmedRange = range.trim();
|
||||||
|
console.log('Checking range:', trimmedRange);
|
||||||
|
return isIPInSubnet(clientIP, trimmedRange);
|
||||||
|
});
|
||||||
|
|
||||||
|
console.log('isAllowed in createCustomerLink:', isAllowed);
|
||||||
|
|
||||||
|
const adjustedNumber = adjustCustomerNumber(nummer);
|
||||||
|
if (isAllowed) {
|
||||||
|
return `<a href="medisw:openkkbefe/P${adjustedNumber}?NetGrp=4" class="customer-link">${nummer}</a>`;
|
||||||
|
} else {
|
||||||
|
return nummer;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function showCopyFeedback() {
|
function showCopyFeedback() {
|
||||||
@@ -472,7 +346,7 @@
|
|||||||
<strong>Firma:</strong> ${highlightedCompanyPhone}<br>
|
<strong>Firma:</strong> ${highlightedCompanyPhone}<br>
|
||||||
<strong>Mobil:</strong> ${highlightedMobilePhone}
|
<strong>Mobil:</strong> ${highlightedMobilePhone}
|
||||||
</div>
|
</div>
|
||||||
<button class="share-button" onclick="copyCustomerLink('${customer.Nummer}')">
|
<button class="share-button" onclick="copyCustomerLink('${adjustCustomerNumber(customer.Nummer)}')">
|
||||||
<i class="fas fa-share-alt"></i> Teilen
|
<i class="fas fa-share-alt"></i> Teilen
|
||||||
</button>
|
</button>
|
||||||
`;
|
`;
|
||||||
|
Reference in New Issue
Block a user