[
'id' => 'topButtons',
'order' => -1,
- 'template' => 'buttons',
+ 'template' => 'buttons',
'buttons' => [
'add-event' => [
'content' => 'Add Event',
],
],
[
- 'id' => 'quickLinks',
- 'order' => 0,
- 'template' => 'quickLinks',
- 'quickLinks' => [
+ 'id' => 'quickLinks',
+ 'order' => 0,
+ 'template' => 'quickLinks',
+ 'quickLinks' => [
'dashboard' => [
- 'content' => 'Dashboard',
- 'url' => $eventsIndexPage . "&option=dashboard",
+ 'content' => 'Dashboard',
+ 'url' => $eventsIndexPage . "&option=dashboard",
],
'search' => [
- 'content' => 'Advanced Search',
- 'url' => $eventsIndexPage . "&option=search",
+ 'content' => 'Advanced Search',
+ 'url' => $eventsIndexPage . "&option=search",
],
'settings' => [
- 'content' => 'Settings',
- 'url' => '#set',
+ 'content' => 'Settings',
+ 'url' => '#set',
]
],
],
[
- 'id' => 'entityAmount',
- 'order' => 1,
- 'template' => 'entityAmount',
- 'table' => $eventsTable,
- 'url' => $eventsIndexPage . "&option=search",
+ 'id' => 'entityAmount',
+ 'order' => 1,
+ 'template' => 'entityAmount',
+ 'table' => $eventsTable,
+ 'url' => $eventsIndexPage . "&option=search",
],
[
- 'id' => 'textSearch',
+ 'id' => 'textSearch',
'order' => 2,
- 'template' => 'textSearch',
+ 'template' => 'textSearch',
'entityID' => 'event',
'table' => $eventsTable,
'fields' => "id, name, image",
'where' => 'name'
],
[
- 'id' => 'active',
- 'title' => "Active events",
- 'slug' => "active-events",
- 'order' => 3,
- 'template' => 'list',
+ 'id' => 'active',
+ 'title' => "Active events",
+ 'slug' => "active-events",
+ 'order' => 3,
+ 'template' => 'list',
'entityID' => 'eventID',
- 'table' => $eventsTable,
- 'fields' => "id, title, ref_dest",
- 'where' => 'status='.$this->config['status_numb']['Active'] . '',
+ 'table' => $eventsTable,
+ 'fields' => "id, title, ref_dest",
+ 'where' => 'status='.$this->config['status_numb']['Active'] . '',
'resultUrl' => $eventsEditPage,
],
[
- 'id' => 'pending',
- 'title' => "Pending Events",
- 'slug' => "pending-events",
- 'order' => 3,
- 'template' => 'list',
+ 'id' => 'pending',
+ 'title' => "Pending Events",
+ 'slug' => "pending-events",
+ 'order' => 3,
+ 'template' => 'list',
'entityID' => 'eventID',
- 'table' => $eventsTable,
- 'fields' => "id, title, ref_dest",
- 'where' => 'status='.$this->config['status_numb']['Pending'] . '',
+ 'table' => $eventsTable,
+ 'fields' => "id, title, ref_dest",
+ 'where' => 'status='.$this->config['status_numb']['Pending'] . '',
'resultUrl' => $eventsEditPage,
- ],
- [
- "id" => 'expired',
- 'title' => "Expired Events",
- 'slug' => "expired-events",
- 'order' => 4,
- 'template' => 'list',
- 'entityID' => 'eventID',
- 'table' => $eventsTable,
- 'fields' => "id, title, ref_dest",
- // 'fields' => [
- // 'id',
- // 'title',
- // 'ref_dest',
- // ],
- //'where' => 'status = '.$this->config['status_numb']['Expired']
]
]
];