Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
laravel-adminpanel
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
laravel-adminpanel
Commits
8fb82d98
Commit
8fb82d98
authored
Mar 13, 2019
by
Viral Solani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- resolve datatable error
parent
2de3c975
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
51 additions
and
3 deletions
+51
-3
RoleTableController.php
...p/Controllers/Backend/Access/Role/RoleTableController.php
+1
-1
ManageRoleRequest.php
app/Http/Requests/Backend/Access/Role/ManageRoleRequest.php
+0
-1
index.blade.php
resources/views/backend/access/permissions/index.blade.php
+6
-0
index.blade.php
resources/views/backend/access/roles/index.blade.php
+8
-1
index.blade.php
resources/views/backend/blogcategories/index.blade.php
+5
-0
index.blade.php
resources/views/backend/blogs/index.blade.php
+6
-0
index.blade.php
resources/views/backend/blogtags/index.blade.php
+6
-0
index.blade.php
resources/views/backend/faqs/index.blade.php
+6
-0
index.blade.php
resources/views/backend/menus/index.blade.php
+7
-0
index.blade.php
resources/views/backend/pages/index.blade.php
+6
-0
No files found.
app/Http/Controllers/Backend/Access/Role/RoleTableController.php
View file @
8fb82d98
...
...
@@ -36,7 +36,7 @@ class RoleTableController extends Controller
->
escapeColumns
([
'name'
,
'sort'
])
->
addColumn
(
'permissions'
,
function
(
$role
)
{
if
(
$role
->
all
)
{
return
'<span class="label label-success">'
.
trans
(
'labels.general.all'
)
.
'</span>'
;
return
'<span class="label label-success">'
.
trans
(
'labels.general.all'
)
.
'</span>'
;
}
return
$role
->
permission_name
;
...
...
app/Http/Requests/Backend/Access/Role/ManageRoleRequest.php
View file @
8fb82d98
...
...
@@ -27,7 +27,6 @@ class ManageRoleRequest extends Request
public
function
rules
()
{
return
[
//
];
}
}
resources/views/backend/access/permissions/index.blade.php
View file @
8fb82d98
...
...
@@ -68,6 +68,12 @@
<script>
$(function() {
$.ajaxSetup({
headers: {
'X-CSRF-TOKEN': $('meta[name="
csrf
-
token
"]').attr('content')
}
});
var dataTable = $('#permissions-table').dataTable({
processing: true,
serverSide: true,
...
...
resources/views/backend/access/roles/index.blade.php
View file @
8fb82d98
...
...
@@ -70,12 +70,19 @@
<script>
$(function() {
$.ajaxSetup({
headers: {
'X-CSRF-TOKEN': $('meta[name="
csrf
-
token
"]').attr('content')
}
});
var dataTable = $('#roles-table').dataTable({
processing: true,
serverSide: true,
ajax: {
url: '{{ route("
admin
.
access
.
role
.
get
") }}',
type: 'post'
type: 'post'
,
},
columns: [
{data: 'name', name: '
{
{config('access.roles_table')}}.name'
}
,
...
...
resources/views/backend/blogcategories/index.blade.php
View file @
8fb82d98
...
...
@@ -65,6 +65,11 @@
{{ Html::script(mix('js/dataTable.js')) }}
<script>
$.ajaxSetup({
headers: {
'X-CSRF-TOKEN': $('meta[name="
csrf
-
token
"]').attr('content')
}
});
$(function() {
var dataTable = $('#blogcategories-table').dataTable({
processing: true,
...
...
resources/views/backend/blogs/index.blade.php
View file @
8fb82d98
...
...
@@ -68,6 +68,12 @@
<script>
$(function() {
$.ajaxSetup({
headers: {
'X-CSRF-TOKEN': $('meta[name="
csrf
-
token
"]').attr('content')
}
});
var dataTable = $('#blogs-table').dataTable({
processing: true,
serverSide: true,
...
...
resources/views/backend/blogtags/index.blade.php
View file @
8fb82d98
...
...
@@ -66,6 +66,12 @@
<script>
$(function() {
$.ajaxSetup({
headers: {
'X-CSRF-TOKEN': $('meta[name="
csrf
-
token
"]').attr('content')
}
});
var dataTable = $('#blogtags-table').dataTable({
processing: true,
serverSide: true,
...
...
resources/views/backend/faqs/index.blade.php
View file @
8fb82d98
...
...
@@ -70,6 +70,12 @@
<script>
$(function() {
$.ajaxSetup({
headers: {
'X-CSRF-TOKEN': $('meta[name="
csrf
-
token
"]').attr('content')
}
});
var dataTable = $('#faqs-table').dataTable({
processing: true,
serverSide: true,
...
...
resources/views/backend/menus/index.blade.php
View file @
8fb82d98
...
...
@@ -67,6 +67,13 @@
<script>
$(function() {
$.ajaxSetup({
headers: {
'X-CSRF-TOKEN': $('meta[name="
csrf
-
token
"]').attr('content')
}
});
var dataTable = $('#menus-table').dataTable({
processing: true,
serverSide: true,
...
...
resources/views/backend/pages/index.blade.php
View file @
8fb82d98
...
...
@@ -66,6 +66,12 @@
<script>
$(function() {
$.ajaxSetup({
headers: {
'X-CSRF-TOKEN': $('meta[name="
csrf
-
token
"]').attr('content')
}
});
var dataTable = $('#pages-table').dataTable({
processing: true,
serverSide: true,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment