Commit Graph

12123 Commits

Author SHA1 Message Date
Paolo f126bca708 - New directory application/widgets/html/ for widgets to render HTML
elements
- All the widgets classes to render HTML elements moved from WidgetLib
to application/widgets/html/
- New directory application/widgets/udf/ for widgets to render UDF
- All the UDF widgets classes moved from WidgetLib to
application/widgets/udf/
- HTMLWidget is now the main class to render HTML widget
- UDFWidget is now the mail class to render UDF
- Removed UDFWidgetTpl
- Added function loadResource to fhc helper
- Changed method widget of WidgetLib (using loadResource)
- Moved UDFWidget method from WidgetLib to UDFLib
- Slimmed down class Widget present in WidgetLib
- Controller system/UDf now uses UDFLib
- View application/views/system/udf.php now uses UDFLib
- Updated udf and html widgets to adapt them to the new libs
2017-08-11 18:41:21 +02:00
Paolo d7bed89869 - Added class label[udf-required=true]::after to skin/widgets.class
- Added attribute udf-required to tag label in the HTML components widges
2017-08-09 17:10:10 +02:00
Paolo 226eda73e5 - Added comments to DB_Model
- Method _manageUDFs using a temp variable to store result from _validateUDFs
2017-08-09 16:20:10 +02:00
Paolo 973b74ce7e $validate variable reset on every loop 2017-08-09 15:55:32 +02:00
Paolo 9ee1820ac3 - Not to check the required attribute for them all together, but only if the UDF is present in the given parameters.
Update of UDF should work in the same way as the update of regular columns.
- Required rules:
    - If required === false && value to be saved == (null || false) => validation avoided
    - If required == false && value to be saved != null => validation performed
    - If required == true => validation performed && value cannot be null
    - If required == true && value to be saved == (null || false) => raise error: required field
    - If raised error required field => validation is not performed
