Devices/Gerätetypen/Hersteller hinzugefügt

This commit is contained in:
Spitzer_Daniel
2023-02-16 18:01:52 +01:00
parent 3c2b156eff
commit 17caf0b8d2
2 changed files with 5 additions and 5 deletions

View File

@@ -83,7 +83,7 @@ class DeviceController extends mfBaseController
$mode = "edit";
$device = new Device($id);
if (!$device->id) {
$this->layout()->setFlash("Gerät nicht gefunden", "error");
$this->layout()->setFlash("Device nicht gefunden", "error");
$this->redirect("Device");
}
} else {
@@ -136,13 +136,13 @@ class DeviceController extends mfBaseController
$id = $device->save();
if (!$id) {
$this->layout()->setFlash("Gerät konnte nicht angelegt werden", "error");
$this->layout()->setFlash("Device konnte nicht angelegt werden", "error");
$this->redirect("Device");
}
if ($mode == "edit") {
$this->layout()->setFlash("Geräte erfolgreich geändert", "success");
$this->layout()->setFlash("Device erfolgreich geändert", "success");
} else if ($mode = "add") {
$this->layout()->setFlash("Geräte erfolgreich angelegt", "success");
$this->layout()->setFlash("Device erfolgreich angelegt", "success");
}
$this->redirect("Device");
}

View File

@@ -133,7 +133,7 @@ class PopController extends mfBaseController
$this->returUrl = ucfirst($this->request->returnto);
}
$this->layout()->setFlash("Netzgebiet erfolgreich gespeichert.", "success");
$this->layout()->setFlash("Pop erfolgreich gespeichert.", "success");
$this->redirect($this->returUrl, "Index", [], "view=pops&net=" . $pop->network_id);