Files

50 lines
2.8 KiB
PHP
Raw Permalink Normal View History

2018-12-16 15:18:17 -06:00
@extends('widgets.settings.base')
@section('form')
<div class="form-group">
<label for="title-{{ $id }}" class="control-label">@lang('Widget title')</label>
<input type="text" class="form-control" name="title" id="title-{{ $id }}" placeholder="@lang('Default Title')" value="{{ $title }}">
</div>
<div class="form-group">
<label for="top_query-{{ $id }}" class="control-label">@lang('Top query')</label>
<select class="form-control" name="top_query" id="top_query-{{ $id }}">
<option value="traffic" @if($top_query == 'traffic') selected @endif>@lang('Traffic')</option>
<option value="uptime" @if($top_query == 'uptime') selected @endif>@lang('Uptime')</option>
<option value="ping" @if($top_query == 'ping') selected @endif>@lang('Response time')</option>
<option value="poller" @if($top_query == 'poller') selected @endif>@lang('Poller duration')</option>
<option value="cpu" @if($top_query == 'cpu') selected @endif>@lang('Processor load')</option>
<option value="ram" @if($top_query == 'ram') selected @endif>@lang('Memory usage')</option>
<option value="storage" @if($top_query == 'storage') selected @endif>@lang('Disk usage')</option>
</select>
</div>
<div class="form-group">
<label for="sort_order-{{ $id }}" class="control-label">@lang('Sort order')</label>
<select class="form-control" name="sort_order" id="sort_order-{{ $id }}">
<option value="asc" @if($sort_order == 'asc') selected @endif>@lang('Ascending')</option>
<option value="desc" @if($sort_order == 'desc') selected @endif>@lang('Descending')</option>
</select>
</div>
<div class="form-group">
<label for="device_count-{{ $id }}" class="control-label">@lang('Number of Devices')</label>
<input class="form-control" name="device_count" id="device_count-{{ $id }}" value="{{ $device_count }}">
</div>
<div class="form-group">
<label for="time_interval-{{ $id }}" class="control-label">@lang('Last Polled (minutes)')</label>
<input class="form-control" name="time_interval" id="time_interval-{{ $id }}" value="{{ $time_interval }}">
</div>
2019-08-08 02:59:14 +02:00
<div class="form-group">
<label for="device_group-{{ $id }}" class="control-label">@lang('Device group')</label>
<select class="form-control" name="device_group" id="device_group-{{ $id }}" data-placeholder="@lang('All Devices')">
@if($device_group)
<option value="{{ $device_group->id }}" selected>{{ $device_group->name }}</option>
@endif
</select>
</div>
@endsection
@section('javascript')
<script type="text/javascript">
init_select2('#device_group-{{ $id }}', 'device-group', {});
</script>
2018-12-16 15:18:17 -06:00
@endsection