Skip to content

A free open source IT asset/license management system

Updated notifications blade

snipedfff69a66ed2
diff --git a/resources/views/notifications.blade.php b/resources/views/notifications.blade.php
index 0bb60c689e..ab2882f07b 100755
--- a/resources/views/notifications.blade.php
+++ b/resources/views/notifications.blade.php
@@ -1,8 +1,8 @@
@if ($errors->any())
<div class="col-md-12" id="error-notification">
- <div class="alert alert-danger fade in">
- <button type="button" class="close" data-dismiss="alert">&times;</button>
- <i class="fas fa-exclamation-triangle faa-pulse animated"></i>
+ <div class="alert alert-danger fade in" role="alert" aria-live="assertive" aria-atomic="true">
+ <button type="button" class="close" data-dismiss="alert" aria-label="{{ trans('general.close') }}"><span aria-hidden="true">&times;</span></button>
+ <i class="fas fa-exclamation-triangle faa-pulse animated" aria-hidden="true"></i>
<strong>{{ trans('general.notification_error') }}:</strong>
{{ trans('general.notification_error_hint') }}
</div>
@@ -13,9 +13,9 @@
@if ($message = session()->get('status'))
<div class="col-md-12" id="success-notification">
- <div class="alert alert-success fade in">
- <button type="button" class="close" data-dismiss="alert">&times;</button>
- <i class="fas fa-check faa-pulse animated"></i>
+ <div class="alert alert-success fade in" role="status" aria-live="polite" aria-atomic="true">
+ <button type="button" class="close" data-dismiss="alert" aria-label="{{ trans('general.close') }}"><span aria-hidden="true">&times;</span></button>
+ <i class="fas fa-check faa-pulse animated" aria-hidden="true"></i>
<strong>{{ trans('general.notification_success') }}: </strong>
{{ $message }}
</div>
@@ -25,9 +25,9 @@
@if ($message = session()->get('success'))
<div class="col-md-12" id="success-notification">
- <div class="alert alert-success fade in">
- <button type="button" class="close" data-dismiss="alert">&times;</button>
- <i class="fas fa-check faa-pulse animated"></i>
+ <div class="alert alert-success fade in" role="status" aria-live="polite" aria-atomic="true">
+ <button type="button" class="close" data-dismiss="alert" aria-label="{{ trans('general.close') }}"><span aria-hidden="true">&times;</span></button>
+ <i class="fas fa-check faa-pulse animated" aria-hidden="true"></i>
<strong>{{ trans('general.notification_success') }}: </strong>
{{ $message }}
</div>
@@ -38,9 +38,9 @@
@if ($message = session()->get('success-unescaped'))
<div class="col-md-12" id="success-notification">
- <div class="alert alert-success fade in">
- <button type="button" class="close" data-dismiss="alert">&times;</button>
- <i class="fas fa-check faa-pulse animated"></i>
+ <div class="alert alert-success fade in" role="status" aria-live="polite" aria-atomic="true">
+ <button type="button" class="close" data-dismiss="alert" aria-label="{{ trans('general.close') }}"><span aria-hidden="true">&times;</span></button>
+ <i class="fas fa-check faa-pulse animated" aria-hidden="true"></i>
<strong>{{ trans('general.notification_success') }}: </strong>
{!! $message !!}
</div>
@@ -52,9 +52,9 @@
@if ($assets = session()->get('assets'))
@foreach ($assets as $asset)
<div class="col-md-12" id="multi-error-notification">
- <div class="alert alert-info fade in">
- <button type="button" class="close" data-dismiss="alert">&times;</button>
- <i class="fas fa-info-circle faa-pulse animated"></i>
+ <div class="alert alert-info fade in" role="status" aria-live="polite" aria-atomic="true">
+ <button type="button" class="close" data-dismiss="alert" aria-label="{{ trans('general.close') }}"><span aria-hidden="true">&times;</span></button>
+ <i class="fas fa-info-circle faa-pulse animated" aria-hidden="true"></i>
<strong>{{ trans('general.asset_information') }}:</strong>
<ul>
@isset ($asset->model->name)
@@ -78,9 +78,9 @@
@if ($consumables = session()->get('consumables'))
@foreach ($consumables as $consumable)
<div class="col-md-12" id="success-notification">
- <div class="alert alert-info fade in">
- <button type="button" class="close" data-dismiss="alert">&times;</button>
- <i class="fas fa-info-circle faa-pulse animated"></i>
+ <div class="alert alert-info fade in" role="status" aria-live="polite" aria-atomic="true">
+ <button type="button" class="close" data-dismiss="alert" aria-label="{{ trans('general.close') }}"><span aria-hidden="true">&times;</span></button>
+ <i class="fas fa-info-circle faa-pulse animated" aria-hidden="true"></i>
<strong>{{ trans('general.consumable_information') }}: </strong>
<ul><li><b>{{ trans('general.consumable_name') }}</b> {{ $consumable->name }}</li></ul>
</div>
@@ -92,9 +92,9 @@
@if ($accessories = session()->get('accessories'))
@foreach ($accessories as $accessory)
<div class="col-md-12">
- <div class="alert alert-info fade in">
- <button type="button" class="close" data-dismiss="alert">&times;</button>
- <i class="fas fa-info-circle faa-pulse animated"></i>
+ <div class="alert alert-info fade in" role="status" aria-live="polite" aria-atomic="true">
+ <button type="button" class="close" data-dismiss="alert" aria-label="{{ trans('general.close') }}"><span aria-hidden="true">&times;</span></button>
+ <i class="fas fa-info-circle faa-pulse animated" aria-hidden="true"></i>
<strong>{{ trans('general.accessory_information') }}:</strong>
<ul><li><b>{{ trans('general.accessory_name') }}</b> {{ $accessory->name }}</li></ul>
</div>
@@ -105,9 +105,9 @@
@if ($message = session()->get('error'))
<div class="col-md-12">
- <div class="alert alert alert-danger fade in">
- <button type="button" class="close" data-dismiss="alert">&times;</button>
- <i class="fas fa-exclamation-triangle faa-pulse animated"></i>
+ <div class="alert alert alert-danger fade in" role="alert" aria-live="assertive" aria-atomic="true">
+ <button type="button" class="close" data-dismiss="alert" aria-label="{{ trans('general.close') }}"><span aria-hidden="true">&times;</span></button>
+ <i class="fas fa-exclamation-triangle faa-pulse animated" aria-hidden="true"></i>
<strong>{{ trans('general.error') }}: </strong>
{{ $message }}
</div>
@@ -116,11 +116,11 @@
@if ($messages = session()->get('error_messages'))
-@foreach ($messages as $message)
+@foreach ($messages as $message)
<div class="col-md-12">
- <div class="alert alert alert-danger fade in">
- <button type="button" class="close" data-dismiss="alert">&times;</button>
- <i class="fas fa-exclamation-triangle faa-pulse animated"></i>
+ <div class="alert alert alert-danger fade in" role="alert" aria-live="assertive" aria-atomic="true">
+ <button type="button" class="close" data-dismiss="alert" aria-label="{{ trans('general.close') }}"><span aria-hidden="true">&times;</span></button>
+ <i class="fas fa-exclamation-triangle faa-pulse animated" aria-hidden="true"></i>
<strong>{{ trans('general.notification_error') }}: </strong>
{{ $message }}
</div>
@@ -131,9 +131,9 @@
@if ($messages = session()->get('bulk_asset_errors'))
<div class="col-md-12">
- <div class="alert alert alert-danger fade in">
- <button type="button" class="close" data-dismiss="alert">&times;</button>
- <i class="fas fa-exclamation-triangle faa-pulse animated"></i>
+ <div class="alert alert alert-danger fade in" role="alert" aria-live="assertive" aria-atomic="true">
+ <button type="button" class="close" data-dismiss="alert" aria-label="{{ trans('general.close') }}"><span aria-hidden="true">&times;</span></button>
+ <i class="fas fa-exclamation-triangle faa-pulse animated" aria-hidden="true"></i>
<strong>{{ trans('general.notification_error') }}: </strong>
{{ trans('general.notification_bulk_error_hint') }}
@foreach($messages as $key => $message)
@@ -149,9 +149,9 @@
@if ($messages = session()->get('multi_error_messages'))
<div class="col-md-12">
- <div class="alert alert alert-warning fade in">
- <button type="button" class="close" data-dismiss="alert">&times;</button>
- <i class="fas fa-exclamation-triangle faa-pulse animated"></i>
+ <div class="alert alert alert-warning fade in" role="alert" aria-live="assertive" aria-atomic="true">
+ <button type="button" class="close" data-dismiss="alert" aria-label="{{ trans('general.close') }}"><span aria-hidden="true">&times;</span></button>
+ <i class="fas fa-exclamation-triangle faa-pulse animated" aria-hidden="true"></i>
<strong>{{ trans('general.notification_error') }}: </strong>
<ul>
@foreach(array_splice($messages, 0,3) as $key => $message)
@@ -173,9 +173,9 @@
@if ($message = session()->get('warning'))
<div class="col-md-12">
- <div class="alert alert-warning fade in">
- <button type="button" class="close" data-dismiss="alert">&times;</button>
- <i class="fas fa-exclamation-triangle faa-pulse animated"></i>
+ <div class="alert alert-warning fade in" role="alert" aria-live="assertive" aria-atomic="true">
+ <button type="button" class="close" data-dismiss="alert" aria-label="{{ trans('general.close') }}"><span aria-hidden="true">&times;</span></button>
+ <i class="fas fa-exclamation-triangle faa-pulse animated" aria-hidden="true"></i>
<strong>{{ trans('general.notification_warning') }}: </strong>
{{ $message }}
</div>
@@ -185,9 +185,9 @@
@if ($message = session()->get('info'))
<div class="col-md-12">
- <div class="alert alert-info fade in">
- <button type="button" class="close" data-dismiss="alert">&times;</button>
- <i class="fas fa-info-circle faa-pulse animated"></i>
+ <div class="alert alert-info fade in" role="status" aria-live="polite" aria-atomic="true">
+ <button type="button" class="close" data-dismiss="alert" aria-label="{{ trans('general.close') }}"><span aria-hidden="true">&times;</span></button>
+ <i class="fas fa-info-circle faa-pulse animated" aria-hidden="true"></i>
<strong>{{ trans('general.notification_info') }}: </strong>
{{ $message }}
</div>