minor changed to text fields
This commit is contained in:
@@ -704,16 +704,16 @@ $counts['total'] = count($all_contributions);
|
||||
|
||||
function createNews() {
|
||||
Swal.fire({
|
||||
title: 'Neue Nachricht',
|
||||
title: 'Neuigkeit hinzufügen',
|
||||
html:
|
||||
'<div style="text-align:left;">' +
|
||||
'<div style="margin-bottom:12px;">' +
|
||||
'<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>' +
|
||||
'<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>',
|
||||
showCancelButton: true,
|
||||
@@ -745,7 +745,7 @@ $counts['total'] = count($all_contributions);
|
||||
Swal.fire('Fehler', response.error, 'error');
|
||||
return;
|
||||
}
|
||||
Swal.fire('Veröffentlicht!', 'Nachricht wurde erstellt.', 'success')
|
||||
Swal.fire('Veröffentlicht!', 'Neuigkeit wurde veröffentlicht.', 'success')
|
||||
.then(function () { location.reload(); });
|
||||
});
|
||||
});
|
||||
@@ -757,7 +757,7 @@ $counts['total'] = count($all_contributions);
|
||||
// =============================================================
|
||||
function editNews(newsId, currentTitle, currentContent) {
|
||||
Swal.fire({
|
||||
title: 'Nachricht bearbeiten',
|
||||
title: 'Neuigkeit bearbeiten',
|
||||
html:
|
||||
'<div style="text-align:left;">' +
|
||||
'<div style="margin-bottom:12px;">' +
|
||||
@@ -795,7 +795,7 @@ $counts['total'] = count($all_contributions);
|
||||
Swal.fire('Fehler', response.error, 'error');
|
||||
return;
|
||||
}
|
||||
Swal.fire('Gespeichert!', 'Nachricht wurde aktualisiert.', 'success')
|
||||
Swal.fire('Gespeichert!', 'Neuigkeit wurde aktualisiert.', 'success')
|
||||
.then(function () { location.reload(); });
|
||||
});
|
||||
});
|
||||
@@ -807,7 +807,7 @@ $counts['total'] = count($all_contributions);
|
||||
// =============================================================
|
||||
function deleteNews(newsId) {
|
||||
Swal.fire({
|
||||
title: 'Nachricht löschen?',
|
||||
title: 'Neuigkeit löschen?',
|
||||
text: 'Diese Aktion kann nicht rückgängig gemacht werden.',
|
||||
icon: 'warning',
|
||||
showCancelButton: true,
|
||||
@@ -828,7 +828,7 @@ $counts['total'] = count($all_contributions);
|
||||
Swal.fire('Fehler', response.error, 'error');
|
||||
return;
|
||||
}
|
||||
Swal.fire('Gelöscht!', 'Nachricht wurde entfernt.', 'success')
|
||||
Swal.fire('Gelöscht!', 'Neuigkeit wurde gelöscht.', 'success')
|
||||
.then(function () { location.reload(); });
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user