From 7c29a726f247219e1155de96a83bbd34c6909fa1 Mon Sep 17 00:00:00 2001 From: ma0068 Date: Thu, 14 Dec 2023 16:33:49 +0100 Subject: [PATCH] Aktionen Start New, Update, Delete --- .../controllers/components/stv/Notiz.php | 17 +++++++ public/js/components/Notiz/Notiz.js | 2 +- .../Details/Kontakt/Address.js | 2 +- .../Studentenverwaltung/Details/Notizen.js | 50 +++++++++++++++---- 4 files changed, 58 insertions(+), 13 deletions(-) diff --git a/application/controllers/components/stv/Notiz.php b/application/controllers/components/stv/Notiz.php index 33205a862..439e7c7fb 100644 --- a/application/controllers/components/stv/Notiz.php +++ b/application/controllers/components/stv/Notiz.php @@ -172,6 +172,23 @@ class Notiz extends FHC_Controller return $this->outputJsonSuccess(true); } + public function deleteNotiz ($notiz_id) + { + $this->load->model('person/Notiz_model', 'NotizModel'); + $result = $this->NotizModel->delete( + array('notiz_id' => $notiz_id) + ); + + if (isError($result)) + { + $this->output->set_status_header(REST_Controller::HTTP_INTERNAL_SERVER_ERROR); + $this->outputJson($result); + } + elseif (!hasData($result)) { + $this->outputJson($result); + } + return $this->outputJsonSuccess(current(getData($result))); + } } \ No newline at end of file diff --git a/public/js/components/Notiz/Notiz.js b/public/js/components/Notiz/Notiz.js index ae3ff8c7a..eb9788516 100644 --- a/public/js/components/Notiz/Notiz.js +++ b/public/js/components/Notiz/Notiz.js @@ -71,7 +71,7 @@ export default { }, template: `
-{{intTitel}} {{intText}} {{intVon}}| {{titel}} {{text}} {{action}} {{von}} {{bis}} {{document}} {{erledigt}} {{verfasser}} {{bearbeiter}} +
{{action}} diff --git a/public/js/components/Stv/Studentenverwaltung/Details/Kontakt/Address.js b/public/js/components/Stv/Studentenverwaltung/Details/Kontakt/Address.js index 3f6f5eb42..834f857e6 100644 --- a/public/js/components/Stv/Studentenverwaltung/Details/Kontakt/Address.js +++ b/public/js/components/Stv/Studentenverwaltung/Details/Kontakt/Address.js @@ -513,7 +513,7 @@ export default{ - +