<?php defined('C5_EXECUTE') or die(_("Access Denied.")); $dh = Loader::helper('concrete/dashboard'); $ih = Loader::helper('concrete/interface'); echo $dh->getDashboardPaneHeaderWrapper('Colors', false, 'span8 offset2'); Loader::library('crud_display_table', 'automobiles'); $table = new CrudDisplayTable($this); $table->addColumn('name'); $table->addAction('colors_edit', 'right', 'Edit', 'icon-pencil'); $table->addAction('colors_duplicate', 'right', 'Duplicate', 'icon-share-alt'); $table->addAction('colors_delete', 'right', 'Delete', 'icon-trash'); $table->display($colors); echo '<p>' . $ih->button('Add New...', $this->action('colors_add'), false, 'primary') . '</p>'; echo '<hr>'; echo '<p>' . $ih->button('< Back to Misc. Settings', $this->action('view'), false) . '</p>'; echo $dh->getDashboardPaneFooterWrapper();
<?php defined('C5_EXECUTE') or die(_("Access Denied.")); $dh = Loader::helper('concrete/dashboard'); $ih = Loader::helper('concrete/interface'); echo $dh->getDashboardPaneHeaderWrapper('Body Types', false, 'span8 offset2'); Loader::library('crud_display_table', 'automobiles'); $table = new CrudDisplayTable($this); $table->addColumn('name'); $table->addAction('body_types_sort', 'left', 'Drag To Sort', 'icon-resize-vertical', true); $table->addAction('body_types_edit', 'right', 'Edit', 'icon-pencil'); $table->addAction('body_types_duplicate', 'right', 'Duplicate', 'icon-share-alt'); $table->addAction('body_types_delete', 'right', 'Delete', 'icon-trash'); $table->display($body_types); echo '<p>' . $ih->button('Add New...', $this->action('body_types_add'), false, 'primary') . '</p>'; echo '<hr>'; echo '<p>' . $ih->button('< Back to Misc. Settings', $this->action('view'), false) . '</p>'; echo $dh->getDashboardPaneFooterWrapper();