Form group add show feature in attribute..

This commit is contained in:
Cüneyt Şentürk 2020-03-19 22:57:28 +03:00
parent e947cc9332
commit 3500570b92
12 changed files with 137 additions and 93 deletions

View File

@ -1,6 +1,6 @@
@stack('bulk_action_row_input_start')
@php
@php
if (is_array($path)) {
$path = route('bulk-actions.action', $path);
} else {
@ -15,10 +15,10 @@
$actions_to_show[$key] = true;
}
@endphp
@endphp
@if(!empty($actions_to_show))
<div class="align-items-center d-none"
@if(!empty($actions_to_show))
<div class="align-items-center d-none"
v-if="bulk_action.show"
:class="[{'show': bulk_action.show}]">
<div class="mr-6">
@ -78,9 +78,9 @@
<span>{{ trans('general.clear') }}</span>
</button>
</div>
</div>
</div>
<akaunting-modal
<akaunting-modal
:show="bulk_action.modal"
:title="'{{ trans_choice($text, 2) }}'"
:message="bulk_action.message"
@ -98,9 +98,9 @@
</button>
</div>
</template>
</akaunting-modal>
@else
<div class="text-white" :class="[{'show': bulk_action.show}]">{{ trans('bulk_actions.no_action') }}</div>
@endif
</akaunting-modal>
@else
<div class="text-white" :class="[{'show': bulk_action.show}]">{{ trans('bulk_actions.no_action') }}</div>
@endif
@stack('bulk_action_row_input_end')

View File

@ -55,6 +55,10 @@
:disabled="{{ $attributes['disabled'] }}"
@endif
@if (isset($attributes['show']))
v-if="{{ $attributes['show'] }}"
@endif
@if (isset($attributes['v-error-message']))
:form-error="{{ $attributes['v-error-message'] }}"
@else

View File

@ -60,6 +60,10 @@
:disabled="{{ $attributes['disabled'] }}"
@endif
@if (isset($attributes['show']))
v-if="{{ $attributes['show'] }}"
@endif
@if (isset($attributes['v-error-message']))
:form-error="{{ $attributes['v-error-message'] }}"
@else

View File

@ -19,6 +19,10 @@
:disabled="{{ $attributes['disabled'] }}"
@endif
@if (isset($attributes['show']))
v-if="{{ $attributes['show'] }}"
@endif
@if (isset($attributes['masked']))
:masked="{{ ($attributes['masked']) ? 'true' : 'false' }}"
@endif

View File

@ -71,6 +71,10 @@
:disabled="{{ $attributes['disabled'] }}"
@endif
@if (isset($attributes['show']))
v-if="{{ $attributes['show'] }}"
@endif
@if (isset($attributes['v-error-message']))
:form-error="{{ $attributes['v-error-message'] }}"
@else

View File

@ -49,6 +49,10 @@
:disabled="{{ $attributes['disabled'] }}"
@endif
@if (isset($attributes['show']))
v-if="{{ $attributes['show'] }}"
@endif
@if (isset($attributes['v-error-message']))
:form-error="{{ $attributes['v-error-message'] }}"
@else

View File

@ -65,6 +65,10 @@
:disabled="{{ $attributes['disabled'] }}"
@endif
@if (isset($attributes['show']))
v-if="{{ $attributes['show'] }}"
@endif
@if (isset($attributes['v-error-message']))
:form-error="{{ $attributes['v-error-message'] }}"
@else

View File

@ -43,6 +43,10 @@
:disabled="{{ $attributes['disabled'] }}"
@endif
@if (isset($attributes['show']))
v-if="{{ $attributes['show'] }}"
@endif
@if (isset($attributes['v-error-message']))
:form-error="{{ $attributes['v-error-message'] }}"
@else

View File

@ -67,6 +67,10 @@
:disabled="{{ $attributes['disabled'] }}"
@endif
@if (isset($attributes['show']))
v-if="{{ $attributes['show'] }}"
@endif
@if (isset($attributes['v-error-message']))
:form-error="{{ $attributes['v-error-message'] }}"
@else

View File

@ -45,6 +45,10 @@
:disabled="{{ $attributes['disabled'] }}"
@endif
@if (isset($attributes['show']))
v-if="{{ $attributes['show'] }}"
@endif
@if (isset($attributes['v-error-message']))
:form-error="{{ $attributes['v-error-message'] }}"
@else

View File

@ -43,6 +43,10 @@
:disabled="{{ $attributes['disabled'] }}"
@endif
@if (isset($attributes['show']))
v-if="{{ $attributes['show'] }}"
@endif
@if (isset($attributes['v-error-message']))
:form-error="{{ $attributes['v-error-message'] }}"
@else

View File

@ -48,6 +48,10 @@
:disabled="{{ $attributes['disabled'] }}"
@endif
@if (isset($attributes['show']))
v-if="{{ $attributes['show'] }}"
@endif
@if(isset($attributes['v-error-message']))
:form-error="{{ $attributes['v-error-message'] }}"
@else