From 7f0a18841ec5da3948fb509ad7e2a415abaeb942 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=BCneyt=20=C5=9Eent=C3=BCrk?= Date: Sun, 3 Jan 2021 13:33:32 +0300 Subject: [PATCH] item multi tax field styling.. --- public/css/custom.css | 6 ++++++ resources/views/common/items/create.blade.php | 2 +- resources/views/common/items/edit.blade.php | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/public/css/custom.css b/public/css/custom.css index e87e800f6..d2778487d 100644 --- a/public/css/custom.css +++ b/public/css/custom.css @@ -1417,3 +1417,9 @@ table .align-items-center td span.badge { padding: 0.6rem 1rem; } /* Custom File stype Finish */ + +/* el-select__tags */ +.el-select-tags-pl-38 .el-select .el-select__tags { + padding-left: 38px !important; +} +/* el-select__tags */ diff --git a/resources/views/common/items/create.blade.php b/resources/views/common/items/create.blade.php index 059cc0276..78487a3c3 100644 --- a/resources/views/common/items/create.blade.php +++ b/resources/views/common/items/create.blade.php @@ -19,7 +19,7 @@
{{ Form::textGroup('name', trans('general.name'), 'tag') }} - {{ Form::multiSelectAddNewGroup('tax_ids', trans_choice('general.taxes', 1), 'percentage', $taxes, [setting('default.tax')], ['path' => route('modals.taxes.create'), 'field' => ['key' => 'id', 'value' => 'title']]) }} + {{ Form::multiSelectAddNewGroup('tax_ids', trans_choice('general.taxes', 1), 'percentage', $taxes, (setting('default.tax')) ? [setting('default.tax')] : null, ['path' => route('modals.taxes.create'), 'field' => ['key' => 'id', 'value' => 'title']], 'col-md-6 el-select-tags-pl-38') }} {{ Form::textareaGroup('description', trans('general.description')) }} diff --git a/resources/views/common/items/edit.blade.php b/resources/views/common/items/edit.blade.php index 81039e4a1..bd35a2140 100644 --- a/resources/views/common/items/edit.blade.php +++ b/resources/views/common/items/edit.blade.php @@ -20,7 +20,7 @@
{{ Form::textGroup('name', trans('general.name'), 'tag') }} - {{ Form::multiSelectAddNewGroup('tax_ids', trans_choice('general.taxes', 1), 'percentage', $taxes, $item->tax_ids, ['path' => route('modals.taxes.create'), 'field' => ['key' => 'id', 'value' => 'title']]) }} + {{ Form::multiSelectAddNewGroup('tax_ids', trans_choice('general.taxes', 1), 'percentage', $taxes, $item->tax_ids, ['path' => route('modals.taxes.create'), 'field' => ['key' => 'id', 'value' => 'title']], 'col-md-6 el-select-tags-pl-38') }} {{ Form::textareaGroup('description', trans('general.description')) }}