| @@ 15-21 (lines=7) @@ | ||
| 12 | { |
|
| 13 | public $_errors = array(); |
|
| 14 | ||
| 15 | public function __viewIndex($resource_type) |
|
| 16 | { |
|
| 17 | parent::__viewIndex(ResourceManager::RESOURCE_TYPE_DS); |
|
| 18 | ||
| 19 | $this->setTitle(__('%1$s – %2$s', array(__('Data Sources'), __('Symphony')))); |
|
| 20 | $this->appendSubheading(__('Data Sources'), Widget::Anchor(__('Create New'), Administration::instance()->getCurrentPageURL().'new/', __('Create a new data source'), 'create button', null, array('accesskey' => 'c'))); |
|
| 21 | } |
|
| 22 | ||
| 23 | // Both the Edit and New pages need the same form |
|
| 24 | public function __viewNew() |
|
| @@ 15-21 (lines=7) @@ | ||
| 12 | { |
|
| 13 | public $_errors = array(); |
|
| 14 | ||
| 15 | public function __viewIndex($resource_type) |
|
| 16 | { |
|
| 17 | parent::__viewIndex(ResourceManager::RESOURCE_TYPE_EVENT); |
|
| 18 | ||
| 19 | $this->setTitle(__('%1$s – %2$s', array(__('Events'), __('Symphony')))); |
|
| 20 | $this->appendSubheading(__('Events'), Widget::Anchor(__('Create New'), Administration::instance()->getCurrentPageURL().'new/', __('Create a new event'), 'create button', null, array('accesskey' => 'c'))); |
|
| 21 | } |
|
| 22 | ||
| 23 | public function __viewNew() |
|
| 24 | { |
|