Skip to content

Commit

Permalink
extract into a partial
Browse files Browse the repository at this point in the history
  • Loading branch information
imanghafoori1 committed Nov 5, 2017
1 parent 0a9e8de commit bef528f
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 37 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,28 +10,7 @@
</span>
</div><!-- /input-group -->

<div id='modal-datamodal-{{$name_column}}' class="modal"
tabindex="-1" role="dialog">
<div class="modal-dialog {{ $col['datamodal_size']=='large'?'modal-lg':'' }} "
role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close"
data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span></button>
<h4 class="modal-title"><i
class='fa fa-search'></i> {{cbTrans('datamodal_browse_data')}} {{$col['label']}}
</h4>
</div>
<div class="modal-body">
<iframe id='iframe-modal-{{$name_column}}'
style="border:0;height: 430px;width: 100%"
src=""></iframe>
</div>

</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
@include('crudbooster::default.type_components.modal_dialog', ['name' => $name_column, 'label'=> $col['label'], 'size' => $col['datamodal_size']])

@push('bottom')
<script type="text/javascript">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,19 +53,5 @@ function selectDataModal {{$name}}(label, value) {
</script>


<div id='modal-datamodal-{{$name}}' class="modal" tabindex="-1" role="dialog">
<div class="modal-dialog {{ $form['options']['size']=='large'?'modal-lg':'' }} " role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span>
</button>
<h4 class="modal-title"><i class='fa fa-search'></i> {{cbTrans('datamodal_browse_data')}}
| {{$form['label']}}</h4>
</div>
<div class="modal-body">
<iframe id='iframe-modal-{{$name}}' style="border:0;height: 430px;width: 100%" src=""></iframe>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
@include('crudbooster::default.type_components.modal_dialog', ['name' => $name, 'label'=> $form['label'], 'size' => $form['options']['size']])
@endpush
18 changes: 18 additions & 0 deletions src/views/default/type_components/modal_dialog.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<div id='modal-datamodal-{{$name}}' class="modal" tabindex="-1" role="dialog">
<div class="modal-dialog {{ $size == 'large'?'modal-lg':'' }} " role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
<h4 class="modal-title">
<i class='fa fa-search'></i> {{cbTrans('datamodal_browse_data')}} {{$label}}
</h4>
</div>
<div class="modal-body">
<iframe id='iframe-modal-{{$name}}' style="border:0;height: 430px;width: 100%" src=""></iframe>
</div>

</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->

0 comments on commit bef528f

Please sign in to comment.