diff --git a/application/views/lehre/anrechnung/createAnrechnung.php b/application/views/lehre/anrechnung/createAnrechnung.php
new file mode 100644
index 000000000..67665e8de
--- /dev/null
+++ b/application/views/lehre/anrechnung/createAnrechnung.php
@@ -0,0 +1,171 @@
+load->view(
+ 'templates/FHC-Header',
+ array(
+ 'title' => $this->p->t('anrechnung', 'neueAnrechnung'),
+ 'jquery' => true,
+ 'jqueryui' => true,
+ 'bootstrap' => true,
+ 'fontawesome' => true,
+ 'ajaxlib' => true,
+ 'dialoglib' => true,
+ 'tabulator' => true,
+ 'tablewidget' => true,
+ 'phrases' => array(
+ 'global' => array(
+ 'anerkennungNachgewiesenerKenntnisse',
+ 'antragWurdeGestellt',
+ 'antragBereitsGestellt'
+ ),
+ 'ui' => array(
+ 'hochladen'
+ ),
+ 'lehre' => array(
+ 'studiensemester',
+ 'studiengang',
+ 'lehrveranstaltung'
+ )
+ ),
+ 'customJSs' => array(
+ 'public/js/bootstrapper.js',
+ 'public/js/lehre/anrechnung/createAnrechnung.js'
+ ),
+ 'customCSSs' => array(
+ 'public/css/lehre/anrechnung.css'
+ )
+ )
+);
+?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ load->view('lehre/anrechnung/createAnrechnungData.php'); ?>
+
+
+
+
+
+
+
+
+
+
diff --git a/application/views/lehre/anrechnung/createAnrechnungData.php b/application/views/lehre/anrechnung/createAnrechnungData.php
new file mode 100644
index 000000000..cfb453709
--- /dev/null
+++ b/application/views/lehre/anrechnung/createAnrechnungData.php
@@ -0,0 +1,83 @@
+>' . $LANGUAGE_INDEX . ',
+ array_to_json(zgv.bezeichnung::varchar[])->>' . $LANGUAGE_INDEX . '
+ ) AS zgv
+ FROM public.tbl_prestudent
+ LEFT JOIN bis.tbl_zgv zgv USING (zgv_code)
+ LEFT JOIN bis.tbl_zgvmaster zgvmaster USING (zgvmas_code)
+ WHERE prestudent_id = pst.prestudent_id
+ ) AS zgv
+ FROM public.tbl_prestudent pst
+ JOIN public.tbl_prestudentstatus pststatus USING (prestudent_id)
+ JOIN public.tbl_person person USING (person_id)
+ JOIN public.tbl_student student USING (prestudent_id)
+ JOIN public.tbl_benutzer benutzer ON benutzer.uid = student.student_uid
+ JOIN public.tbl_studiengang stg ON stg.studiengang_kz = pst.studiengang_kz
+ WHERE pststatus.studiensemester_kurzbz = \'' . $STUDIENSEMESTER . '\'
+ AND pst.studiengang_kz IN (' . $STUDIENGAENGE_ENTITLED . ')
+ AND benutzer.aktiv = true
+ ORDER BY "stg_bezeichnung", ausbildungssemester, nachname
+';
+
+$filterWidgetArray = array(
+ 'query' => $query,
+ 'tableUniqueId' => 'createAnrechnung',
+ 'requiredPermissions' => 'lehre/anrechnung_genehmigen',
+ 'datasetRepresentation' => 'tabulator',
+ 'columnsAliases' => array(
+ 'prestudent_id',
+ 'person_id',
+ 'studienplan_id',
+ 'studiengang_kz',
+ ucfirst($this->p->t('lehre', 'studiengang')),
+ 'Semester',
+ ucfirst($this->p->t('person', 'nachname')),
+ ucfirst($this->p->t('person', 'vorname')),
+ ucfirst($this->p->t('global', 'zgv'))
+ ),
+ 'datasetRepOptions' => '{
+ height: 300,
+ layout: "fitColumns", // fit columns to width of table
+ persistentLayout:true,
+ autoResize: false, // prevent auto resizing of table (false to allow adapting table size when cols are (de-)activated
+ headerFilterPlaceholder: " ",
+ index: "prestudent_id", // assign specific column as unique id (important for row indexing)
+ selectable: 1, // allow row selection
+ selectablePersistence:false, // deselect previously selected rows when table is filtered, sorted or paginated
+ rowSelected: function(row) {
+ func_rowSelected(row);
+ },
+ rowSelectionChanged:function(data, rows){
+ func_rowSelectionChanged(data, rows);
+ },
+ tableWidgetHeader: false
+ }',
+ 'datasetRepFieldsDefs' => '{
+ prestudent_id: {visible: false, headerFilter:"input"},
+ person_id: {visible: false, headerFilter:"input"},
+ studienplan_id: {visible: false, headerFilter:"input"},
+ studiengang_kz: {visible: false, headerFilter:"input"},
+ stg_bezeichnung: {headerFilter:"input"},
+ ausbildungssemester: {headerFilter:"input"},
+ nachname: {headerFilter:"input"},
+ vorname: {headerFilter:"input"},
+ zgv: {headerFilter:"input"}
+ }'
+);
+
+echo $this->widgetlib->widget('TableWidget', $filterWidgetArray);
\ No newline at end of file
diff --git a/public/css/lehre/anrechnung.css b/public/css/lehre/anrechnung.css
new file mode 100644
index 000000000..36956d79c
--- /dev/null
+++ b/public/css/lehre/anrechnung.css
@@ -0,0 +1,7 @@
+.select-w500 {
+ width: 500px;
+}
+
+.pl-15 {
+ padding-left: 15px !important;
+}
\ No newline at end of file
diff --git a/system/phrasesupdate.php b/system/phrasesupdate.php
index 80a9c799f..d60cb8b4c 100644
--- a/system/phrasesupdate.php
+++ b/system/phrasesupdate.php
@@ -10690,6 +10690,66 @@ array(
)
)
),
+ array(
+ 'app' => 'core',
+ 'category' => 'anrechnung',
+ 'phrase' => 'neueAnrechnung',
+ 'insertvon' => 'system',
+ 'phrases' => array(
+ array(
+ 'sprache' => 'German',
+ 'text' => "Neue Anrechnung",
+ 'description' => '',
+ 'insertvon' => 'system'
+ ),
+ array(
+ 'sprache' => 'English',
+ 'text' => "New Exemption",
+ 'description' => '',
+ 'insertvon' => 'system'
+ )
+ )
+ ),
+ array(
+ 'app' => 'core',
+ 'category' => 'global',
+ 'phrase' => 'antragAnlegen',
+ 'insertvon' => 'system',
+ 'phrases' => array(
+ array(
+ 'sprache' => 'German',
+ 'text' => "Antrag anlegen",
+ 'description' => '',
+ 'insertvon' => 'system'
+ ),
+ array(
+ 'sprache' => 'English',
+ 'text' => "Create Application",
+ 'description' => '',
+ 'insertvon' => 'system'
+ )
+ )
+ ),
+ array(
+ 'app' => 'core',
+ 'category' => 'ui',
+ 'phrase' => 'keineLVzugeteilt',
+ 'insertvon' => 'system',
+ 'phrases' => array(
+ array(
+ 'sprache' => 'German',
+ 'text' => "Dem Studierenden sind keine Lehrveranstaltungen zugeteilt.",
+ 'description' => '',
+ 'insertvon' => 'system'
+ ),
+ array(
+ 'sprache' => 'English',
+ 'text' => "No courses assigned to this student yet.",
+ 'description' => '',
+ 'insertvon' => 'system'
+ )
+ )
+ ),
);