mardi 20 décembre 2016

Laravel 5.3 - How do I delete rows depending on the selected checkbox?

I'm trying to delete multiple rows depending on the selected checkbox within my (dossier) index.

This is what I got so far:

<form method="POST" action="" class="display-inline">
    <select name="dossier_id" class="form-control position">
        <option class="display-none" value="">With selected</option>
        <option>Delete</option>
    </select>
    <input type="submit" class="btn btn-primary">
</form>

<table class="table table-hover dossier-table">
    <thead>
        <tr>
            <th></th>
        </tr>
    </thead>

    <tbody>
        <tr>
            <td><input type="checkbox" 
                       name="dossier_id" 
                       class="checkbox" 
                       value="">
            </td>
        </tr>
    </tbody>
</table>

Now, what's left to do in a logical order?




Aucun commentaire:

Enregistrer un commentaire