Skip to content

Commit

Permalink
select multi id name issue fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
hafijul233 committed Jan 7, 2022
1 parent 18c45c0 commit 2a699a6
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 32 deletions.
2 changes: 1 addition & 1 deletion resources/views/bootstrap4/horizon/email.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
$msg = $errors->first($name) ?? null;
if(isset($required) && $required == true)
$options['required'] = 'required'
$options['required'] = 'required';
@endphp
<div class="col-sm-{{ (12-$col_size) }}">
{!! Form::email($name, $default, array_merge($options, $attributes)) !!}
Expand Down
2 changes: 1 addition & 1 deletion resources/views/bootstrap4/horizon/password.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
$msg = $errors->first($name) ?? null;
if(isset($required) && $required == true)
$options['required'] = 'required'
$options['required'] = 'required';
@endphp
<div class="col-sm-{{ (12-$col_size) }}">
{!! Form::password($name, array_merge($options, $attributes)) !!}
Expand Down
2 changes: 1 addition & 1 deletion resources/views/bootstrap4/inline/email.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
$msg = $errors->first($name) ?? null;
if(isset($required) && $required == true)
$options['required'] = 'required'
$options['required'] = 'required';
@endphp
<div class="input-group">
@if(isset($position) && $position == 'before')
Expand Down
2 changes: 1 addition & 1 deletion resources/views/bootstrap4/normal/selectmulti.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@

{!! Form::select($name . '[]', $data, $selected, array_merge($options, $attributes)) !!}

