Document form recurring and attachment style..

This commit is contained in:
Cüneyt Şentürk 2021-01-01 15:45:43 +03:00
parent 7851caae9a
commit a4d78ce28a
4 changed files with 8 additions and 6 deletions

View File

@ -120,7 +120,7 @@ class Form extends Provider
]);
Facade::component('recurring', 'partials.form.recurring', [
'page', 'model' => null,
'page', 'model' => null, 'col' => 'col-md-12',
]);
Facade::component('invoice_text', 'partials.form.invoice_text', [

View File

@ -1,5 +1,5 @@
<template>
<div class="row col-md-6 pr-0">
<div class="row pr-0" :class="formClasses">
<base-input :label="title"
name="recurring_frequency"
:class="frequencyClasses"
@ -80,7 +80,9 @@ export default {
default: '',
description: "Modal header title"
},
formClasses: null,
formClasses: {
default: 'col-md-6',
},
formError: null,
frequencyOptions: null,

View File

@ -9,7 +9,7 @@
<div class="row">
<div class="col-sm-6 col-md-6 col-lg-6 col-xl-6">
@if (!$hideRecurring)
{{ Form::recurring('create') }}
{{ Form::recurring('create', null, 'col-md-12') }}
@endif
</div>
@ -19,7 +19,7 @@
@endif
@if (!$hideAttachment)
{{ Form::fileGroup('attachment', trans('general.attachment')) }}
{{ Form::fileGroup('attachment', trans('general.attachment'), '', ['dropzone-class' => 'form-file'], null, 'col-md-12') }}
@endif
</div>
</div>

View File

@ -15,7 +15,7 @@
@endphp
<akaunting-recurring
:form-classes="[{'has-error': form.errors.get('recurring_frequency')}]"
:form-classes="[{'has-error': form.errors.get('recurring_frequency')}, '{{ $col }}']"
title="{{ trans('recurring.recurring') }}"
placeholder="{{ trans('general.form.select.field', ['field' => trans('recurring.recurring')]) }}"