* N°6132 - disable tabs dynamically
* Apply suggestions from code review
JS cleanup after review
Co-authored-by: Molkobain <lajarige.guillaume@free.fr>
* Disable tabs by ID instead of index
Disabled tabs are visible (with a 'not-allowed' cursor) instead of being hidden from the extra tabs menu.
* Typo!
* Update code to match conventions
* N°6132 - Fix show/hide of disabled tabs as it collided with internal methods
---------
Co-authored-by: Molkobain <lajarige.guillaume@free.fr>
* N°5922 - Enhance plus button on extkeywidget
* Properly reset the target class when closing the dialog
* Make icon buttons as actual clickable links for BeHat
* Apply suggestions from code review
Review by Guillaume. Thanks!
Co-authored-by: Molkobain <lajarige.guillaume@free.fr>
- Add generic set block ui component
- Add model link set (direct and indirect) attribute (display style)
- Add model link set direct allowed values
- Create link set viewer block UI (BlockLinksSetDisplayAsProperty)
- Add set block ui factory for linkset
- Add object factory and create new endpoint in object controller (with data binder)
- Add link set model, link set repository and link set data transformer services
* Rebase onto develop
* Use exit condition instead of englobing condition
* Add informative modals that can be called from modal toolbox
* Refactor "apply_modify" and "apply_new" into own controller, handle ajax requests with a json response and handle these responses in linkset creation/edition
* Fix merge issues
* Remove inverted condition
* Move linkset create button to a better place, still needs to fix duplicate "New" button caused by a refactor
* Handle "Cancel" button in modals
* Do not display relations when editing an object in a modal
* More elegant way to add "New" button to relations lists
* Factorize vertical highlights in alerts and modal in a single mixin
* Replace button name with dict entry code
* Change route name to snake case
* More elegant way to add "Create in modal" button to relations lists
* Replace triple if with in_array
* Move listener to body
* Rename variable to match boolean rules
* Rename event
* Rename extra param
* Add phpdoc
* Revert changes
* Check indirect linkset rights before allowing creation in modal
Default modal JS Implementation:
Add title option
Add buttons option
Change template cloning
Confirmation Modal:
Add implementation
Do not show again functionality
Web Page:
Add blocks array with twig loop insertion
* datatable row actions
Below is a sample of extra param to enable feature:
$aExtraParams['row_actions'] = [
[
'tooltip' => 'remove an element',
'icon_css_class' => 'fa-minus',
'js_row_action' => 'console.log("You clicked the remove button");',
'confirmation' => [
'message' => 'UI:ConfirmationMessage',
'message_row_data' => "name",
'remember_choice_pref_key' => 'remove_do_not_show_again',
],
],
[
'tooltip' => 'open in new tab',
'icon_css_class' => 'fa-external-link-square-alt',
'on_action_js' => 'window.open("http://localhost/itop-branchs/dev/pages/UI.php?operation=details&class=UserRequest&id=" + aData.id + "&c[menu]=UserRequest%3AOpenRequests");',
],
[
'tooltip' => 'other actions',
'icon_css_class' => 'fa-ellipsis-v',
'on_action_js' => 'console.log(event);',
],
];
* Contrôleur pour la suppression et le détachement de liens
* Block UI pour l'édition des relations
* Block UI pour la visualisation des relations
* Boutons d'actions pour la suppression et le détachement de liens
* Gestion dialogue de confirmation pour les row actions