file group stying..

This commit is contained in:
Cüneyt Şentürk 2020-12-30 23:17:49 +03:00
parent 66a201c3bd
commit 881d0acac5
17 changed files with 29 additions and 17 deletions

11
public/css/custom.css vendored
View File

@ -1407,4 +1407,13 @@ table .align-items-center td span.badge {
margin-top: 20%; margin-top: 20%;
margin-left: 45%; margin-left: 45%;
} }
/* Document Loading Finish */ /* Document Loading Finish */
/* Custom File stype Start */
.form-file {
width: 100%;
}
.form-file .dz-message {
padding: 0.6rem 1rem;
}
/* Custom File stype Finish */

View File

@ -44,7 +44,7 @@
</div> </div>
@stack('picture_input_end') @stack('picture_input_end')
@else @else
{{ Form::fileGroup('picture', trans_choice('general.pictures', 1)) }} {{ Form::fileGroup('picture', trans_choice('general.pictures', 1), '', ['dropzone-class' => 'form-file']) }}
@endif @endif
@can('read-common-companies') @can('read-common-companies')

View File

@ -45,7 +45,7 @@
</div> </div>
@stack('picture_input_end') @stack('picture_input_end')
@else @else
{{ Form::fileGroup('picture', trans_choice('general.pictures', 1)) }} {{ Form::fileGroup('picture', trans_choice('general.pictures', 1), '', ['dropzone-class' => 'form-file']) }}
@endif @endif
@can('read-common-companies') @can('read-common-companies')

View File

@ -27,7 +27,7 @@
{{ Form::textareaGroup('address', trans('general.address')) }} {{ Form::textareaGroup('address', trans('general.address')) }}
{{ Form::fileGroup('logo', trans('companies.logo')) }} {{ Form::fileGroup('logo', trans('companies.logo'), '', ['dropzone-class' => 'form-file']) }}
{{ Form::radioGroup('enabled', trans('general.enabled'), true) }} {{ Form::radioGroup('enabled', trans('general.enabled'), true) }}
</div> </div>

View File

@ -28,7 +28,7 @@
{{ Form::textareaGroup('address', trans('general.address')) }} {{ Form::textareaGroup('address', trans('general.address')) }}
{{ Form::fileGroup('logo', trans('companies.logo')) }} {{ Form::fileGroup('logo', trans('companies.logo'), '', ['dropzone-class' => 'form-file']) }}
{{ Form::radioGroup('enabled', trans('general.enabled'), $company->enabled) }} {{ Form::radioGroup('enabled', trans('general.enabled'), $company->enabled) }}
</div> </div>

View File

@ -29,7 +29,7 @@
{{ Form::selectAddNewGroup('category_id', trans_choice('general.categories', 1), 'folder', $categories, null, ['path' => route('modals.categories.create') . '?type=item']) }} {{ Form::selectAddNewGroup('category_id', trans_choice('general.categories', 1), 'folder', $categories, null, ['path' => route('modals.categories.create') . '?type=item']) }}
{{ Form::fileGroup('picture', trans_choice('general.pictures', 1), 'plus') }} {{ Form::fileGroup('picture', trans_choice('general.pictures', 1), 'plus', ['dropzone-class' => 'form-file']) }}
{{ Form::radioGroup('enabled', trans('general.enabled'), true) }} {{ Form::radioGroup('enabled', trans('general.enabled'), true) }}
</div> </div>

View File

@ -30,7 +30,7 @@
{{ Form::selectRemoteAddNewGroup('category_id', trans_choice('general.categories', 1), 'folder', $categories, $item->category_id, ['path' => route('modals.categories.create') . '?type=item', 'remote_action' => route('categories.index'). '?type=item']) }} {{ Form::selectRemoteAddNewGroup('category_id', trans_choice('general.categories', 1), 'folder', $categories, $item->category_id, ['path' => route('modals.categories.create') . '?type=item', 'remote_action' => route('categories.index'). '?type=item']) }}
{{ Form::fileGroup('picture', trans_choice('general.pictures', 1)) }} {{ Form::fileGroup('picture', trans_choice('general.pictures', 1), '', ['dropzone-class' => 'form-file']) }}
{{ Form::radioGroup('enabled', trans('general.enabled'), $item->enabled) }} {{ Form::radioGroup('enabled', trans('general.enabled'), $item->enabled) }}
</div> </div>

View File

@ -8,7 +8,10 @@
@endif @endif
<div class="input-group input-group-merge"> <div class="input-group input-group-merge">
<dropzone-file-upload <dropzone-file-upload
@if (!empty($attributes['dropzone-class']))
class="{{ $attributes['dropzone-class'] }}"
@endif
@if (!empty($attributes['options'])) @if (!empty($attributes['options']))
options={{ json_encode($attributes['options']) }} options={{ json_encode($attributes['options']) }}
@endif @endif

