feat(admin): PWA-Link im Admin Center anzeigen
Link zur PWA Mobile App mit URL-Kopieren-Button in den Modul-Einstellungen unter eigenem Abschnitt. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
20fb9d3b05
commit
5b4fd16b32
3 changed files with 32 additions and 0 deletions
|
|
@ -398,6 +398,30 @@ print '</tr>';
|
|||
|
||||
print '</table>';
|
||||
|
||||
// PWA Mobile App Link
|
||||
print '<br><br>';
|
||||
print '<div class="titre inline-block">'.$langs->trans("PWAMobileApp").'</div>';
|
||||
print '<br><br>';
|
||||
|
||||
$pwaUrl = dol_buildpath('/kundenkarte/pwa.php', 2);
|
||||
print '<table class="noborder centpercent">';
|
||||
print '<tr class="liste_titre">';
|
||||
print '<td colspan="2">'.$langs->trans("PWAMobileApp").'</td>';
|
||||
print '</tr>';
|
||||
print '<tr class="oddeven">';
|
||||
print '<td style="width:30%">'.$langs->trans("PWALink").'</td>';
|
||||
print '<td>';
|
||||
print '<a href="'.$pwaUrl.'" target="_blank" class="button small"><i class="fa fa-mobile"></i> '.$langs->trans("OpenPWA").'</a>';
|
||||
print ' <span class="opacitymedium small" id="pwa-url-text">'.$pwaUrl.'</span>';
|
||||
print ' <button type="button" class="button small" onclick="navigator.clipboard.writeText(\''.$pwaUrl.'\').then(function(){var b=event.target.closest(\'button\');b.innerHTML=\'<i class=\\\'fa fa-check\\\'></i> Kopiert\';setTimeout(function(){b.innerHTML=\'<i class=\\\'fa fa-copy\\\'></i> URL kopieren\';},2000);})" title="URL in Zwischenablage kopieren"><i class="fa fa-copy"></i> URL kopieren</button>';
|
||||
print '</td>';
|
||||
print '</tr>';
|
||||
print '<tr class="oddeven">';
|
||||
print '<td>'.$langs->trans("Description").'</td>';
|
||||
print '<td class="opacitymedium small">'.$langs->trans("PWADescription").'</td>';
|
||||
print '</tr>';
|
||||
print '</table>';
|
||||
|
||||
// Info section
|
||||
print '<br>';
|
||||
print '<div class="info">';
|
||||
|
|
|
|||
|
|
@ -206,6 +206,10 @@ OrderTypeProposal = Angebot (Propal)
|
|||
ConfigurationHelp = Konfigurationshinweise
|
||||
ConfigHelpSystems = Systeme verwalten: Gehen Sie zum Tab "Anlagen-Systeme" um eigene System-Kategorien anzulegen
|
||||
ConfigHelpTypes = Element-Typen verwalten: Gehen Sie zum Tab "Element-Typen" um Geraetetypen und Felder zu definieren
|
||||
PWAMobileApp = PWA Mobile App
|
||||
PWALink = App-Link
|
||||
OpenPWA = PWA oeffnen
|
||||
PWADescription = Offline-faehige Progressive Web App fuer Elektriker zur Schaltschrank-Dokumentation vor Ort. Kann auf dem Smartphone als App installiert werden.
|
||||
SetupSaved = Einstellungen gespeichert
|
||||
|
||||
# Equipment (Hutschienen-Komponenten)
|
||||
|
|
|
|||
|
|
@ -149,6 +149,10 @@ OrderTypeProposal = Proposal (Propal)
|
|||
ConfigurationHelp = Configuration tips
|
||||
ConfigHelpSystems = Manage systems: Go to the "Installation Systems" tab to create custom system categories
|
||||
ConfigHelpTypes = Manage element types: Go to the "Element Types" tab to define device types and fields
|
||||
PWAMobileApp = PWA Mobile App
|
||||
PWALink = App Link
|
||||
OpenPWA = Open PWA
|
||||
PWADescription = Offline-capable Progressive Web App for electricians to document switchboards on site. Can be installed as an app on the smartphone.
|
||||
SetupSaved = Settings saved
|
||||
|
||||
# Confirmations
|
||||
|
|
|
|||
Loading…
Reference in a new issue