Fixed weird layout with checkbox

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2023-08-15 18:48:20 +01:00
parent 64342838fd
commit 6b02184e99

View file

@ -40,17 +40,21 @@
<div class="col-md-11 col-md-offset-1"> <div class="col-md-11 col-md-offset-1">
<!-- New Label Engine --> <!-- New Label Engine -->
<div class="form-group {{ $errors->has('label2_enable') ? 'error' : '' }}"> {{-- <div class="form-group" {{ $errors->has('label2_enable') ? 'error' : '' }}">--}}
<div class="col-md-3"> {{-- <div class="col-md-7 col-md-offset-3">--}}
{{ Form::label('label2_enable', trans('admin/settings/general.label2_enable')) }} {{-- <label for="label2_enable" class="form-control">--}}
</div> {{-- <input type="checkbox" value="1" name="label2_enable" {{ (old('label2_enable', $setting->label2_enable)) == '1' ? ' checked="checked"' : '' }} aria-label="label2_enable">--}}
<div class="col-md-9"> {{-- {{ Form::label('label2_enable', trans('admin/settings/general.label2_enable')) }}--}}
{{ Form::checkbox('label2_enable', '1', old('label2_enable', $setting->label2_enable, [ 'class'=>'minimal', 'aria-label'=>'label2_enable' ])) }}
{{ trans('general.yes') }} {{-- </label>--}}
{!! $errors->first('label2_enable', '<span class="alert-msg" aria-hidden="true">:message</span>') !!} {{-- {!! $errors->first('label2_enable', '<span class="alert-msg" aria-hidden="true">:message</span>') !!}--}}
<p class="help-block">{!! trans('admin/settings/general.label2_enable_help') !!}</p> {{-- <p class="help-block">--}}
</div> {{-- {!! trans('admin/settings/general.label2_enable_help') !!}--}}
</div> {{-- </p>--}}
{{-- </div>--}}
{{-- </div>--}}
@if ($setting->label2_enable) @if ($setting->label2_enable)
<!-- New Settings --> <!-- New Settings -->