Files

26 lines
1.3 KiB
PHP
Raw Permalink Normal View History

@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