html - Laravel Delete Forms -
i building html table laravel of info database query , in lastly column of table should displaying edit link , delete link. edit link works correctly delete link not way i'm wanting to. i'm wanting form button of trash icon in same form edit link i'm not sure how can making link , within of form.
how now:
<td class="center"> <a data-original-title="edit" href="" data-toggle="tooltip" title="" class="tooltips"><i class="fa fa-pencil"></i></a> {{ form::open(['route' => ['manager.roster.destroy', $member->id], 'class' => 'inline']) }} {{ form::hidden('_method', 'delete') }} {{ form::button('<i class="fa fa-trash-o"></i>', ['type' => 'submit', 'class' => 'delete-row tooltips', 'data-original-title' => 'delete', 'data-toggle' => 'tooltip']) }} {{ form::close() }} </td>
how want somehow it:
<td class="center"> <a data-original-title="edit" href="" data-toggle="tooltip" title="" class="tooltips"><i class="fa fa-pencil"></i></a> {{ form::open(['route' => ['manager.roster.destroy', $member->id], 'class' => 'inline']) }} {{ form::hidden('_method', 'delete') }} <a data-original-title="delete" href="" data-toggle="tooltip" title="" class="tooltips"><i class="fa fa-trash"></i></a> {{ form::close() }} </td>
html forms laravel
No comments:
Post a Comment