minor changed to text fields

This commit is contained in:
2026-04-24 17:28:12 +02:00
parent 25cf797294
commit 04e692a6dd

View File

@@ -704,16 +704,16 @@ $counts['total'] = count($all_contributions);
function createNews() { function createNews() {
Swal.fire({ Swal.fire({
title: 'Neue Nachricht', title: 'Neuigkeit hinzufügen',
html: html:
'<div style="text-align:left;">' + '<div style="text-align:left;">' +
'<div style="margin-bottom:12px;">' + '<div style="margin-bottom:12px;">' +
'<label style="display:block;font-weight:600;font-size:1.15rem;margin-bottom:4px;">Titel</label>' + '<label style="display:block;font-weight:600;font-size:1.15rem;margin-bottom:4px;">Titel</label>' +
'<input id="swal-news-title" class="swal2-input" style="margin:0;width:100%;" placeholder="Titel der Nachricht">' + '<input id="swal-news-title" class="swal2-input" style="margin:0;width:100%;" placeholder="Titel der Neuigkeit">' +
'</div>' + '</div>' +
'<div>' + '<div>' +
'<label style="display:block;font-weight:600;font-size:1.15rem;margin-bottom:4px;">Inhalt</label>' + '<label style="display:block;font-weight:600;font-size:1.15rem;margin-bottom:4px;">Inhalt</label>' +
'<textarea id="swal-news-content" class="swal2-textarea" style="margin:0;width:100%;" placeholder="Nachricht verfassen..."></textarea>' + '<textarea id="swal-news-content" class="swal2-textarea" style="margin:0;width:100%;" placeholder="Neuigkeit verfassen..."></textarea>' +
'</div>' + '</div>' +
'</div>', '</div>',
showCancelButton: true, showCancelButton: true,
@@ -745,7 +745,7 @@ $counts['total'] = count($all_contributions);
Swal.fire('Fehler', response.error, 'error'); Swal.fire('Fehler', response.error, 'error');
return; return;
} }
Swal.fire('Veröffentlicht!', 'Nachricht wurde erstellt.', 'success') Swal.fire('Veröffentlicht!', 'Neuigkeit wurde veröffentlicht.', 'success')
.then(function () { location.reload(); }); .then(function () { location.reload(); });
}); });
}); });
@@ -757,7 +757,7 @@ $counts['total'] = count($all_contributions);
// ============================================================= // =============================================================
function editNews(newsId, currentTitle, currentContent) { function editNews(newsId, currentTitle, currentContent) {
Swal.fire({ Swal.fire({
title: 'Nachricht bearbeiten', title: 'Neuigkeit bearbeiten',
html: html:
'<div style="text-align:left;">' + '<div style="text-align:left;">' +
'<div style="margin-bottom:12px;">' + '<div style="margin-bottom:12px;">' +
@@ -795,7 +795,7 @@ $counts['total'] = count($all_contributions);
Swal.fire('Fehler', response.error, 'error'); Swal.fire('Fehler', response.error, 'error');
return; return;
} }
Swal.fire('Gespeichert!', 'Nachricht wurde aktualisiert.', 'success') Swal.fire('Gespeichert!', 'Neuigkeit wurde aktualisiert.', 'success')
.then(function () { location.reload(); }); .then(function () { location.reload(); });
}); });
}); });
@@ -807,7 +807,7 @@ $counts['total'] = count($all_contributions);
// ============================================================= // =============================================================
function deleteNews(newsId) { function deleteNews(newsId) {
Swal.fire({ Swal.fire({
title: 'Nachricht löschen?', title: 'Neuigkeit löschen?',
text: 'Diese Aktion kann nicht rückgängig gemacht werden.', text: 'Diese Aktion kann nicht rückgängig gemacht werden.',
icon: 'warning', icon: 'warning',
showCancelButton: true, showCancelButton: true,
@@ -828,7 +828,7 @@ $counts['total'] = count($all_contributions);
Swal.fire('Fehler', response.error, 'error'); Swal.fire('Fehler', response.error, 'error');
return; return;
} }
Swal.fire('Gelöscht!', 'Nachricht wurde entfernt.', 'success') Swal.fire('Gelöscht!', 'Neuigkeit wurde gelöscht.', 'success')
.then(function () { location.reload(); }); .then(function () { location.reload(); });
}); });
}); });