View File

@ -34,7 +34,7 @@
{{ Form::selectGroup('locale', trans_choice('general.languages', 1), 'flag', language()->allowed(), $user->locale) }} {{ Form::selectGroup('locale', trans_choice('general.languages', 1), 'flag', language()->allowed(), $user->locale) }}
{{ Form::fileGroup('picture', trans_choice('general.pictures', 1)) }} {{ Form::fileGroup('picture', trans_choice('general.pictures', 1), '', ['dropzone-class' => 'form-file']) }}
</div> </div>
</div> </div>

View File

@ -38,7 +38,7 @@
{{ Form::textGroup('reference', trans('general.reference'), 'file', []) }} {{ Form::textGroup('reference', trans('general.reference'), 'file', []) }}
{{ Form::fileGroup('attachment', trans('general.attachment')) }} {{ Form::fileGroup('attachment', trans('general.attachment'), '', ['dropzone-class' => 'form-file']) }}
{{ Form::selectGroup('document_id', trans_choice('general.bills', 1), 'file-invoice', [], null, ['disabled' => 'true']) }} {{ Form::selectGroup('document_id', trans_choice('general.bills', 1), 'file-invoice', [], null, ['disabled' => 'true']) }}
</div> </div>

View File

@ -63,7 +63,7 @@
@include('partials.media.file') @include('partials.media.file')
</div> </div>
@else @else
{{ Form::fileGroup('attachment', trans('general.attachment')) }} {{ Form::fileGroup('attachment', trans('general.attachment'), '', ['dropzone-class' => 'form-file']) }}
@endif @endif
@if ($payment->bill) @if ($payment->bill)

View File

@ -31,7 +31,7 @@
{{ Form::textareaGroup('address', trans('general.address')) }} {{ Form::textareaGroup('address', trans('general.address')) }}
{{ Form::fileGroup('logo', trans_choice('general.pictures', 1)) }} {{ Form::fileGroup('logo', trans_choice('general.pictures', 1), '', ['dropzone-class' => 'form-file']) }}
{{ Form::textGroup('reference', trans('general.reference'), 'file', []) }} {{ Form::textGroup('reference', trans('general.reference'), 'file', []) }}

View File

@ -32,7 +32,7 @@
{{ Form::textareaGroup('address', trans('general.address')) }} {{ Form::textareaGroup('address', trans('general.address')) }}
{{ Form::fileGroup('logo', trans_choice('general.logos', 1)) }} {{ Form::fileGroup('logo', trans_choice('general.logos', 1), '', ['dropzone-class' => 'form-file']) }}
{{ Form::textGroup('reference', trans('general.reference'), 'file', []) }} {{ Form::textGroup('reference', trans('general.reference'), 'file', []) }}

View File

@ -38,7 +38,7 @@
{{ Form::textGroup('reference', trans('general.reference'), 'file', []) }} {{ Form::textGroup('reference', trans('general.reference'), 'file', []) }}
{{ Form::fileGroup('attachment', trans('general.attachment')) }} {{ Form::fileGroup('attachment', trans('general.attachment'), '', ['dropzone-class' => 'form-file']) }}
{{ Form::selectGroup('document_id', trans_choice('general.invoices', 1), 'file-invoice', [], null, ['disabled' => 'true']) }} {{ Form::selectGroup('document_id', trans_choice('general.invoices', 1), 'file-invoice', [], null, ['disabled' => 'true']) }}
</div> </div>

View File

@ -63,7 +63,7 @@
@include('partials.media.file') @include('partials.media.file')
</div> </div>
@else @else
{{ Form::fileGroup('attachment', trans('general.attachment')) }} {{ Form::fileGroup('attachment', trans('general.attachment'), '', ['dropzone-class' => 'form-file']) }}
@endif @endif
@if ($revenue->invoice) @if ($revenue->invoice)

View File

@ -28,7 +28,7 @@
{{ Form::textareaGroup('address', trans('settings.company.address'), null, setting('company.address')) }} {{ Form::textareaGroup('address', trans('settings.company.address'), null, setting('company.address')) }}
{{ Form::fileGroup('logo', trans('settings.company.logo'), 'file-image-o', [], setting('company.logo')) }} {{ Form::fileGroup('logo', trans('settings.company.logo'), 'file-image-o', ['dropzone-class' => 'form-file'], setting('company.logo')) }}
</div> </div>
</div> </div>

View File

@ -59,7 +59,7 @@
{{ Form::textareaGroup('address', trans('settings.company.address')) }} {{ Form::textareaGroup('address', trans('settings.company.address')) }}
{{ Form::fileGroup('logo', trans('settings.company.logo')) }} {{ Form::fileGroup('logo', trans('settings.company.logo'), '', ['dropzone-class' => 'form-file']) }}
</div> </div>
</div> </div>