forked from Public/pics
Admin controllers: apply new column classes
This commit is contained in:
parent
b9bd2bf499
commit
a6fd8d2764
@ -18,7 +18,7 @@ class ManageAlbums extends HTMLController
|
|||||||
'form' => [
|
'form' => [
|
||||||
'action' => BASEURL . '/editalbum/',
|
'action' => BASEURL . '/editalbum/',
|
||||||
'method' => 'get',
|
'method' => 'get',
|
||||||
'class' => 'float-end',
|
'class' => 'col-md-6 text-end',
|
||||||
'buttons' => [
|
'buttons' => [
|
||||||
'add' => [
|
'add' => [
|
||||||
'type' => 'submit',
|
'type' => 'submit',
|
||||||
@ -60,7 +60,7 @@ class ManageAlbums extends HTMLController
|
|||||||
'title' => 'Manage albums',
|
'title' => 'Manage albums',
|
||||||
'no_items_label' => 'No albums meet the requirements of the current filter.',
|
'no_items_label' => 'No albums meet the requirements of the current filter.',
|
||||||
'items_per_page' => 9999,
|
'items_per_page' => 9999,
|
||||||
'index_class' => 'float-start',
|
'index_class' => 'col-md-6',
|
||||||
'base_url' => BASEURL . '/managealbums/',
|
'base_url' => BASEURL . '/managealbums/',
|
||||||
'get_data' => function($offset = 0, $limit = 9999, $order = '', $direction = 'up') {
|
'get_data' => function($offset = 0, $limit = 9999, $order = '', $direction = 'up') {
|
||||||
if (!in_array($order, ['id_tag', 'tag', 'slug', 'count']))
|
if (!in_array($order, ['id_tag', 'tag', 'slug', 'count']))
|
||||||
|
@ -67,7 +67,6 @@ class ManageAssets extends HTMLController
|
|||||||
'title' => 'Manage assets',
|
'title' => 'Manage assets',
|
||||||
'no_items_label' => 'No assets meet the requirements of the current filter.',
|
'no_items_label' => 'No assets meet the requirements of the current filter.',
|
||||||
'items_per_page' => 30,
|
'items_per_page' => 30,
|
||||||
'index_class' => 'pull_left',
|
|
||||||
'base_url' => BASEURL . '/manageassets/',
|
'base_url' => BASEURL . '/manageassets/',
|
||||||
'get_data' => function($offset = 0, $limit = 30, $order = '', $direction = 'down') {
|
'get_data' => function($offset = 0, $limit = 30, $order = '', $direction = 'down') {
|
||||||
if (!in_array($order, ['id_asset', 'title', 'subdir', 'filename']))
|
if (!in_array($order, ['id_asset', 'title', 'subdir', 'filename']))
|
||||||
|
@ -29,11 +29,12 @@ class ManageErrors extends HTMLController
|
|||||||
'form' => [
|
'form' => [
|
||||||
'action' => BASEURL . '/manageerrors/?' . Session::getSessionTokenKey() . '=' . Session::getSessionToken(),
|
'action' => BASEURL . '/manageerrors/?' . Session::getSessionTokenKey() . '=' . Session::getSessionToken(),
|
||||||
'method' => 'post',
|
'method' => 'post',
|
||||||
'class' => 'float-end',
|
'class' => 'col-md-6 text-end',
|
||||||
'buttons' => [
|
'buttons' => [
|
||||||
'flush' => [
|
'flush' => [
|
||||||
'type' => 'submit',
|
'type' => 'submit',
|
||||||
'caption' => 'Delete all',
|
'caption' => 'Delete all',
|
||||||
|
'class' => 'btn-danger',
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
@ -99,7 +100,7 @@ class ManageErrors extends HTMLController
|
|||||||
'sort_direction' => !empty($_GET['dir']) ? $_GET['dir'] : '',
|
'sort_direction' => !empty($_GET['dir']) ? $_GET['dir'] : '',
|
||||||
'no_items_label' => "No errors to display -- we're all good!",
|
'no_items_label' => "No errors to display -- we're all good!",
|
||||||
'items_per_page' => 20,
|
'items_per_page' => 20,
|
||||||
'index_class' => 'float-start',
|
'index_class' => 'col-md-6',
|
||||||
'base_url' => BASEURL . '/manageerrors/',
|
'base_url' => BASEURL . '/manageerrors/',
|
||||||
'get_count' => 'ErrorLog::getCount',
|
'get_count' => 'ErrorLog::getCount',
|
||||||
'get_data' => function($offset = 0, $limit = 20, $order = '', $direction = 'down') {
|
'get_data' => function($offset = 0, $limit = 20, $order = '', $direction = 'down') {
|
||||||
|
@ -18,7 +18,7 @@ class ManageTags extends HTMLController
|
|||||||
'form' => [
|
'form' => [
|
||||||
'action' => BASEURL . '/edittag/',
|
'action' => BASEURL . '/edittag/',
|
||||||
'method' => 'get',
|
'method' => 'get',
|
||||||
'class' => 'float-end',
|
'class' => 'col-md-6 text-end',
|
||||||
'buttons' => [
|
'buttons' => [
|
||||||
'add' => [
|
'add' => [
|
||||||
'type' => 'submit',
|
'type' => 'submit',
|
||||||
@ -65,7 +65,7 @@ class ManageTags extends HTMLController
|
|||||||
'title' => 'Manage tags',
|
'title' => 'Manage tags',
|
||||||
'no_items_label' => 'No tags meet the requirements of the current filter.',
|
'no_items_label' => 'No tags meet the requirements of the current filter.',
|
||||||
'items_per_page' => 30,
|
'items_per_page' => 30,
|
||||||
'index_class' => 'float-start',
|
'index_class' => 'col-md-6',
|
||||||
'base_url' => BASEURL . '/managetags/',
|
'base_url' => BASEURL . '/managetags/',
|
||||||
'get_data' => function($offset = 0, $limit = 30, $order = '', $direction = 'up') {
|
'get_data' => function($offset = 0, $limit = 30, $order = '', $direction = 'up') {
|
||||||
if (!in_array($order, ['id_tag', 'tag', 'slug', 'kind', 'count']))
|
if (!in_array($order, ['id_tag', 'tag', 'slug', 'kind', 'count']))
|
||||||
|
@ -18,7 +18,7 @@ class ManageUsers extends HTMLController
|
|||||||
'form' => [
|
'form' => [
|
||||||
'action' => BASEURL . '/edituser/',
|
'action' => BASEURL . '/edituser/',
|
||||||
'method' => 'get',
|
'method' => 'get',
|
||||||
'class' => 'float-end',
|
'class' => 'col-md-6 text-end',
|
||||||
'buttons' => [
|
'buttons' => [
|
||||||
'add' => [
|
'add' => [
|
||||||
'type' => 'submit',
|
'type' => 'submit',
|
||||||
@ -94,7 +94,7 @@ class ManageUsers extends HTMLController
|
|||||||
'title' => 'Manage users',
|
'title' => 'Manage users',
|
||||||
'no_items_label' => 'No users meet the requirements of the current filter.',
|
'no_items_label' => 'No users meet the requirements of the current filter.',
|
||||||
'items_per_page' => 30,
|
'items_per_page' => 30,
|
||||||
'index_class' => 'float-start',
|
'index_class' => 'col-md-6',
|
||||||
'base_url' => BASEURL . '/manageusers/',
|
'base_url' => BASEURL . '/manageusers/',
|
||||||
'get_data' => function($offset = 0, $limit = 30, $order = '', $direction = 'down') {
|
'get_data' => function($offset = 0, $limit = 30, $order = '', $direction = 'down') {
|
||||||
if (!in_array($order, ['id_user', 'surname', 'first_name', 'slug', 'emailaddress', 'last_action_time', 'ip_address', 'is_admin']))
|
if (!in_array($order, ['id_user', 'surname', 'first_name', 'slug', 'emailaddress', 'last_action_time', 'ip_address', 'is_admin']))
|
||||||
|
Loading…
Reference in New Issue
Block a user