Commit Graph

83 Commits

Author SHA1 Message Date
Paolo 6752dc649f Now is possible to have more than one FilterWidget in a single page 2019-07-17 11:38:47 +02:00
Paolo 9cb1062275 Added new option hideMenu to FilterWidget 2019-07-11 12:59:30 +02:00
Paolo 31caf460ec Removed extra divs from views/widgets/filter/tableDataset.php 2019-07-11 12:14:35 +02:00
Paolo 73220d8dd6 More options to hide or show filter widget settings panel 2019-07-11 09:42:13 +02:00
Paolo f0ee8b0161 Added Tabulator to FilterWidget (alpha version) 2019-07-09 11:30:16 +02:00
Manfred Kindl 69d624b841 Fixed display of dragAndDrop filters 2019-05-06 14:06:44 +02:00
Paolo fa9976ec66 - FilterWidget can represents the retrieved data with tablesorter or pivotUI
- Added new constants to FiltersLib
- Added new parameter pivotui to FHC-Header to load JS and CSS for pivotUI
- Renamed constat WIDGET_URL_TABLE_DATASET to WIDGET_URL_DATASET_TABLESORTER in FilterWidget
- Added new constat WIDGET_URL_DATASET_PIVOTUI to FilterWidget
- Added new private properties _datasetRepresentation and _datasetRepresentationOptions to FilterWidget
- Renamed FilterWidget->loadViewTableDataset to loadViewDataset
- FilterWidget->loadViewDataset loads tablesorter or pivotUI view depending on the value of property _datasetRepresentation
- FilterWidget accepts two new parameter: datasetRepresentation and datasetRepOptions
- datasetRepresentation is required
- FilterWidget stores in session the _datasetRepresentation and _datasetRepresentationOptions properties
- Adapted view views/widgets/filter/filter to use loadViewDataset
- All views using FilterWidget have been adapted to use the required parameter datasetRepresentation
- Added new constats DATASET_REP_TABLESORTER and DATASET_REP_PIVOTUI to public/js/FilterWidget.js
- Added new private property _datasetRepresentation to FHC_FilterWidget in public/js/FilterWidget.js
- Based on property _datasetRepresentation FilterWidget.js will represent the FilterWidget data with tablesorter or pivotUI
- Added new private method _renderDataset to FHC_FilterWidget in public/js/FilterWidget.js
- Renamed method _renderTableDataset to _renderDatasetTablesorter in FHC_FilterWidget in public/js/FilterWidget.js
- Added new method _renderDatasetPivotUI to FHC_FilterWidget in public/js/FilterWidget.js
- Added bew method _setDatasetRepresentation to FHC_FilterWidget in public/js/FilterWidget.js
2019-01-11 15:14:53 +01:00
Paolo 095ce57da4 - NavigationWidget header menu dropdown fixed
- NavigationWidget optimizations
2018-07-11 11:57:17 +02:00
Paolo dbd25d98bd FilterWidget: fixes and improvements 2018-06-06 17:50:28 +02:00
Paolo d63a092287 Changes to the FilterWidget III 2018-06-06 11:46:26 +02:00
Cris efebfddd58 Added fallback to default language for phrases
. added fallback to default language in PhrasesLib.php
. fixed small issues concerning right translation in PhrasesLib.php
. all other files: adding translation for Infocenter overview + details page (client- and serverside)
2018-06-06 10:00:17 +02:00
Paolo 20bffadbc4 Changes to the FilterWidget II 2018-06-04 17:23:40 +02:00
Paolo 0a71bce547 Changes to the FilterWidget 2018-05-29 18:05:22 +02:00
Andreas Österreicher 5c9c78c8f4 Converted Short open tags to php open tags 2018-05-23 16:35:45 +02:00
Paolo b3c81cf2c7 FilterWidget can display the name of the filter using phrases system 2018-05-23 15:44:03 +02:00
Paolo 13beae23cc - Added public/css/FilterWidget.css and public/css/NavigationWidget.css to define CSS for Filter and Navigation widgets
- Added public/js/FilterWidget.js and public/js/NavigationWidget.js to collect all the JS for Filter and Navigation widgets
- Added filterwidget and navigationwidget paramaters to FHC-Header to include the new CSS and JS for Filter and Navigation widgets
- Removed all CSS and JS from the views used from Filter and Navigation widgets
- Added method _getFilterUniqueId to controller Filters to generate a unique id for a filter based on fhc_controller_id and the current page
- Adapted the code in controller Filters to use _getFilterUniqueId
- Added method _getFilterUniqueId to widget FilterWidget to generate a unique id for a filter based on fhc_controller_id and the current page
- Adapted the code in widget FilterWidget to use _getFilterUniqueId
- Removed fhc_controller_id from menu generation in InfoCenter controller
- InfoCenter controller now gives as parameter fhc_controller_id to view infocenterDetails
- InfoCenter controller now gives as parameter fhc_controller_id to various redirect
- Views infocenter, infocenterData, infocenterDetails and infocenterFreigegeben:
	- including new JS and CSS to work with Navigation and Filter widgets
	- including AjaxLib (required by FilterWidget.js and NavigationWidget.js)
	- using fhc_controller_id in Details and unlockPerson links
- fhc_controller_id in not anymore a parameter for FilterWidget, adapted the code where FilterWidget is called
- AjaxLib: renamed method _getUrlParameter to getUrlParameter
- Removed function getUrlParameter from public/js/infocenter/infocenterDetails.js, now uses the method from AjaxLib
- Added fhc_controller_id where needed into public/js/infocenter/infocenterDetails.js
- public/js/infocenter/infocenterPersonDataset.js now uses getUrlParameter from AjaxLib
- Added paramater filter_page in infocenterPersonDataset.js when calling Filters/rowNumber
2018-05-18 12:10:14 +02:00
Cris 1254e8d618 Added translation using phrases
. added translation functionality by
-- adding loadPhrases-method in Controllers
-- replacing hardcoded html-text with $this->p->t(...)
2018-05-09 12:36:35 +02:00
Paolo dba08d4d9e - Added the feature to the Infocenter controller to generate a unique identifier for each call of itself, and to keep using the identifier for the next calls in the same browser/tab
- Added the feature to the FilterWidget to use this identifier to create a different session for each FilterWidget
2018-05-03 12:33:01 +02:00
Paolo 999b4040a4 Moved JS function refreshSideMenu from views/widgets/filter/filter.php to include/js/infocenter/infocenterPersonDataset.js and adapted the code 2018-04-24 18:34:07 +02:00
Andreas Österreicher 0ea5d53b0a Replaced base_url with site_url 2018-04-13 14:10:09 +02:00
Andreas Österreicher 1b11ed75db - Moved Menu collapse Item to the bottom of the Menu
- Added Tooltip to collapse Icons
2018-04-13 14:09:21 +02:00
Paolo ec12fb21f2 InfoCenter:
- Renamed button Apply to "Apply filter"
- Button "Apply filter" same width of button "Save filter"
2018-04-12 12:24:16 +02:00
Paolo 307c8a44f1 - Removed parameters hideHeader and hideSave from system/infocenter/infocenterData (they do not REALLY need)
- Now the JS function renderSelectedFilterFields can recognize the metadata text type
- Filter options panel beautified
2018-04-12 11:58:10 +02:00
Paolo f9ac16e7b9 FilterWidget bugfix
- Now is possible to remove selected filters in "Filter options"
- Changed the class of the delte button from remove-filter (already used) to remove-selected-filter
- Added click event to remove-selected-filter class and the ajax call
2018-04-11 13:45:53 +02:00
Paolo 546b3bfef3 Bugfix: removed redundant event binding for element remove-filter in view selecteFilters 2018-03-23 11:03:46 +01:00
Andreas Österreicher 00c94778c1 Fixed Problem with Personal Filters 2018-03-22 10:03:06 +01:00
alex 16631d7ad9 quickfix for collapsing menu - add click events only after ajax call execution (asynchronity can be a bitch...) 2018-03-14 11:28:57 +01:00
Paolo dd610c83d9 - Added navigation.php in application/config to configure menus used by NavigationWidget
- Addded controller system/Navigation to retrive menus via ajax
- Renamed method _setNavigationMenuArray to setNavigationMenuArray and set as public in system/infocenter/InfoCenter
- Now the InfoCenter menu is stored in the session
- The menu is generated by the widget NavigationWidget via JS
- No need anymore to give as parameters to the views the menu arrays
2018-03-09 15:14:16 +01:00
Andreas Österreicher 67d7deeffc Infocenter Spalten angepasst 2018-03-02 11:35:42 +01:00
Paolo 3e990c620f FilterWidget -> Header -> Dropdowns shows only the columns that are not displayed yet 2018-03-01 14:37:43 +01:00
Paolo 9a3a33feb0 FilterWidget fixed drag&drop 2018-02-28 14:08:20 +01:00
Paolo c66ed6dd8f FilterWidget header uses bootstrap CSS now 2018-02-27 19:31:36 +01:00
Paolo 7869113396 - FilterWidget: bugfixes
- Added column StgAbgeschickt to formatRaw in system/infocenter/infocenterData.php
2018-02-27 18:48:21 +01:00
Paolo b8c1aae251 Changed FilterWidget to be more responsive with Javascript 2018-02-27 18:37:16 +01:00
Paolo 72bb40e786 - Added method escapeLike to DB_Model to escape strings for LIKE operator
- Added JS include jqueryui to InfoCenter
- Added left join to system.tbl_person_lock in infocenterData.php
- Added field LockDate to InfoCenter filter
- Added parameter markRow to InfoCenter filter
- Added DragNDrop to FilterWidget to sort/remove the selected filter fields
- FilterWidget now display the name of the loaded filter if available
- Added the property "name" to the jsonb of filters to display the name of the loaded filter
- Added the static method displayFilterName to the FilterWidget to display the name of the loaded filter
- The collapsible panel in FilterWidget now shows/hides the fields selection, the filter operators and the inputs to save the custom filter
- The GUI remembers if the collapsible panel should be closed or open
- Added the "Apply" button to the filter operators
- Added the markRow parameter to the FilterWidget, used to mark a row if one or more conditions are matched
- Added the alternativeMarkRowClass to use a different class to mark a row
- Added the public static function markRow to the FilterWidget
2018-02-21 17:48:03 +01:00
Paolo c2b328c69f FilterWidget: if "is set" is chosen in the operation dropdown, then the operation value field and the option field will be hidden 2018-02-13 13:52:45 +01:00
Paolo 0a3b546627 Added functionality to hide or display column selection and filter selection
in FilterWidget
2018-02-12 14:06:39 +01:00
Paolo 2d5d1eb35e Added Apply button to FilterWidget 2018-02-12 12:00:09 +01:00
Paolo bc372a88e4 Merge branch 'master' of https://github.com/FH-Complete/FHC-Core 2018-02-09 18:21:31 +01:00
alex fe5e5cc313 added lines with actions for multiple persons in infocenter uebersicht (send message, select all, number of rows), message with no sender sends from logged user, layout tweaks writemessage page 2018-02-09 17:00:16 +01:00
Paolo c57c953eaa - Added methods deleteCustomFilter and _fillCustomFilters to controller InfoCenter
- Added method deleteCustomFilter to model Filters_model
- Changed parameter filterId to filter_id in FilterWidget, infocenterData
- Changed CSS and JS in views/widgets/navigationMenu.php to allow two links in one menu item
- Changed NavigationMenuWidget to allow two links in one menu item
2018-02-09 15:18:44 +01:00
Paolo 7af890b44c - Better code in NavigationMenuWidget::printNavItem
- Custom filters are now loaded in InfoCenter
- filter_kurzbz is automatically generated
- Now is saved the filter description
- filter description is the same for every language
- Added method getCustomFiltersList to system/Filters_model.php
2018-02-07 13:36:54 +01:00
Paolo 82f5584385 - Added a new parameter to FilterWidget called columnsAliases to specify aliases for the columns
- If this parameter is given to the FilterWidget than it is used to display the name of the columns
2018-02-06 17:07:54 +01:00
alex c7008c9ccd added Bewerbung Zugang, bewerbung abgeschickt, collapsible menu, Statusgrund entering is compulsory, restyled (button/text positions, colors, zebra widget of tablesorter) 2018-01-30 16:52:43 +01:00
Paolo 1ad45e4802 - Renamed widget FHC_navheader as NavigationHeaderWidget
- Renamed widget FHC_navigation as NavigationMenuWidget
- Added new widget NavigationWidget to create header and menu
- Renamed view fhcnavheader as navigationHeader
- Renamed view fhcnavigation as navigationMenu
- Added new view navigation
- InfoCenter controller creates the header array
- NavigationHeaderWidget print the header items from an array
2018-01-24 15:04:08 +01:00
Paolo 8b28b48ff9 - Merged controller system/infocenter/InfoCenter.php into system/infocenter/InfocenterDetails.php
- Removed controller application/controllers/system/infocenter/InfocenterDetails.php
- Removed method _getFilterList from controller system/infocenter/InfoCenter.php
- Added method _setNavigationMenuArray to controller system/infocenter/InfoCenter.php to generate the array for the left menu
- Added public method getFilterList to model Filters_model
- Removed view application/views/widgets/navigation.php
- Removed widget application/widgets/navigation.php
- Widget application/widgets/FHC_navigation.php now is usable to print any menu from an array
2018-01-23 18:49:09 +01:00
alex 9419fe8c3d Added widgets FHC navigation and FHC navheader (as seen in sb admin2 template), bootstrapped filter page, added filter widget to infocenter table 2018-01-18 16:20:59 +01:00
Paolo 6aeb96818f - Added new includes to FHC-Header.php
- Now FilterWidget is not rendering an entire page but only a div
- Added view infocenterData to show the filter itself
- FilterWidget now is using the new FHC-Header
2017-12-19 10:53:02 +01:00
Paolo aeae34f4e0 - Added parameter hideSave to hide save button and fields
- Correctly saves personal filters
2017-12-13 13:51:38 +01:00
Paolo e6aba9a3e2 - Renamed controllers/system/Test.php to controllers/system/TestFilterWidget.php
- Fixed problem with table sorter in views/templates/header.php
- Added checkboxes functionality to FilterWidget to render automatically the select column
- Added additionalColumns functionality to add additional columns to the dataset table
- Added formatRaw functionality to give an anonymous function as parameter to format every single raw of the dataset table
- The filter can be loaded from DB also by filter_id
2017-12-05 15:04:07 +01:00