service templates - move to blade -wip

This commit is contained in:
Anthony F McInerney
2020-10-15 21:31:51 +01:00
parent bbc2d73c3c
commit 92d2ad821b
@@ -1,8 +1,8 @@
<div class="form-group @if($errors->has('name')) has-error @endif">
<label for="name" class="control-label col-sm-3 col-md-2 text-nowrap">@lang('Name')</label>
<div class="col-sm-9 col-md-10">
<input type="text" class="form-control" id="service_template_name" name="service_template_name" value="{{ old('name', $service_template->service_template_name) }}">
<span class="help-block">{{ $errors->first('name') }}</span>
<input type="text" class="form-control" id="service_template_name" name="service_template_name" value="{{ old('service_template_name', $service_template->service_template_name) }}">
<span class="help-block">{{ $errors->first('service_template_name') }}</span>
</div>
</div>
@@ -21,19 +21,19 @@
<div class="form-group @if($errors->has('type')) has-error @endif">
<label for="type" class="control-label col-sm-3 col-md-2">@lang('Check Type')</label>
<div class="col-sm-9 col-md-10">
<select class="form-control" id="stype" name="stype">
<select class="form-control" id="service_template_type" name="service_template_type">
@foreach($services as $current_service)
<option value="{{ $current_service }}">{{ $current_service }}</option>
@endforeach
</select>
<span class="help-block">{{ $errors->first('type') }}</span>
<span class="help-block">{{ $errors->first('service_template_type') }}</span>
</div>
</div>
<div class="form-group @if($errors->has('desc')) has-error @endif">
<label for="desc" class="control-label col-sm-3 col-md-2 text-nowrap">@lang('Description')</label>
<div class="col-sm-9 col-md-10">
<input type="text" class="form-control" id="desc" name="desc" value="{{ old('desc', $service_template->service_template_desc) }}">
<input type="text" class="form-control" id="service_template_desc" name="service_template_desc" value="{{ old('service_template_desc', $service_template->service_template_desc) }}">
<span class="help-block">{{ $errors->first('desc') }}</span>
</div>
</div>
@@ -41,7 +41,7 @@
<div class="form-group @if($errors->has('ip')) has-error @endif">
<label for="ip" class="control-label col-sm-3 col-md-2 text-nowrap">@lang('Remote Host')</label>
<div class="col-sm-9 col-md-10">
<input type="text" class="form-control" id="ip" name="ip" value="{{ old('ip', $service_template->service_template_ip) }}">
<input type="text" class="form-control" id="service_template_ip" name="service_template_ip" value="{{ old('ip', $service_template->service_template_ip) }}">
<span class="help-block">{{ $errors->first('ip') }}</span>
</div>
</div>
@@ -49,7 +49,7 @@
<div class="form-group @if($errors->has('param')) has-error @endif">
<label for="param" class="control-label col-sm-3 col-md-2 text-nowrap">@lang('Parameters')</label>
<div class="col-sm-9 col-md-10">
<input type="text" class="form-control" id="param" name="param" value="{{ old('param', $service_template->service_template_param) }}">
<input type="text" class="form-control" id="service_template_param" name="service_template_param" value="{{ old('service_template_param', $service_template->service_template_param) }}">
<span class="help-block">{{ $errors->first('param') }}</span>
</div>
</div>
@@ -63,7 +63,7 @@
<div class="form-group @if($errors->has('ignore')) has-error @endif">
<label for="ignore" class="control-label col-sm-3 col-md-2 text-nowrap">@lang('Ignore alert tag')</label>
<div class="col-sm-9 col-md-10">
<input type="checkbox" class="form-control" id="ignore" name="ignore" value="{{ old('ignore', $service_template->service_template_ignore) }}">
<input type="checkbox" class="form-control" id="service_template_ignore" name="service_template_ignore" value="{{ old('service_template_ignore', $service_template->service_template_ignore) }}">
<span class="help-block">{{ $errors->first('ignore') }}</span>
</div>
</div>
@@ -71,7 +71,7 @@
<div class="form-group @if($errors->has('ip')) has-error @endif">
<label for="ip" class="control-label col-sm-3 col-md-2 text-nowrap">@lang('Disable polling and alerting')</label>
<div class="col-sm-9 col-md-10">
<input type="checkbox" class="form-control" id="disabled" name="disabled" value="{{ old('disabled', $service_template->service_template_disabled) }}">
<input type="checkbox" class="form-control" id="service_template_disabled" name="service_template_disabled" value="{{ old('service_template_disabled', $service_template->service_template_disabled) }}">
<span class="help-block">{{ $errors->first('disabled') }}</span>
</div>
</div>