diff --git a/hook.php b/hook.php index 72f244f..585118c 100644 --- a/hook.php +++ b/hook.php @@ -110,8 +110,7 @@ function plugin_releases_uninstall() { // } $options = ['itemtype' => 'PluginReleasesRelease', - 'event' => 'newRelease', - 'FIELDS' => 'id']; + 'event' => 'newRelease']; $notif = new Notification(); foreach ($DB->request([ @@ -125,16 +124,13 @@ function plugin_releases_uninstall() { $template = new NotificationTemplate(); $translation = new NotificationTemplateTranslation(); $notif_template = new Notification_NotificationTemplate(); - $options = ['itemtype' => 'PluginReleasesRelease', -// 'FIELDS' => 'id' - ]; + $options = ['itemtype' => 'PluginReleasesRelease']; foreach ($DB->request([ 'FROM' => 'glpi_notificationtemplates', 'WHERE' => $options ]) as $data) { - $options_template = ['notificationtemplates_id' => $data['id'], - 'FIELDS' => 'id']; + $options_template = ['notificationtemplates_id' => $data['id']]; foreach ($DB->request([ 'FROM' => 'glpi_notificationtemplatetranslations', 'WHERE' => $options_template diff --git a/public/css/styles.css b/public/css/styles.css index f6ba04c..f5c320a 100644 --- a/public/css/styles.css +++ b/public/css/styles.css @@ -4824,3 +4824,48 @@ h2.dateColor { background-color: #8db8e2; color: white !important; } + +#item-main > div > div > label{ + width: auto; +} + +#item-main > div > div > div { + width: auto; +} + +#actors > div > div > div.d-flex.align-items-center > label{ + width: auto; +} +#shutdowns > div > div > label{ + width: auto; +} +#shutdowns > div > div > div{ + width: auto; +} +#communications > div > div > label{ + width: auto; +} +#communications > div > div > div{ + width: auto; +} + +.accordion-button::after { + flex-shrink: 0; + width: 1rem; + height: 1rem; + margin-left: auto; + content: ""; + display: inline-block; + background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3C!--!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--%3E%3Cpath d='M207 381.5L12.7 187.1c-9.4-9.4-9.4-24.6 0-33.9l22.7-22.7c9.4-9.4 24.5-9.4 33.9 0L224 284.5l154.7-154c9.4-9.3 24.5-9.3 33.9 0l22.7 22.7c9.4 9.4 9.4 24.6 0 33.9L241 381.5c-9.4 9.4-24.6 9.4-33.9 0z'/%3E%3C/svg%3E"); + background-repeat: no-repeat; + background-size: 1rem; + transition: transform 0.2s ease-in-out; +} +.accordion-button:not(.collapsed)::after { + background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3C!--!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--%3E%3Cpath d='M207 381.5L12.7 187.1c-9.4-9.4-9.4-24.6 0-33.9l22.7-22.7c9.4-9.4 24.5-9.4 33.9 0L224 284.5l154.7-154c9.4-9.3 24.5-9.3 33.9 0l22.7 22.7c9.4 9.4 9.4 24.6 0 33.9L241 381.5c-9.4 9.4-24.6 9.4-33.9 0z'/%3E%3C/svg%3E"); + transform: rotate(-180deg); +} + +.item-title{ + font-size: 15px; +} \ No newline at end of file