You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to know how I can include a column with the include and edit buttons for all screens, without duplicating the code for each view?
I was able to create the column with the buttons, but the way I did it, I would have to repeat the code for each view. This would increase maintenance and possibly propagate bugs.
I was able to do what you suggested. I moved the buttons to a separate view. However, I'm now not sure how I can send the ids to the buttons so that they are synchronized with their proper records when rendered by the view.
<a href="{{HOW DO I GET THE ID FROM HERE}}/edit" class="ui icon button yellow">
<i class="icon write"></i>
</a>
<form action="{{HOW DO I GET THE ID FROM HERE}}" method="post" style="display: inline">
{{ csrf_field() }}
{{ Form::hidden("_method", "DELETE") }}
<button type="submit" class="ui icon button red">
<i class="icon trash"></i>
</button>
</form>
I would like to know how I can include a column with the include and edit buttons for all screens, without duplicating the code for each view?
I was able to create the column with the buttons, but the way I did it, I would have to repeat the code for each view. This would increase maintenance and possibly propagate bugs.
System details
The text was updated successfully, but these errors were encountered: