Add custom title to alert widget (#10373)

This commit is contained in:
djamp42
2019-06-27 01:32:16 -04:00
committed by Tony Murray
parent 9d68f27296
commit 197947d4a1
2 changed files with 5 additions and 0 deletions

View File

@@ -32,6 +32,7 @@ class AlertsController extends WidgetController
{
protected $title = 'Alerts';
protected $defaults = [
'title' => null,
'device' => null,
'acknowledged' => null,
'fired' => null,

View File

@@ -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 }}">