Skip to content

Commit

Permalink
modal add unique id
Browse files Browse the repository at this point in the history
  • Loading branch information
sudippalash committed Feb 19, 2023
1 parent 6e378fa commit 3f4df62
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions src/resources/views/components/bootstrap3/image.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,16 @@
{{ trans('media-input::media_input.add_media_from_url') }} <span class="caret"></span>
</a>
<ul class="dropdown-menu" aria-labelledby="spDropdown">
<li><a href="javascript:void(0);" data-toggle="modal" data-target="#spImageModal">{{ trans('media-input::media_input.image_from_url') }}</a></li>
<li><a href="javascript:void(0);" data-toggle="modal" data-target="#spVideoModal">{{ trans('media-input::media_input.video_from_url') }}</a></li>
<li>
<a href="javascript:void(0);" data-toggle="modal" data-target="#spImageModal{{ $uniqueId }}">
{{ trans('media-input::media_input.image_from_url') }}
</a>
</li>
<li>
<a href="javascript:void(0);" data-toggle="modal" data-target="#spVideoModal{{ $uniqueId }}">
{{ trans('media-input::media_input.video_from_url') }}
</a>
</li>
</ul>
</div>
</div>
Expand Down Expand Up @@ -49,7 +57,7 @@
</div>
</div>

<div class="modal fade" id="spImageModal">
<div class="modal fade" id="spImageModal{{ $uniqueId }}">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
Expand All @@ -75,7 +83,7 @@
</div>
</div>

<div class="modal fade" id="spVideoModal">
<div class="modal fade" id="spVideoModal{{ $uniqueId }}">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
Expand Down

0 comments on commit 3f4df62

Please sign in to comment.