mardi 9 août 2016

Bootstrap toggle checkbox doesn't get sent with request

I have a checkbox on my Laravel 5.1 form that I have incorporated the Bootstrap Toggle attributes to. The problem is, when the form is submitted, the checkbox doesn't get sent with the request. I have verified that it is selected (checked = checked). I have another checkbox on the same form that isn't using the Bootstrap Toggle styling and it passes as expected.

Here is the form input:

{!! Form::checkbox('status', '1', $employee->status, array('data-toggle' => 'toggle')) !!}

($employee->status is a boolean)

Here are all of the scripts and css I'm loading in my project:

<!-- Stylesheets -->
<link href="/css/app.css" rel="stylesheet">
<link href="http://ift.tt/1cRwpUH" rel="stylesheet" >
<link href="http://ift.tt/2aDsFEU" rel="stylesheet">
<link href="/css/pams.css" rel="stylesheet">
<link href="http://ift.tt/29JU2BD" rel="stylesheet">
<link href="http://ift.tt/2aDrTYu" rel="stylesheet">

@yield('head-css')

<!-- Fonts -->
<link href='//fonts.googleapis.com/css?family=Roboto:400,300' rel='stylesheet' type='text/css'>

<!-- Scripts -->
<script src="http://ift.tt/29JXOsX"></script>
<script src="http://ift.tt/2a8rLkD"></script>

<script src="http://ift.tt/1Takq7M"></script>

<script src="http://ift.tt/2aDrLs2"></script>

<script src="http://ift.tt/29iShee"></script>

<script src="http://ift.tt/2aDsLwk"></script>



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire