Skip to content

Commit 94cb1dd

Browse files
committed
Added datatables to the lists
1 parent cba7c64 commit 94cb1dd

File tree

8 files changed

+12
-9
lines changed

8 files changed

+12
-9
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"email": "[email protected]"
1212
}
1313
],
14-
"version": "0.1.2",
14+
"version": "0.1.3",
1515
"require": {
1616
"illuminate/html": "5.0.*@dev"
1717
},

src/Public/quickadmin/js/jquery-2.1.4.min.js

Lines changed: 0 additions & 4 deletions
This file was deleted.

src/Public/quickadmin/js/main.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
$(document).ready(function () {
2+
$('.datatable').datatable();
3+
});

src/Templates/view_index

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<div class="caption">List</div>
1111
</div>
1212
<div class="portlet-body">
13-
<table class="table table-striped table-hover table-responsive">
13+
<table class="table table-striped table-hover table-responsive datatable">
1414
<thead>
1515
<tr>
1616
$HEADINGS$

src/Views/admin/partials/header.blade.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
href="{{ url('quickadmin/css') }}/quickadmin-layout.css"/>
2828
<link rel="stylesheet"
2929
href="{{ url('quickadmin/css') }}/quickadmin-theme-default.css"/>
30+
<link rel="stylesheet"
31+
href="//cdn.datatables.net/1.10.9/css/jquery.dataTables.min.css"/>
3032
</head>
3133

3234
<body class="page-header-fixed">
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
<script src="{{ url('quickadmin/js') }}/jquery-2.1.4.min.js"></script>
1+
<script src="//code.jquery.com/jquery-1.11.3.min.js"></script>
2+
<script src="//cdn.datatables.net/1.10.9/js/jquery.dataTables.min.js"></script>
3+
<script src="{{ url('quickadmin/js') }}/main.js"></script>

src/Views/admin/users/index.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<div class="caption">Users list</div>
1111
</div>
1212
<div class="portlet-body">
13-
<table class="table table-striped table-hover table-responsive">
13+
<table class="table table-striped table-hover table-responsive datatable">
1414
<thead>
1515
<tr>
1616
<th>Name</th>

src/Views/qa/cruds/create.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<div class="form-group">
2525
{!! Form::label('name', 'CRUD name', ['class'=>'col-md-2 control-label']) !!}
2626
<div class="col-sm-10">
27-
{!! Form::text('name', old('name'), ['class'=>'form-control', 'placeholder'=> 'Plural, ex. Books or Products (used to generate DB table and all back-end files)']) !!}
27+
{!! Form::text('name', old('name'), ['class'=>'form-control', 'placeholder'=> 'ex. Books or Products (used to generate DB table and all back-end files)']) !!}
2828
</div>
2929
</div>
3030

0 commit comments

Comments
 (0)