2017-08-09 15:21:19 +02:00
Paolo c351ef781a Changed method getAppliedStudiengangFromNow in Studiengang_model.
Now also takes into consideration the current semester
2017-08-08 11:17:33 +02:00
Paolo a56412d687 Merge branch 'udf' 2017-08-07 16:44:03 +02:00
Paolo 35e8df3b22 Added method getAppliedStudiengangFromNow to controller Studiengang.
This method can retrive all the applied studiengang for a person from
the current studiensemester
2017-08-07 15:15:08 +02:00
kindlm a3e63a99b8 Merge branch 'master' of https://github.com/FH-Complete/FHC-Core 2017-08-07 11:34:16 +02:00
kindlm ed1d7ae0b0 lehrauftrag.xml.php $fb_arr wird nun auch mit oe_kurzbz befüllt 2017-08-07 11:32:04 +02:00
Paolo db63dd1dd0 - Added method dropdownListValuesToString to udf.class.php
- Added enum element to UDF definition in method _getUDFDefinition
- Exports now show the values of dropdowns and not the id
2017-08-07 11:18:41 +02:00
Paolo 2edcfae0af - Added method existsUDF
- Added comments
2017-08-04 15:12:36 +02:00
Paolo f5d3f20ec7 Merge branch 'master' into udf 2017-08-03 15:37:37 +02:00
Paolo d7d550d53f - Multipledropdown: fixed problem to see and to save more selected
elements
- Dropdown: reset selected element to null
2017-08-03 15:20:32 +02:00
alex 9e14e39b66 Added Comments in Controllers
called html_escape function for all textfields before saving (against html injection)
Reformatted
Fixed Studienjahr Dropdown prefill in Studiensemester view
2017-08-03 13:48:10 +02:00
Paolo 68189bb7a5 - If required == false and a null value is given for a UDF, then no
validation is performed
- No validation is performed for checkboxes
- Better workaround in UDF_Model
2017-08-02 17:02:39 +02:00
Paolo dda920dd58 Fixed URL without double slashes 2017-08-02 16:56:51 +02:00
Andreas Oesterreicher 42960ffe20 Moodle-Integration aus FHComplete Core entfernt und in eigenes Addon
ausgelagert.
Support für Moodle 1.9 entfernt
2017-08-02 14:05:31 +02:00
Paolo 65be806e91 Merge branch 'master' into udf 2017-08-01 18:31:30 +02:00
Paolo 66de1e18f8 - Removed /core from URL
- If UDf are not set in DB UDF view will not display them
- Removed placeholder from multiple dropdown widget
- Dropdown widget has null value as placeholder
- Added permission system/udf to checksystem
2017-08-01 18:25:23 +02:00
Andreas Oesterreicher 5d0dcb6e4a Kommentar ergänzt 2017-08-01 16:54:43 +02:00
alex afd1667645 GUI für Studiensemester und Studienjahr hinzugefügt 2017-08-01 14:50:19 +02:00
Andreas Oesterreicher b7da7b86f9 PHP7 compatibility fix 2017-08-01 10:45:00 +02:00
Paolo bba27f75e0 Merge branch 'master' into udf 2017-07-28 18:41:35 +02:00
Paolo 59045e1136 Added private method _fillMissingChkboxUDF to UDF_model.
It checks if UDF checkboxes are NOT posted and sets theirs values to
false
2017-07-28 18:36:08 +02:00
Paolo 0ff635f5ea - Added Zusatzfelder tab for UDF in FAS, students and employees
- UDF for person and prestudent only
- Added CSS for widgets
- Fixed checkbox
- Improved aesthetics of widgets
2017-07-28 17:25:27 +02:00
Paolo 994c4e1d36 If a UDF is of type checkbox, convert the string value to a boolean 2017-07-28 17:21:01 +02:00
Paolo 0d9e5cc7a0 It checks in the index if $person_id and $prestudent_id parameters are
given. If they are given it loads the respective data.
2017-07-28 17:07:01 +02:00
Paolo 28be99c952 In case a table is updated and UDF are present in that table,
the method _manageUDFs will preserve the UDF values that
are NOT given as parameters.
Updates only the wanted UDF, without overwriting the others.
2017-07-28 17:00:42 +02:00
Paolo 6afd71876f Added UDF to FAS -> export 2017-07-28 16:08:36 +02:00
Andreas Oesterreicher 0bd66c37b4 Problem beim Erstellen von Dokumenten mit alten unoconv Versionen
behoben bei denen es zu Berechtigungsproblemen bei der Erstellung der
Dokumente kommt
2017-07-28 09:33:27 +02:00
Andreas Oesterreicher dfe476799b Berechtigungspruefung korrigiert 2017-07-28 09:30:22 +02:00
Andreas Oesterreicher b538b82946 SD-Tools Link im Vilesci aus Core entfernt 2017-07-28 08:31:30 +02:00
Andreas Oesterreicher cd89b8ce75 Addons koennen jetzt Menuepunkte im Vilesci hinzufuegen und aendern 2017-07-28 08:25:59 +02:00
Andreas Oesterreicher 61b86f06e7 Anzeige bei fehlendem CI_ENV optimiert 2017-07-26 16:30:10 +02:00
Andreas Oesterreicher ad99ba9044 Environment check erweitert 2017-07-26 16:16:44 +02:00
Andreas Oesterreicher 4ad335dc9a Funktion erweitert zur Suche nach Berechtigungen zu Organisationseinheit 2017-07-24 15:30:57 +02:00
Paolo 7859b07e70 Use extended studens export for both student export commands 2017-07-24 14:25:21 +02:00
Andreas Oesterreicher 4ce104a738 Fehler behoben wodurch temporäre Dateien nach der Dokumentenerstellung
nicht korrekt aufgeräumt wurden
2017-07-21 15:46:46 +02:00
Andreas Oesterreicher fa7115d880 Beim Erstellen von Moodle Kursen wird nun automatisch das Ende Datum
gesetzt (=Semesterende) damit in der neuen Kursübersicht vergangene und
aktuelle Kurse korrekt angezeigt werden
2017-07-21 15:26:27 +02:00
Paolo 6573d46525 Merge branch 'master' into udf 2017-07-21 15:08:50 +02:00
Paolo dab6515038 - Added widgets.css
- Better widgets HTML format
- Changed required attribute to udf-required
2017-07-21 15:02:04 +02:00
Andreas Oesterreicher df7f9d926a Beim Eintragen des Urlaubs wird vor dem Speichern geprüft ob eine
gültige Vertretung eingetragen wurde und ggf eine Fehlermeldung
angezeigt.
2017-07-20 10:40:43 +02:00
Andreas Oesterreicher 6957051c3b Infoscreen umbenannt auf Informationsbildschirm da es sich um einen
geschützten Begriff handelt
2017-07-19 15:28:15 +02:00
Andreas Oesterreicher b8b5b95251 Added additional parameter checks 2017-07-19 15:25:17 +02:00
Andreas Oesterreicher 88befdee6c Added google.php to gitignore 2017-07-18 17:23:06 +02:00
Andreas Oesterreicher 4603befefc Added API calls to get Prestudents according to its status 2017-07-18 17:19:53 +02:00
Paolo b9c846f18f FAS UDF tab 2017-07-18 12:48:47 +02:00
Paolo de2c9703de UDF bugfixes 2017-07-18 12:48:20 +02:00
kindlm 0a7fc53568 Merge branch 'master' of https://github.com/FH-Complete/FHC-Core 2017-07-14 11:47:27 +02:00