Skip to content

Commit

Permalink
added tranation for edit brand page
Browse files Browse the repository at this point in the history
  • Loading branch information
zielu92 committed Aug 22, 2018
1 parent 98f85bb commit 3aadb38
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 10 deletions.
29 changes: 29 additions & 0 deletions resources/lang/en/admin/brands.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?php

return [
/*
|--------------------------------------------------------------------------
| Authentication Language Lines
|--------------------------------------------------------------------------
|
| The following language lines are used during authentication for various
| messages that we need to display to the user. You are free to modify
| these language lines according to your application's requirements.
|
*/
'modelsAndBrands' => 'Brands and models',
'editing' => 'Editing',
'choiceFromList' => 'Choice from list or',
'giveName' => 'set the name',
'model' => 'model',
'shortName' => 'short name',
'type' => 'type',
'car' => 'Car',
'motorbike' => 'Motorbike',
'bike' => 'Bike',
'agriculturalMachine' => 'Agricultural machine',
'other' => 'Other',
'edit' => 'Edit',
''=>'',

];
29 changes: 29 additions & 0 deletions resources/lang/pl/admin/brands.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?php

return [
/*
|--------------------------------------------------------------------------
| Authentication Language Lines
|--------------------------------------------------------------------------
|
| The following language lines are used during authentication for various
| messages that we need to display to the user. You are free to modify
| these language lines according to your application's requirements.
|
*/
'modelsAndBrands' => 'Modele i marki',
'editing' => 'Edytujesz',
'choiceFromList' => 'Wybierz z listy lub',
'giveName' => 'podaj nazwę',
'model' => 'model',
'shortName' => 'skrócona nazwa',
'type' => 'typ',
'car' => 'Samochód',
'motorbike' => 'Motocykl',
'bike' => 'Rower',
'agriculturalMachine' => 'Maszyna rolnicza',
'other' => 'Inne',
'edit' => 'Edytuj',
''=>'',

];
22 changes: 12 additions & 10 deletions resources/views/admin/brands/edit.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,38 +2,40 @@

@section('content')
<div class="col-lg-12">
<h1>Modele i marki</h1>
<h1>{{Lang::get('admin/brands.modelsAndBrands')}}</h1>
<div class="col-md-6 pull-left">
<h4>Edytujesz {{$model->model}}</h4>
<h4>{{Lang::get('admin/brands.editing')}} {{$model->model}}</h4>
{!! Form::model($model,['method'=>'PATCH', 'action'=>['AdminModelBrandController@update', $model->id],
'class'=>'form-row']) !!}
<div class="form-group col-md-6">
{!! Form::label('brand_id', 'Wybierz z listy lub') !!}
{!! Form::label('brand_id', Lang::get('admin/brands.choiceFromList')) !!}
{!! Form::select('brand_id', $brand, null, ['class'=>'form-control brand-list']) !!}
</div>
<div class="form-group col-md-6">
{!! Form::label('name', 'podaj nazwę') !!}
{!! Form::label('name', Lang::get('admin/brands.giveName')) !!}
{!! Form::text('name', null, ['class'=>'form-control']) !!}
</div>

<div class="form-group col-md-6">
{!! Form::label('model', 'model') !!}
{!! Form::label('model', Lang::get('admin/brands.model')) !!}
{!! Form::text('model', null, ['class'=>'form-control']) !!}
</div>

<div class="form-group col-md-6">
{!! Form::label('mode_code', 'skrócona nazwa') !!}
{!! Form::label('mode_code', Lang::get('admin/brands.shortName')) !!}
{!! Form::text('mode_code', null, ['class'=>'form-control']) !!}
</div>

<div class="form-group col-md-6">
{!! Form::label('type', 'typ') !!}
{!! Form::select('type', [ '1' => 'Samochód', '2'=>'Motocykl', '3'=>'Rower',
'4'=>'Maszyna rolnicza', '5'=>'Inne'], null, ['class'=>'form-control']) !!}
{!! Form::label('type', Lang::get('admin/brands.type')) !!}
{!! Form::select('type', [ '1' => Lang::get('admin/brands.car'),
'2'=>Lang::get('admin/brands.motorbike'), '3'=>Lang::get('admin/brands.bike'),
'4'=>Lang::get('admin/brands.agriculturalMachine'), '5'=>Lang::get('admin/brands.other')], null,
['class'=>'form-control']) !!}
</div>

<div class="form-grop col-md-12">
{!! Form::submit('Edytuj', ['class'=>'btn btn-primary pull-right']) !!}
{!! Form::submit(Lang::get('admin/brands.edit'), ['class'=>'btn btn-primary pull-right']) !!}
</div>

{!! Form::close() !!}
Expand Down

0 comments on commit 3aadb38

Please sign in to comment.