diff --git a/app/lang/de/tb.php b/app/lang/de/tb.php
index 1004f2a..47770dd 100644
--- a/app/lang/de/tb.php
+++ b/app/lang/de/tb.php
@@ -10,5 +10,6 @@ return [
'reactivated_task' => 'Ich habe eine Aufgabe reaktiviert: {name}',
'created_inventory_item' => 'Ich habe einen neuen Eintrag im Inventar erstellt: {name}',
'removed_inventory_item' => 'Ich habe den Eintrag {name} aus dem Inventar entfernt',
- 'added_calendar_item' => 'Ich habe einen Eintrag zum Kalender hinzugefügt: {name}'
+ 'added_calendar_item' => 'Ich habe einen Eintrag zum Kalender hinzugefügt: {name}',
+ 'edited_calendar_item' => 'Ich habe einen Kalendereintrag bearbeitet: {name}'
];
\ No newline at end of file
diff --git a/app/lang/en/tb.php b/app/lang/en/tb.php
index b045d8e..5e20249 100644
--- a/app/lang/en/tb.php
+++ b/app/lang/en/tb.php
@@ -10,5 +10,6 @@ return [
'reactivated_task' => 'I reactivated a task: {name}',
'created_inventory_item' => 'I created a new inventory item: {name}',
'removed_inventory_item' => 'I removed item {name} from the inventory',
- 'added_calendar_item' => 'I added a new entry to the calendar: {name}'
+ 'added_calendar_item' => 'I added a new entry to the calendar: {name}',
+ 'edited_calendar_item' => 'I edited a calendar entry: {name}'
];
\ No newline at end of file
diff --git a/app/models/CalendarModel.php b/app/models/CalendarModel.php
index 16048a2..4e5e142 100644
--- a/app/models/CalendarModel.php
+++ b/app/models/CalendarModel.php
@@ -100,6 +100,7 @@ class CalendarModel extends \Asatru\Database\Model {
$name, $date_from, $date_till, $class, self::$class_table[$class]['color_background'], self::$class_table[$class]['color_border'], $user->get('id'), date('Y-m-d H:i:s'), $ident
]);
+ TextBlockModule::editedCalendarItem($name, url('/calendar'));
LogModel::addLog($user->get('id'), $date_from . ' - ' . $date_till, 'edit_calendar', $name, url('/calendar'));
} catch (\Exception $e) {
throw $e;
diff --git a/app/modules/TextBlockModule.php b/app/modules/TextBlockModule.php
index 0ec2bb3..2549f4d 100644
--- a/app/modules/TextBlockModule.php
+++ b/app/modules/TextBlockModule.php
@@ -172,6 +172,23 @@ class TextBlockModule {
}
}
+ /**
+ * @param $name
+ * @param $url
+ * @return void
+ * @throws \Exception
+ */
+ public static function editedCalendarItem($name, $url)
+ {
+ try {
+ $text = __('tb.edited_calendar_item', ['name' => $name, 'url' => $url]);
+
+ static::addToChat($text, 'x1f4c5');
+ } catch (\Exception $e) {
+ throw $e;
+ }
+ }
+
/**
* @param $message
* @param $icon