mirror of
https://github.com/Oreolek/kangana.git
synced 2024-05-24 11:58:11 +03:00
16 lines
493 B
PHP
16 lines
493 B
PHP
<?php defined('SYSPATH') OR die('No direct script access.');
|
|
|
|
/**
|
|
* Course details editing view controller
|
|
**/
|
|
class View_Course_Edit extends View_Edit {
|
|
public function custom_controls()
|
|
{
|
|
return Form::select('group_id', ORM::factory('Group')->find_all()->as_array('id', 'name'), $this->model->group_id, [
|
|
'label' => I18n::translate('Group')
|
|
]).Form::select('type', Model_Course::type_labels(), $this->model->type, [
|
|
'label' => I18n::translate('Type')
|
|
]);
|
|
}
|
|
}
|