[WIP] Setup of skeleton
This commit is contained in:
12
resources/views/vendor/datatables/editor.blade.php
vendored
Normal file
12
resources/views/vendor/datatables/editor.blade.php
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
(function(window,$){
|
||||
$.ajaxSetup({headers: {'X-CSRF-TOKEN': '{{csrf_token()}}'}});
|
||||
window.LaravelDataTables = window.LaravelDataTables || {};
|
||||
@foreach($editors as $editor)
|
||||
var {{$editor->instance}} = window.LaravelDataTables["%1$s-{{$editor->instance}}"] = new $.fn.dataTable.Editor({!! $editor->toJson() !!});
|
||||
{!! $editor->scripts !!}
|
||||
@foreach ((array) $editor->events as $event)
|
||||
{{$editor->instance}}.on('{!! $event['event'] !!}', {!! $event['script'] !!});
|
||||
@endforeach
|
||||
@endforeach
|
||||
window.LaravelDataTables["%1$s"] = $("#%1$s").DataTable(%2$s);
|
||||
})(window,jQuery);
|
||||
6
resources/views/vendor/datatables/options.blade.php
vendored
Normal file
6
resources/views/vendor/datatables/options.blade.php
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
window.LaravelDataTables = window.LaravelDataTables || {};
|
||||
window.LaravelDataTables.options = %2$s
|
||||
window.LaravelDataTables.editors = [];
|
||||
@foreach($editors as $editor)
|
||||
window.LaravelDataTables.editors["{{$editor->instance}}"] = {!! $editor->toJson() !!}
|
||||
@endforeach
|
||||
37
resources/views/vendor/datatables/print.blade.php
vendored
Normal file
37
resources/views/vendor/datatables/print.blade.php
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Print Table</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta name=description content="">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<!-- Bootstrap CSS -->
|
||||
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet">
|
||||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
|
||||
<style>
|
||||
body {margin: 20px}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<table class="table table-bordered table-condensed table-striped">
|
||||
@foreach($data as $row)
|
||||
@if ($row == reset($data))
|
||||
<tr>
|
||||
@foreach($row as $key => $value)
|
||||
<th>{!! $key !!}</th>
|
||||
@endforeach
|
||||
</tr>
|
||||
@endif
|
||||
<tr>
|
||||
@foreach($row as $key => $value)
|
||||
@if(is_string($value) || is_numeric($value))
|
||||
<td>{!! $value !!}</td>
|
||||
@else
|
||||
<td></td>
|
||||
@endif
|
||||
@endforeach
|
||||
</tr>
|
||||
@endforeach
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
1
resources/views/vendor/datatables/script.blade.php
vendored
Normal file
1
resources/views/vendor/datatables/script.blade.php
vendored
Normal file
@@ -0,0 +1 @@
|
||||
(function(window,$){window.LaravelDataTables=window.LaravelDataTables||{};window.LaravelDataTables["%1$s"]=$("#%1$s").DataTable(%2$s);})(window,jQuery);
|
||||
Reference in New Issue
Block a user