mirror of
https://github.com/Oreolek/kangana.git
synced 2024-06-16 15:01:09 +03:00
Display group id in course editing
This commit is contained in:
parent
0ea30dc1d2
commit
6762f6afd0
|
@ -6,7 +6,7 @@
|
||||||
class View_Course_Edit extends View_Edit {
|
class View_Course_Edit extends View_Edit {
|
||||||
public function custom_controls()
|
public function custom_controls()
|
||||||
{
|
{
|
||||||
return Form::select('group_id', ORM::factory('Group')->find_all()->as_array('id', 'name'), NULL, [
|
return Form::select('group_id', ORM::factory('Group')->find_all()->as_array('id', 'name'), $this->model->group_id, [
|
||||||
'label' => I18n::translate('Group')
|
'label' => I18n::translate('Group')
|
||||||
]).Form::select('type', Model_Course::type_labels(), $this->model->type, [
|
]).Form::select('type', Model_Course::type_labels(), $this->model->type, [
|
||||||
'label' => I18n::translate('Type')
|
'label' => I18n::translate('Type')
|
||||||
|
|
Loading…
Reference in a new issue