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',
'description',
'image_url',
'active',
];
// Validation

View File

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