{!! Form::nError($name . '[]', $msg) !!}
{!! Form::nError($name, $msg) !!}
</div>
55 changes: 27 additions & 28 deletions resources/views/examples/bootstrap4.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,7 @@
<td>
<code class="d-block">
\Form::hEmail('email_address', 'Email Address', 'john@doe.com', true, 2,
['placeholder'
=>"Email Example Placeholder"])
['placeholder' =>"Email Example Placeholder"])
</code>
</td>
<td>
Expand Down Expand Up @@ -326,12 +325,12 @@
<th>8.</th>
<td>
<code class="d-block">
\Form::hPassword('password', 'Password', '123456789', true, 2, ['placeholder'
\Form::hPassword('password', 'Password', true, 2, ['placeholder'
=>"Password Placeholder"])
</code>
</td>
<td>
{!! Form::hPassword('password', 'Password', '123456789', true, 2, ['placeholder' =>"Password Placeholder"]) !!}
{!! Form::hPassword('password', 'Password', true, 2, ['placeholder' =>"Password Placeholder"]) !!}
</td>
</tr>
<tr>
Expand Down Expand Up @@ -519,12 +518,12 @@
<th>3.</th>
<td>
<code class="d-block">
\Form::iEmail('email_address', 'Email Address', 'john@doe.com', true, ['placeholder'
=>"Email Example Placeholder"])
Form::iEmail('email_address', 'Email Address', 'john@doe.com', true,
'fas fa-envelop', 'before', ['placeholder' =>"Email Example Placeholder"])
</code>
</td>
<td>
{!! Form::iEmail('email_address', 'Email Address', 'john@doe.com', true, ['placeholder' =>"Email Example Placeholder"]) !!}
{!! Form::iEmail('email_address', 'Email Address', 'john@doe.com', true, 'fas fa-envelop', 'before', ['placeholder' =>"Email Example Placeholder"]) !!}
</td>
</tr>
<tr>
Expand Down Expand Up @@ -568,11 +567,11 @@
<th>7.</th>
<td>
<code class="d-block">
\Form::iNumber('money', 'Money', 100.00, true, ['step' =>"0.01", 'min'=> 0])
\Form::iNumber('money', 'Money', 100.00, true, 'fas fa-user', 'before', ['step' =>"0.01", 'min'=> 0])
</code>
</td>
<td>
{!! Form::iNumber('money', 'Money', 100.00, true, ['step' =>"0.01", 'min'=> 0]) !!}
{!! Form::iNumber('money', 'Money', 100.00, true, 'fas fa-user', 'before', ['step' =>"0.01", 'min'=> 0]) !!}
</td>
</tr>
<tr>
Expand Down Expand Up @@ -613,24 +612,24 @@
<th>11.</th>
<td>
<code class="d-block">
\Form::iSearch('search_text', 'Search Text', null, false, ['placeholder' => "Enter
\Form::iSearch('search_text', 'Search Text', null, false, 'fas fa-user', 'before', ['placeholder' => "Enter
what you want..."])
</code>
</td>
<td>
{!! Form::iSearch('search_text', 'Search Text', null, false, ['placeholder' => "Enter what you want..."]) !!}
{!! Form::iSearch('search_text', 'Search Text', null, false, 'fas fa-user', 'before', ['placeholder' => "Enter what you want..."]) !!}
</td>
</tr>
<tr>
<th>12.</th>
<td>
<code class="d-block">
\Form::iSelect('state', 'State', [1 => 'Dhaka', 2 => 'Chittagong'], 2, false,
['placeholder' => "Select a State"])
'fas fa-user', 'before', ['placeholder' => "Select a State"])
</code>
</td>
<td>
{!! Form::iSelect('state', 'State', [1 => 'Dhaka', 2 => 'Chittagong'], null, false, ['placeholder' => "Select a State"]) !!}
{!! Form::iSelect('state', 'State', [1 => 'Dhaka', 2 => 'Chittagong'], null, false, 'fas fa-user', 'before',['placeholder' => "Select a State"]) !!}
</td>
</tr>
<tr>
Expand All @@ -642,7 +641,7 @@
</code>
</td>
<td>
{!! Form::iSelect('animal', 'Animal', [ 'Cats' => ['leopard' => 'Leopard'], 'Dogs' => ['spaniel' => 'Spaniel']], 2, false, ['placeholder' => "Select a Animal"]) !!}
{!! Form::iSelect('animal', 'Animal', [ 'Cats' => ['leopard' => 'Leopard'], 'Dogs' => ['spaniel' => 'Spaniel']], 2, false, 'fas fa-user', 'before', ['placeholder' => "Select a Animal"]) !!}
</td>
</tr>
<tr>
Expand All @@ -654,7 +653,7 @@
</code>
</td>
<td>
{!! Form::iSelectMulti('state', 'State', [1 => 'Dhaka', 2 => 'Chittagong'], [2,1] , false, []) !!}
{!! Form::iSelectMulti('state', 'State', [1 => 'Dhaka', 2 => 'Chittagong'], [2,1] , false, 'fas fa-user', 'before', []) !!}
</td>
</tr>
<tr>
Expand All @@ -666,67 +665,67 @@
</code>
</td>
<td>
{!! Form::iSelectMonth('month', 'Month', '2', true, ['placeholder' => "Select a Month"]) !!}
{!! Form::iSelectMonth('month', 'Month', '2', true, 'fas fa-user', 'before', ['placeholder' => "Select a Month"]) !!}
</td>
</tr>
<tr>
<th>16.</th>
<td>
<code class="d-block">
\Form::iSelectRange('rating', 'Rating', 1,100, 20, false, ['placeholder' => "Select
\Form::iSelectRange('rating', 'Rating', 1,100, 20, false, 'fas fa-user', 'before',['placeholder' => "Select
a Rating"])
</code>
</td>
<td>
{!! Form::iSelectRange('rating', 'Rating', 1,100, 20, false, ['placeholder' => "Select a Rating"]) !!}
{!! Form::iSelectRange('rating', 'Rating', 1,100, 20, false, 'fas fa-user', 'before', ['placeholder' => "Select a Rating"]) !!}
</td>
</tr>
<tr>
<th>17.</th>
<td>
<code class="d-block">
\Form::iTel('mobile', 'Mobile', null, true, ['placeholder' => "Enter Mobile
\Form::iTel('mobile', 'Mobile', null, true, 'fas fa-user', 'before',['placeholder' => "Enter Mobile
Number"])
</code>
</td>
<td>
{!! Form::iTel('mobile', 'Mobile', null, true, ['placeholder' => "Enter Mobile Number"]) !!}
{!! Form::iTel('mobile', 'Mobile', null, true, 'fas fa-user', 'before',['placeholder' => "Enter Mobile Number"]) !!}
</td>
</tr>
<tr>
<th>18.</th>
<td>
<code class="d-block">
\Form::iText('summary', 'Summary', 'short summary', true, ['placeholder' => "Type
\Form::iText('summary', 'Summary', 'short summary', true, 'fas fa-user', 'before',['placeholder' => "Type
some summary"])
</code>
</td>
<td>
{!! Form::iText('summary', 'Summary', 'short summary', true, ['placeholder' => "Type some summary"]) !!}
{!! Form::iText('summary', 'Summary', 'short summary', true, 'fas fa-user', 'before',['placeholder' => "Type some summary"]) !!}
</td>
</tr>
<tr>
<th>19.</th>
<td>
<code class="d-block">
\Form::iTextarea('description', 'Description', 'short description', true,
['placeholder' => "Type some description"])
'fas fa-user', 'before',['placeholder' => "Type some description"])
</code>
</td>
<td>
{!! Form::iTextarea('description', 'Description', 'short description', true, ['placeholder' => "Type some description"]) !!}
{!! Form::iTextarea('description', 'Description', 'short description', true, 'fas fa-user', 'before',['placeholder' => "Type some description"]) !!}
</td>
</tr>
<tr>
<th>20.</th>
<td>
<code class="d-block">
\Form::iUrl('website', 'Website', null, true, ['placeholder' => "Enter Your
\Form::iUrl('website', 'Website', null, true, 'fas fa-user', 'before',['placeholder' => "Enter Your
Portfolio link"])
</code>
</td>
<td>
{!! Form::iUrl('website', 'Website', null, true, ['placeholder' => "Enter Your Portfolio link"]) !!}
{!! Form::iUrl('website', 'Website', null, true, 'fas fa-user', 'before',['placeholder' => "Enter Your Portfolio link"]) !!}
</td>
</tr>
</tbody>
Expand Down Expand Up @@ -830,12 +829,12 @@
<th>8.</th>
<td>
<code class="d-block">
\Form::nPassword('password', 'Password', '123456789', true, ['placeholder'
\Form::nPassword('password', 'Password', true, ['placeholder'
=>"Password Placeholder"])
</code>
</td>
<td>
{!! Form::nPassword('password', 'Password', '123456789', true, ['placeholder' =>"Password Placeholder"]) !!}
{!! Form::nPassword('password', 'Password', true, ['placeholder' =>"Password Placeholder"]) !!}
</td>
</tr>
<tr>
Expand Down

0 comments on commit 2a699a6

Please sign in to comment.