Type Rating update (#1366)

* Update Typerating.php

Add `'active'` to fillable

* Update fields.blade.php

Fixed grid, positioning of checkbox label and removed extra row
This commit is contained in:
B.Fatih KOZ 2021-12-08 20:40:10 +03:00 committed by GitHub
parent 3c9d419ebb
commit 064682b71f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 10 deletions

View File

@ -13,6 +13,7 @@ class Typerating extends Model
'type', 'type',
'description', 'description',
'image_url', 'image_url',
'active',
]; ];
// Validation // Validation

View File

@ -1,10 +1,10 @@
<div class="row"> <div class="row">
<div class="form-group col-sm-6"> <div class="form-group col-sm-7">
{{ Form::label('name', 'Name:') }} {{ Form::label('name', 'Name:') }}
{{ Form::text('name', null, ['class' => 'form-control']) }} {{ Form::text('name', null, ['class' => 'form-control']) }}
<p class="text-danger">{{ $errors->first('name') }}</p> <p class="text-danger">{{ $errors->first('name') }}</p>
</div> </div>
<div class="form-group col-sm-6"> <div class="form-group col-sm-5">
{{ Form::label('type', 'Type Code:') }} {{ Form::label('type', 'Type Code:') }}
{{ Form::text('type', null, ['class' => 'form-control']) }} {{ Form::text('type', null, ['class' => 'form-control']) }}
<p class="text-danger">{{ $errors->first('type') }}</p> <p class="text-danger">{{ $errors->first('type') }}</p>
@ -12,12 +12,12 @@
</div> </div>
<div class="row"> <div class="row">
<div class="form-group col-md-7"> <div class="form-group col-sm-7">
{{ Form::label('description', 'Description:') }} {{ Form::label('description', 'Description:') }}
{{ Form::text('description', null, ['class' => 'form-control']) }} {{ Form::text('description', null, ['class' => 'form-control']) }}
<p class="text-danger">{{ $errors->first('description') }}</p> <p class="text-danger">{{ $errors->first('description') }}</p>
</div> </div>
<div class="form-group col-md-5"> <div class="form-group col-sm-5">
{{ Form::label('image_url', 'Image Link:') }} {{ Form::label('image_url', 'Image Link:') }}
{{ Form::text('image_url', null, ['class' => 'form-control']) }} {{ Form::text('image_url', null, ['class' => 'form-control']) }}
<p class="text-danger">{{ $errors->first('image_url') }}</p> <p class="text-danger">{{ $errors->first('image_url') }}</p>
@ -25,19 +25,16 @@
</div> </div>
<div class="row"> <div class="row">
<div class="form-group col-md-3"> <div class="form-group col-sm-3">
<div class="checkbox"> <div class="checkbox">
<label class="checkbox-inline"> <label class="checkbox-inline">
{{ Form::label('active', 'Active:') }}
{{ Form::hidden('active', false) }} {{ Form::hidden('active', false) }}
{{ Form::checkbox('active') }} {{ Form::checkbox('active') }}
{{ Form::label('active', 'Active:') }}
</label> </label>
</div> </div>
</div> </div>
</div> <div class="col-sm-9">
<div class="row">
<div class="col-sm-12">
<div class="text-right"> <div class="text-right">
{{ Form::button('Save', ['type' => 'submit', 'class' => 'btn btn-success']) }} {{ Form::button('Save', ['type' => 'submit', 'class' => 'btn btn-success']) }}
</div> </div>