Línea 575... |
Línea 575... |
575 |
success: fnCallback
|
575 |
success: fnCallback
|
576 |
});
|
576 |
});
|
577 |
},
|
577 |
},
|
578 |
aaSorting : [],
|
578 |
aaSorting : [],
|
579 |
aoColumns: [
|
579 |
aoColumns: [
|
580 |
{sName: "checkbox", sTitle : '<input type="checkbox" value="all" data-type="select_all" name="select_all" id="select_all">',bSortable:false,bSearchable:false},
|
580 |
{sName: "checkbox", sTitle : '<input type="checkbox" value="all" data-type="select_all" name="select_all" id="select_all">',bSortable:false,bSearchable:false},
|
581 |
{sName: "name", sTitle: 'Name'},
|
581 |
{sName: "name", sTitle: 'Name'},
|
582 |
{sName: "language", sTitle: 'Language'},
|
582 |
{sName: "language", sTitle: 'Language'},
|
583 |
{sName: "added_on", sTitle : 'Added on'}
|
583 |
{sName: "added_on", sTitle : 'Added on'},
|
584 |
<?php if ($permissionStatus) : ?>
|
- |
|
585 |
,{ "sName": "status", 'sTitle' : 'Status', bSortable:false, bSearchable:false}
|
584 |
{sName: "status", sTitle: 'Status', bSortable:false, bSearchable:false},
|
586 |
<?php if (in_array('edit', $this->Permission) || in_array('delete', $this->Permission) || in_array('view', $this->Permission)) { ?>
|
- |
|
587 |
, {"sName": "operation", 'sTitle': 'Operation', bSortable: false, bSearchable: false}
|
585 |
{sName: "operation", sTitle: 'Operation', bSortable: false, bSearchable: false},
|
588 |
<?php } ?>
|
- |
|
589 |
<?php endif; ?>
|
- |
|
590 |
],
|
586 |
],
|
591 |
fnServerParams: function(aoData){
|
587 |
fnServerParams: function(aoData){
|
592 |
setTitle(aoData, this)
|
588 |
setTitle(aoData, this)
|
593 |
},
|
589 |
},
|
594 |
fnDrawCallback: function(oSettings) {
|
590 |
fnDrawCallback: function(oSettings) {
|
595 |
$('.make-switch-form').bootstrapSwitch();
|
591 |
$('.make-switch-form').bootstrapSwitch();
|
596 |
$('.make-switch-form').bootstrapSwitch('setOnClass', 'success');
|
592 |
$('.make-switch-form').bootstrapSwitch('setOnClass', 'success');
|
597 |
$('.make-switch-form').bootstrapSwitch('setOffClass', 'danger');
|
593 |
$('.make-switch-form').bootstrapSwitch('setOffClass', 'danger');
|
598 |
}
|
594 |
}
|
599 |
});
|
595 |
});
|
Línea 1845... |
Línea 1841... |
1845 |
<div class="row">
|
1841 |
<div class="row">
|
1846 |
<div class="col-xs-12 col-md-12 text-right">
|
1842 |
<div class="col-xs-12 col-md-12 text-right">
|
1847 |
<button class="btn btn-primary" id="btn-add-section" data-toggle="tooltip" title="New Section"><i class="fa fa-plus" aria-hidden="true"></i> New Section</button>
|
1843 |
<button class="btn btn-primary" id="btn-add-section" data-toggle="tooltip" title="New Section"><i class="fa fa-plus" aria-hidden="true"></i> New Section</button>
|
1848 |
</div>
|
1844 |
</div>
|
1849 |
</div>
|
1845 |
</div>
|
1850 |
<br>
|
1846 |
<br />
|
1851 |
<div class="row">
|
1847 |
<div class="row">
|
1852 |
<div class="col-xs-12 col-md-12">
|
1848 |
<div class="col-xs-12 col-md-12">
|
1853 |
<div class="panel-group" id="accordion">
|
1849 |
<div class="panel-group" id="accordion">
|