diff --git a/application/controllers/system/TestUDF.php b/application/controllers/system/UDF.php similarity index 65% rename from application/controllers/system/TestUDF.php rename to application/controllers/system/UDF.php index 19a01c8cc..c3170d6aa 100644 --- a/application/controllers/system/TestUDF.php +++ b/application/controllers/system/UDF.php @@ -2,7 +2,7 @@ if (! defined('BASEPATH')) exit('No direct script access allowed'); -class TestUDF extends VileSci_Controller +class UDF extends VileSci_Controller { public function __construct() { @@ -24,10 +24,16 @@ class TestUDF extends VileSci_Controller $person = $this->PersonModel->load($person_id); + $udfs = $this->PersonModel->getUDFs(); + + $udfs['person_id'] = 1; + $udfs['prestudent_id'] = 1; + $udfs['caller'] = 'system/UDF?person_id=1'; + $data = array( - 'udfs' => $this->PersonModel->getUDFs() + 'udfs' => $udfs ); - $this->load->view('system/testudf', $data); + $this->load->view('system/udf', $data); } } \ No newline at end of file diff --git a/application/views/system/testudf.php b/application/views/system/testudf.php deleted file mode 100644 index 1d3c50f77..000000000 --- a/application/views/system/testudf.php +++ /dev/null @@ -1,40 +0,0 @@ -load->view("templates/header", array("title" => "UDF")); ?> - - - -
- widgetlib->UDFWidget( - array( - UDFWidgetTpl::SCHEMA_ARG_NAME => 'public', - UDFWidgetTpl::TABLE_ARG_NAME => 'tbl_person', - UDFWidgetTpl::FIELD_ARG_NAME => 'udf_schuhgroesse', - DropdownWidget::SELECTED_ELEMENT => $udfs['udf_schuhgroesse'] - ), - array('name' => 'schuhgroesseName', 'id' => 'schuhgroesseId') - ); - ?> -
- -
-
-
-
-
-
- -
- widgetlib->UDFWidget( - array( - UDFWidgetTpl::SCHEMA_ARG_NAME => 'public', - UDFWidgetTpl::TABLE_ARG_NAME => 'tbl_person', - UDFWidgetTpl::UDFS_ARG_NAME => $udfs - ) - ); - ?> -
- - - -load->view("templates/footer"); ?> \ No newline at end of file diff --git a/application/views/system/udf.php b/application/views/system/udf.php new file mode 100644 index 000000000..89ea770bb --- /dev/null +++ b/application/views/system/udf.php @@ -0,0 +1,30 @@ +load->view("templates/header", array("title" => "UDF")); ?> + + + +
+ +
+ widgetlib->UDFWidget( + array( + UDFWidgetTpl::SCHEMA_ARG_NAME => 'public', + UDFWidgetTpl::TABLE_ARG_NAME => 'tbl_person', + UDFWidgetTpl::UDFS_ARG_NAME => $udfs + ) + ); + ?> +
+ +
+ +
+ + + + +
+ + + +load->view("templates/footer"); ?> \ No newline at end of file diff --git a/config/global.config-default.inc.php b/config/global.config-default.inc.php index ba24752e3..87e51a74a 100644 --- a/config/global.config-default.inc.php +++ b/config/global.config-default.inc.php @@ -99,6 +99,9 @@ define('FAS_REIHUNGSTEST_PUNKTE', false); // Legt fest ob Messages im FAS angezeigt werden true|false define('FAS_MESSAGES',false); +// Enable (true) or disable (false) the UDF tab +define('FAS_UDF', true); + // Legt fest ob Aufnahmegruppen bei Reihungstests verwaltet werden true|false define('FAS_REIHUNGSTEST_AUFNAHMEGRUPPEN',false); diff --git a/content/student/studentenoverlay.xul.php b/content/student/studentenoverlay.xul.php index 0ef95958e..ac7ed0cfa 100644 --- a/content/student/studentenoverlay.xul.php +++ b/content/student/studentenoverlay.xul.php @@ -484,6 +484,11 @@ else if(!defined('FAS_MESSAGES') || FAS_MESSAGES==true) echo ''; ?> + + '; + ?> @@ -516,9 +521,13 @@ else ?>