Naming Gallery Items

This commit is contained in:
Torsten 2023-11-18 08:54:54 +01:00
parent c0547d9594
commit 30e0c77f84
2 changed files with 310 additions and 2 deletions

View file

@ -18,14 +18,16 @@
@if(Auth::user()->role=="ADMIN")
<p>
<a id="edit_{{$tour_id}}_{{$img_tpl[0]}}" href="#"><label style="display:inline;">&#128394;</label></a>
<a id="edit_{{$tour_id}}_{{$img_tpl[0]}}" href="#"
onclick="document.getElementById('input_new_name_{{$tour_id}}_{{$img_tpl[0]}}').setAttribute('style','display: inline;');"
><label style="display:inline;">&#128394;</label></a>
<form style="display:inline;background-color: #fff;" class="text-dark" method="post"
action="/tour/gallery/{{$tour_id}}/name_image/{{$img_tpl[0]}}.jpg" enctype="multipart/form-data">
@csrf
@method('PUT')
<input type="hidden" name="tour_id" value="{{ $tour_id }}">
<input type="text" name="new_image_name" value="" >
<input id="input_new_name_{{$tour_id}}_{{$img_tpl[0]}}" style="display:none;" type="text" name="new_image_name" value="{{$img_tpl[1]}}" >
</form>

File diff suppressed because one or more lines are too long