mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 20:29:29 +00:00
61317978ce
- Extended functionalities to Widget class - Only one view for the dropdown html element - Updated system/aufnahme/prestudentMultiAssign.php - Updated affected widgets
22 lines
545 B
PHP
22 lines
545 B
PHP
<?php
|
|
|
|
class Aufnahmegruppe_widget extends DropdownWidget
|
|
{
|
|
public function display($widgetData)
|
|
{
|
|
// Gruppen
|
|
$this->load->model('organisation/Gruppe_model', 'GruppeModel');
|
|
$this->GruppeModel->addOrder('beschreibung');
|
|
|
|
$this->addSelectToModel($this->GruppeModel, 'gruppe_kurzbz', 'beschreibung');
|
|
|
|
$this->setElementsArray(
|
|
$this->GruppeModel->loadWhere(array('aktiv' => true, 'aufnahmegruppe' => true)),
|
|
true,
|
|
'Select a group...',
|
|
'No aufnahmegruppe found'
|
|
);
|
|
|
|
$this->loadDropDownView($widgetData);
|
|
}
|
|
} |