EV3-408 Megrendelések megjelenése
This commit is contained in:
parent
e0037f77d1
commit
2c759442d3
@ -48,35 +48,36 @@
|
||||
@endphp
|
||||
|
||||
|
||||
@role(['root','developer','admin'])
|
||||
@role(['root', 'developer', 'admin'])
|
||||
<script>
|
||||
APP.IsUserAdmin=true;
|
||||
APP.IsUserAdmin = true;
|
||||
</script>
|
||||
@else
|
||||
<script>
|
||||
APP.IsUserAdmin=false;
|
||||
APP.IsUserAdmin = false;
|
||||
</script>
|
||||
@endrole
|
||||
@endrole
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
if(typeof APP.OrderArchiveModule ==="undefined") {
|
||||
APP.OrderArchiveModule=new OrderArchiveModule();
|
||||
if (typeof APP.OrderArchiveModule === "undefined") {
|
||||
APP.OrderArchiveModule = new OrderArchiveModule();
|
||||
}
|
||||
APP.OrderArchiveModule.init(
|
||||
{
|
||||
APP.OrderArchiveModule.init({
|
||||
URL: {
|
||||
root:'{{url('')}}',
|
||||
getDataTableContent:'{{route('orderArchive.getDataTableContent')}}',
|
||||
index:'{{route('orderArchive.index')}}',
|
||||
show:'{{route('orderArchive.show',"%id%")}}',
|
||||
edit:'{{route('orderArchive.edit',"%id%")}}',
|
||||
root: '{{url('')}}',
|
||||
getDataTableContent: '{{route('orderArchive.getDataTableContent')}}',
|
||||
index: '{{route('orderArchive.index')}}',
|
||||
show: '{{route('orderArchive.show',"%id%")}}',
|
||||
edit: '{{route('orderArchive.edit',"%id%")}}',
|
||||
},
|
||||
testMode: {{$testMode ? 'true' : 'false'}}
|
||||
}
|
||||
);
|
||||
});
|
||||
|
||||
APP.OrderArchiveModule.initViewList({orderDirective:[[4, "desc"]]});
|
||||
var orderColIndex = APP.IsUserAdmin ? 4 : 3;
|
||||
APP.OrderArchiveModule.initViewList({
|
||||
orderDirective: [[orderColIndex, "desc"]]
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user