2018-09-27 16:00:03 +00:00
|
|
|
<button type="button" class="btn btn-sm btn-secondary mr-1" data-toggle="modal" data-target="#editModal">{{ __('item.edit') }}</button>
|
2018-09-16 19:18:49 +00:00
|
|
|
|
|
|
|
<!-- MODAL - CHANGE WINDOW -->
|
|
|
|
<div class="modal fade" id="editModal" tabindex="-1" role="dialog" aria-labelledby="editModalLabel" aria-hidden="true">
|
|
|
|
<div class="modal-dialog" role="document">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
2018-09-27 16:00:03 +00:00
|
|
|
<h5 class="modal-title" id="editModalLabel">{{ __('item.edititem') }}</h5>
|
2018-09-16 19:18:49 +00:00
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
|
|
|
<span aria-hidden="true">×</span>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<form action="/item" method="POST">
|
|
|
|
<div class="modal-body">
|
|
|
|
<div class="form-group">
|
2018-09-27 16:00:03 +00:00
|
|
|
<label for="name" class="col-form-label">{{ __('item.newname') }} </label>
|
2018-09-16 19:18:49 +00:00
|
|
|
<input type="text" name="name" id="name" class="form-control" value="{{$item->name}}">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
|
|
@method('PATCH')
|
|
|
|
{{ csrf_field() }}
|
|
|
|
<input type="hidden" name="item" value="{{$item->id}}">
|
2018-09-27 16:00:03 +00:00
|
|
|
<button type="button" class="btn btn-secondary" data-dismiss="modal">{{ __('item.close') }}</button>
|
|
|
|
<button type="submit" class="btn btn-danger">{{ __('item.edit') }}</button>
|
2018-09-16 19:18:49 +00:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|