mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Add custom title to alert widget (#10373)
This commit is contained in:
@@ -32,6 +32,7 @@ class AlertsController extends WidgetController
|
||||
{
|
||||
protected $title = 'Alerts';
|
||||
protected $defaults = [
|
||||
'title' => null,
|
||||
'device' => null,
|
||||
'acknowledged' => null,
|
||||
'fired' => null,
|
||||
|
||||
@@ -1,6 +1,10 @@
|
||||
@extends('widgets.settings.base')
|
||||
|
||||
@section('form')
|
||||
<div class="form-group row">
|
||||
<label for="title-{{ $id }}" class="control-label">@lang('Widget title')</label>
|
||||
<input type="text" class="form-control" name="title" id="title-{{ $id }}" placeholder="@lang('Custom title')" value="{{ $title }}">
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label for="acknowledged-{{ $id }}" class="control-label">@lang('Show acknowledged'):</label>
|
||||
<select class="form-control" name="acknowledged" id="acknowledged-{{ $id }}">
|
||||
|
||||
Reference in New Issue
Block a user