1
0
Fork 0
mirror of https://github.com/Oreolek/kangana.git synced 2024-06-16 15:01:09 +03:00
kangana/application/classes/View/Course/Edit.php

16 lines
493 B
PHP
Raw Normal View History

<?php defined('SYSPATH') OR die('No direct script access.');
/**
* Course details editing view controller
**/
class View_Course_Edit extends View_Edit {
2016-10-27 09:36:38 +03:00
public function custom_controls()
{
2016-11-12 07:27:43 +02:00
return Form::select('group_id', ORM::factory('Group')->find_all()->as_array('id', 'name'), $this->model->group_id, [
'label' => I18n::translate('Group')
2016-10-27 09:10:36 +03:00
]).Form::select('type', Model_Course::type_labels(), $this->model->type, [
'label' => I18n::translate('Type')
]);
}
}