Add id for form in form template

This commit is contained in:
Visman 2020-06-19 20:45:34 +07:00
parent 9b91b9068a
commit c6c5fe1741

View file

@ -1,5 +1,5 @@
@if ($form['action'])
<form class="f-form" method="post" action="{!! $form['action'] !!}" @if ($form['enctype']) enctype="{{ $form['enctype'] }}" @endif>
<form @if ($form['id']) id="{!! $form['id'] !!}" @endif class="f-form" method="post" action="{!! $form['action'] !!}" @if ($form['enctype']) enctype="{{ $form['enctype'] }}" @endif>
@if ($form['hidden'])
@foreach ($form['hidden'] as $key => $val)
<input type="hidden" name="{{ $key }}" value="{{ $val }}">