Skip to content

Commit

Permalink
add: step for inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
ah-rahimi committed Apr 20, 2023
1 parent f04412b commit 2378e4b
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions resources/views/form/components/input.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,21 @@

<input type="{{ $input->type }}"
id="{{ $input->id }}"
name="{{ $input->name }}"
class="form-control @error($input->name) is-invalid @enderror {{ implode(' ', $input->classes) }}"
name="{{ $input->name }}"
class="form-control @error($input->name) is-invalid @enderror {{ implode(' ', $input->classes) }}"
value="{{ $input->value ?? '' }}"
placeholder="{{ $input->placeholder ?? '' }}"
size="{{ $input->size ?? '' }}"
minlength="{{ $input->minlength ?? '' }}"
maxlength="{{ $input->maxLength ?? '' }}"
min="{{ $input->min ?? '' }}"
max="{{ $input->max ?? '' }}"
accept="{{ $input->accept ?? '' }}"
step="{{ $input->step ?? '' }}"
accept="{{ $input->accept ?? '' }}"
{{ $input->required ? 'required' : '' }}
{{ $input->disabled ? 'disabled' : '' }}
{{ $input->disabled ? 'disabled' : '' }}
{{ $input->readonly ? 'readonly' : '' }}
{{ $input->autofocus ? 'autofocus' : '' }}
{{ $input->autofocus ? 'autofocus' : '' }}
{{ $input->autocomplete ? 'autocomplete' : '' }}
{{ $input->multiple ? 'multiple' : '' }}
>
Expand Down

0 comments on commit 2378e4b

Please sign in to comment.