I'm working on a Laravel 5.3 project and I'm in the process of deploying to a staging server. For staging I used latest Laravel(5.4). Now, one of the problems is that locally, a form which is spread on some table cells is working, but on the staging version the submit button doesn't do anything (like it not part of the form).
<tbody>
{!! Form::model($job = new \App\Models\Job, ['url' => 'admin/job']) !!}
{!! Form::hidden('person', $person->id) !!}
<tr>
<td colspan="3" class="form-group">
{!! Form::text('name', null, ['class' => 'form-control']) !!}
</td>
<td class="form-group">
{!! Form::submit('Adauga', ['class' => 'btn btn-primary form-control']) !!}
</td>
</tr>
{!! Form::close() !!}
@foreach($jobs as $job)
<tr> ....
On inspector both version are displaying the form opening and closing on the same line, but the local variant does send the request.
Does dividing a form's inputs in different containers is sloppy?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire