Implement basic album management.
This commit is contained in:
@@ -15,6 +15,17 @@ class ManageAlbums extends HTMLController
|
||||
throw new NotAllowedException();
|
||||
|
||||
$options = [
|
||||
'form' => [
|
||||
'action' => BASEURL . '/editalbum/',
|
||||
'method' => 'get',
|
||||
'class' => 'floatright',
|
||||
'buttons' => [
|
||||
'add' => [
|
||||
'type' => 'submit',
|
||||
'caption' => 'Add new album',
|
||||
],
|
||||
],
|
||||
],
|
||||
'columns' => [
|
||||
'id_album' => [
|
||||
'value' => 'id_tag',
|
||||
@@ -49,6 +60,7 @@ class ManageAlbums extends HTMLController
|
||||
'title' => 'Manage albums',
|
||||
'no_items_label' => 'No albums meet the requirements of the current filter.',
|
||||
'items_per_page' => 9999,
|
||||
'index_class' => 'floatleft',
|
||||
'base_url' => BASEURL . '/managealbums/',
|
||||
'get_data' => function($offset = 0, $limit = 9999, $order = '', $direction = 'up') {
|
||||
if (!in_array($order, ['id_tag', 'tag', 'slug', 'count']))
|
||||
|
||||
Reference in New Issue
Block a user