Stephen Abello
e1ffa65d8b
N°3136 - Add creation and modification of n-n objects in object details ( #378 )
...
* 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
2023-01-18 13:35:48 +01:00
Vincent Dumas
48645dd519
N°4852 - Navigation menu: Display "+" dict entries as a tooltip on sub-nodes ( #380 )
2022-12-23 15:48:52 +01:00
bdalsass
eda11e97e3
N°5074 - Linkset datatable actions row improvements
...
Linkset updates, feedbacks 09/12:
- Distinguish action label and tool tip message
- Change default action button label Ok => Confirm
- Use action label in place of default confirm button label
- Attach do not show again preference key to table instance
- Obsolescence flag for link selection (select all) issue correction
2022-12-20 10:10:25 +01:00
Molkobain
899f4fdc0a
N°5655 - Fix regression from e5d67d22
...
Can't use "let" as this snippet seems to be evaluated several with the same variables 😭
2022-12-12 23:38:55 +01:00
Benjamin Dalsass
9defedb862
N°5073 - Issue, row actions listeners lost on refresh
2022-12-07 15:31:19 +01:00
Molkobain
e5d67d2219
N°5655 - Small refactor for better reading
2022-12-06 14:07:15 +01:00
bdalsass
dbe7fae82e
Feature/modals - generic modal API ( #373 )
...
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
2022-12-06 10:18:59 +01:00
Stephen Abello
98a53a46f0
Fix "Configure this list" modal content display
2022-12-02 15:33:35 +01:00
Eric Espie
649674c786
Merge remote-tracking branch 'origin/support/3.0' into develop
...
# Conflicts:
# application/twigextension.class.inc.php
# datamodels/2.x/authent-cas/composer.json
# datamodels/2.x/authent-cas/composer.lock
# datamodels/2.x/authent-cas/main.php
# datamodels/2.x/authent-cas/vendor/apereo/phpcas/composer.json
# datamodels/2.x/authent-cas/vendor/composer/ClassLoader.php
# datamodels/2.x/authent-cas/vendor/composer/autoload_classmap.php
# datamodels/2.x/authent-cas/vendor/composer/autoload_psr4.php
# datamodels/2.x/authent-cas/vendor/composer/autoload_real.php
# datamodels/2.x/authent-cas/vendor/composer/autoload_static.php
# datamodels/2.x/authent-cas/vendor/composer/installed.json
# datamodels/2.x/itop-portal-base/portal/src/Twig/AppExtension.php
# lib/apereo/phpcas/source/CAS.php
# lib/apereo/phpcas/source/CAS/Client.php
# lib/apereo/phpcas/source/CAS/Languages/Galego.php
# lib/apereo/phpcas/source/CAS/Languages/Portuguese.php
# lib/symfony/cache-contracts/InstalledVersions.php
# lib/symfony/cache-contracts/installed.php
# lib/symfony/cache-contracts/platform_check.php
# sources/Application/UI/Base/Layout/NavigationMenu/NavigationMenu.php
# sources/application/TwigBase/Twig/Extension.php
2022-11-24 13:17:09 +01:00
Eric Espie
feafd5e2c9
Merge remote-tracking branch 'origin/support/2.7' into support/3.0
...
N°5741 - remove use of get_config_parameter and get_module_setting in Twig
# Conflicts:
# application/twigextension.class.inc.php
# datamodels/2.x/itop-portal-base/portal/src/Twig/AppExtension.php
# sources/application/TwigBase/Twig/Extension.php
2022-11-23 17:38:27 +01:00
bdalsass
bdb29fd99a
Issue/5074 - Routage, Block UI relations, Links row actions ( #369 )
...
* 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
2022-11-23 16:10:34 +01:00
Stephen Abello
75c8738538
Add an event to refresh Datatables
2022-11-15 10:08:29 +01:00
bdalsass
5157f511fc
N°5073 - Implements line actions in a datatable ( #337 )
...
* datatable row actions
Below is a sample of extra param to enable feature:
$aExtraParams['row_actions'] = [
[
'tooltip' => 'add an element',
'icon_css_class' => 'fa-plus',
'css_class' => 'ibo-is-success',
'level' => 'secondary',
'on_action_js' => 'console.log(aData);',
],
[
'tooltip' => 'remove an element',
'icon_css_class' => 'fa-minus',
'css_class' => 'ibo-is-danger',
'level' => 'secondary',
'on_action_js' => 'console.log("You clicked the remove button");',
],
[
'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);',
],
];
* datatable row actions (update)
* datatable row actions (update)
* datatable row actions (add template role)
* datatable row actions (align actions)
* datatable row actions (change template factory make to make standard)
* datatable row actions (use trait to handle row actions)
* datatable row actions (row actions templates)
* datatable row actions (row actions templates)
* datatable row actions (row actions templates)
* datatable row actions (extends to static and form)
* datatable row actions (extends to static and form)
* datatable row actions (code review S)
* datatable row actions (code review S)
* datatable row actions (code review S)
* Update js/dataTables.main.js
Co-authored-by: Molkobain <lajarige.guillaume@free.fr >
* Update js/dataTables.main.js
Co-authored-by: Molkobain <lajarige.guillaume@free.fr >
* Update sources/Application/UI/Base/Component/DataTable/StaticTable/StaticTable.php
Co-authored-by: Molkobain <lajarige.guillaume@free.fr >
* Update templates/base/components/datatable/row-actions/handler.js.twig
Co-authored-by: Molkobain <lajarige.guillaume@free.fr >
* datatable row actions (code review M)
* Update js/dataTables.main.js
Co-authored-by: Molkobain <lajarige.guillaume@free.fr >
* Update js/dataTables.main.js
Co-authored-by: Molkobain <lajarige.guillaume@free.fr >
* Update js/dataTables.main.js
Co-authored-by: Molkobain <lajarige.guillaume@free.fr >
* Update sources/Application/UI/Base/Component/DataTable/StaticTable/StaticTable.php
Co-authored-by: Molkobain <lajarige.guillaume@free.fr >
* Update sources/Application/UI/Base/Component/DataTable/StaticTable/StaticTable.php
Co-authored-by: Molkobain <lajarige.guillaume@free.fr >
* Update sources/Application/UI/Base/Component/DataTable/StaticTable/StaticTable.php
Co-authored-by: Molkobain <lajarige.guillaume@free.fr >
* Update js/dataTables.main.js
Co-authored-by: Molkobain <lajarige.guillaume@free.fr >
* Update sources/Application/UI/Base/Component/DataTable/DataTableUIBlockFactory.php
Co-authored-by: Molkobain <lajarige.guillaume@free.fr >
* Update sources/Application/UI/Base/Component/DataTable/StaticTable/StaticTable.php
Co-authored-by: Molkobain <lajarige.guillaume@free.fr >
* Update application/utils.inc.php
Co-authored-by: Molkobain <lajarige.guillaume@free.fr >
* datatable row actions (code review M2)
* datatable row actions (code review M3)
Co-authored-by: Molkobain <lajarige.guillaume@free.fr >
2022-09-26 08:20:28 +02:00
Stephen Abello
1f3e91efae
Merge branch 'support/3.0' into develop
2022-08-10 14:09:50 +02:00
Stephen Abello
b3750e46cf
Stylize datatables before widget is loaded in order to avoid flickering
2022-08-10 14:07:39 +02:00
Stephen Abello
8c7fa53696
N°5335 Disable datatables hyperlinks when rows are selectable
2022-07-29 09:59:00 +02:00
Molkobain
ce355e311c
N°5060 - Activity panel: Show "load more entries" buttons no matter the filters
2022-05-09 13:14:08 +02:00
Molkobain
cd7f9e478f
N°4913 - Avoid object initials to overflow in medallions
2022-03-06 22:44:12 +01:00
Stephen Abello
e971d628dd
N°4565 Add a message indicator to caselog tabs toggler
2022-02-15 10:21:09 +01:00
acognet
cacae0a2b3
N°4591 - Space trimed when filling html attribute or log attribute with object-copier
2022-02-15 09:59:47 +01:00
Stephen Abello
1f95a4ee21
N°3541 Add loading state design to buttons block
2022-02-07 14:54:23 +01:00
Molkobain
7bb7445c91
N°4482 - Small refacto
...
- SCSS partial rule should target only the concerned elements
- Improve PHPDoc
2022-02-02 16:47:15 +01:00
Molkobain
2733e7966f
N°4731 - Restore "data-value-raw" HTML metadata on attributes in object details
2022-01-31 20:03:02 +01:00
acognet
3b4ba2aafd
N°4634 - Missing class icone in predefined search
2022-01-26 12:51:39 +01:00
Molkobain
0156eb0dda
Activity panel: Fix missing space in HTML markup
2022-01-25 13:29:43 +01:00
acognet
e8448332f4
N°4529 - Object list: Count in header not updated when refreshing through the icon
2022-01-25 10:24:44 +01:00
acognet
e8e6ceb29e
N°4529 - Object list: Count in header not updated when refreshing through the icon
2022-01-25 08:56:43 +01:00
acognet
910638d93f
N°4667 - Remove call to tooltip function
2022-01-21 11:51:59 +01:00
acognet
ec0c98bb0f
N°4482 - Polishing : Export page
2022-01-13 10:52:18 +01:00
acognet
937313495d
Fix checkbox in datatable.
2022-01-10 17:53:25 +01:00
Stephen Abello
88d6b63e12
N°4434 Prevent FormTables from flickering
2021-12-14 14:01:05 +01:00
Molkobain
18041527c5
N°4542 - Restore log default value being set through "default" URL param
2021-12-14 09:30:54 +01:00
Molkobain
2fe8f0e43b
Add comment to prevent future misunderstanding
2021-12-10 15:05:09 +01:00
Stephen Abello
6a7c953344
N°4481 Fix configure this list in external key creating alerts
2021-12-09 11:13:43 +01:00
Stephen Abello
0e36070f0a
Rework efcd065 method of determining whether UIContentBlock needs a div tag
2021-12-07 15:29:11 +01:00
Stephen Abello
efcd0654c7
Fix UIContentBlock not creating a div if it's only inheriting CSS classes
2021-12-07 14:40:36 +01:00
Molkobain
9f0e2c0a3a
Dashboard: Remove extra top margin when dashboard layout as no title or toolbar (eg. in dashboard pages)
2021-12-04 14:14:11 +01:00
Stephen Abello
5b742c97c9
N°4481 Fix activity panel in printable object pages
2021-12-03 10:29:04 +01:00
Stephen Abello
16a2137777
N°4481 Fix printable object pages when using vertical tabs
2021-12-03 10:29:04 +01:00
Stephen Abello
7db97c6804
N°3835 Upload file name security hardening
2021-12-02 10:40:18 +01:00
acognet
b00b08d08b
Remove role="row" in tr This selector is not used
2021-12-01 08:56:21 +01:00
Stephen Abello
b1de8683f0
N°3523 Adjust buttons and links colors to make application more accessible
2021-11-23 11:26:16 +01:00
Molkobain
bd52f4fefb
N°4468 - Add data-resource-id meta-data on all buttons
2021-11-22 15:44:27 +01:00
Stephen Abello
72d1ab5cbc
N°3523 Add accessibility to silo selection and user menu toggler
2021-11-19 11:16:19 +01:00
Molkobain
2a913cd484
Restore prototypes of cmdbAbstractObject methods in which we added $sMode to preserve compatibility with existing extensions ( #240 )
...
* Restore prototypes of cmdbAbstractObject methods in which we added $sMode to preserve compatibility with existing extensions
* Rename cmdbAbstractObject::ENUM_OBJECT_MODE_XXX
* Add cmdbAbstractObject::ENUM_OBJECT_MODE_BULK_EDIT
* Refactor usage of $sDisplayMode in cmdbAbstractObject::DisplayModifyForm()
2021-11-16 17:47:09 +01:00
Molkobain
2b97fed5db
Fix unclosed TWIG tag in toolbar spacer
2021-11-15 16:24:41 +01:00
Molkobain
0dc3d249da
N°3526 - Clean up pass on UIBlocks
...
- Add ancestors CSS classes on UIBlocks when missing (programmatically)
- Fix SCSS due to some blocks inheriting their ancestors rules
2021-11-14 22:33:48 +01:00
Stephen Abello
4b888a3805
N°4378 Restore keyboard shortcuts behavior for object details
2021-11-09 09:49:37 +01:00
Stephen Abello
aba0d4144c
N°4408 Fix inputs flickering when widgets are loading
2021-11-04 10:49:17 +01:00
Eric Espie
e6d2b0bc18
N°4346 - Restore HTML metadata (data-xxx) on lists in the backoffice
2021-10-21 16:18:57 +02:00