mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
4395b002ab
* add alert history dashboard * add sql-schema * only alert * add settings * add settings * fix display alert details * fix db-schema * add filtering by severity * fix code climate * Update common.php
26 lines
1.3 KiB
PHP
26 lines
1.3 KiB
PHP
@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="state-{{ $id }}" class="control-label">@lang('State'):</label>
|
|
<select class="form-control" name="state" id="state-{{ $id }}">
|
|
<option value="-1">@lang('not filtered')</option>
|
|
<option value="0" @if($state === '1') selected @endif>@lang('OK')</option>
|
|
<option value="1" @if($state === '0') selected @endif>@lang('Alert')</option>
|
|
</select>
|
|
</div>
|
|
<div class="form-group row">
|
|
<label for="min_severity-{{ $id }}" class="control-label">@lang('Displayed severity'):</label>
|
|
<select class="form-control" name="min_severity" id="min_severity-{{ $id }}">
|
|
<option value="">@lang('any severity')</option>
|
|
@foreach($severities as $name => $val)
|
|
<option value="{{ $val }}" @if($min_severity == $val) selected @endif>{{ $name }}{{$val > 3 ? '' : ' ' . __('or higher')}}</option>
|
|
@endforeach
|
|
</select>
|
|
</div>
|
|
@endsection
|