-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Load modal with sample image in page list create class
- Loading branch information
1 parent
e3b6ae4
commit 81ccc23
Showing
5 changed files
with
53 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
@if(file_exists(public_path().'/vendor/editora/extras/classes_sample/'.$class['class_internal_name'].'.jpg')) | ||
|
||
<div class="modal fade bd-example-modal-lg show" id="imagemodal" role="dialog" style=""> | ||
<div class="modal-dialog modal-lg"> | ||
<div class="modal-content"> | ||
<div class="modal-header"> | ||
|
||
{{getMessage('classes_sample_modal')}} | ||
@if(isset($class) && isset($class['class_name'])) | ||
{{$class['class_name']}} | ||
@endif | ||
|
||
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span></button> | ||
</div> | ||
<div class="modal-body" id="dynamic-content"> | ||
<img src="" id="imagepreview" class="img-fluid" alt=""/> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
@endif | ||
|
||
|
||
@section('scripts') | ||
@parent | ||
<script type="text/javascript"> | ||
@if(file_exists(public_path().'/vendor/editora/extras/classes_sample/'.$class['class_internal_name'].'.jpg')) | ||
$("#showClassSample").on("click", function() { | ||
var route_img = "{{ url('/vendor/editora/extras/classes_sample/'.$class['class_internal_name'].'.jpg') }}"; | ||
$('#imagepreview').attr('src', route_img ); | ||
$('#imagemodal').modal('show'); | ||
}); | ||
@endif | ||
</script> | ||
@endsection |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters