akaunting/resources/views/partials/form/password_group.blade.php

31 lines
1.2 KiB
PHP
Raw Normal View History

2018-08-04 19:07:32 +03:00
@stack($name . '_input_start')
2019-11-16 10:21:14 +03:00
<div
class="form-group {{ $col }} {{ isset($attributes['required']) ? 'required' : '' }}"
:class="[{'has-error': {{ isset($attributes['v-error']) ? $attributes['v-error'] : 'form.errors.get(' . $name . ')' }} }]">
@if ($text)
{!! Form::label($name, $text, ['class' => 'form-control-label'])!!}
@endif
<div class="input-group input-group-merge {{ $group_class }}">
<div class="input-group-prepend">
<span class="input-group-text">
<i class="fa fa-{{ $icon }}"></i>
</span>
</div>
{!! Form::password($name, array_merge([
'class' => 'form-control',
'data-name' => $name,
'placeholder' => trans('general.form.select.field', ['field' => $text]),
'v-model' => !empty($attributes['v-model']) ? $attributes['v-model'] : 'form.' . $name
], $attributes)) !!}
</div>
<div class="invalid-feedback d-block"
v-if="{{ isset($attributes['v-error']) ? $attributes['v-error'] : 'form.errors.has(' . $name . ')' }}"
v-html="{{ isset($attributes['v-error-message']) ? $attributes['v-error-message'] : 'form.errors.get(' . $name . ')' }}">
2017-09-14 22:21:00 +03:00
</div>
</div>
2018-08-04 19:07:32 +03:00
@stack($name . '_input_end')