-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[5.2] Improve button toolbar for templates #43592
Conversation
just a thought about enhancing this further. Before this we have both a "close" and a "close file" depending on the context. They do different things. Close returns to the template manager, close file - closes the open file. How about changing "close" to "exit" with the exit door icon. This way we do not have two buttons with the same icon and name that do different things |
Cannot find a use case with "archive", but it has also the template.cancel task. @brianteeman I could do that, it needs a new button in button layouts. |
Hmm, "exit" would scare me because it would make me think it logs me off the administrator completely .. but maybe it's only me thinking like that. |
@brianteeman I don't agree with you. We have "Save & Close". So why shouldn't we use "Close"? Otherwise, we should think about "Save & Exit". |
You missed the point. |
@dautrich We have the buttons We hat this discussion already in a former version and my suggestion for the exit icon was refused with the same argument as @richard67 mentioned in his comment. |
Save / Save and Close on green color. |
Yes. My screen is from a fresh installation of J4 without PR. |
I have tested this item ✅ successfully on 16a507e This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/43592. |
I have tested this item ✅ successfully on 16a507e This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/43592. |
This PR needs to be rebased to 5.2-dev. Not sure if I should do that now as the 5.2-dev branch is 2 commits behind 4.4-dev. Will try and if it doesn't work revert. |
Thank you all testers for testing. Unfortunately this cannot go into 4.4 and has conflicts with 5,2. and cannot be rebased. |
Closed in favour of #43975 . |
Pull Request for Issue #43212 .
Summary of Changes
Several users mentioned confusion i the com_templates toolbar, caused by the delete-file and close-file button.
This is an attempt to provide a solution with as few changes as possible.
Some buttons are used in the whole system and cannot be changed for this view, so we have not many options for changes here.
I suggest
change the text on the "close file" button to "close". Because this button does not only close the file but it closes the screen and redirects back, for users it does not matter if there is another action in the code.
Move the "Close" Button" directly after the action buttons, before the file management buttons.
Use the trash icon on the "file delete" button. We had many discussions about that - In Joomla the trash button means "trashed" => state = -2 not "deleted permanently", but when we think as a user not as a developer, the icon is completely clear here.
I improved the code a little bit by removing an unused variable and with switch instead of elseif.
Testing Instructions
Play around in templates and template styles, make child templates, manage files.
Whatever you want to do with your template should have a comprehensive and complete toolbar, in most cases the same as before.
Actual result BEFORE applying this Pull Request
see #43212.
delete button and close-file button.
Expected result AFTER applying this Pull Request
Link to documentations
Please select:
Documentation link for docs.joomla.org:
No documentation changes for docs.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed