? Success
Referenced as Pull Request for: # 10560

User tests: Successful: Unsuccessful:

avatar JoomliC
JoomliC
19 May 2016

Improve modals to select and to edit an article. (Update for PR #10292 (merged in staging) + patch PR 10522)
Note: to be testing on staging.

Summary of Changes

  • Control if modal, in edit layout
  • Add Save (keep modal open), Save & Close and Close button to the footer of the modal
  • Fix closing of Modal when edit validation returns an error (does not close the modal, and display alert message in modal)
  • Add function to update input title when changed
  • A few code improvements (simplify)

Testing Instructions (Staging + Multilanguages enabled!)

  • Go to Content > Articles > open an article, and go to Associations tab to select associated article to open the modal.
  • Select an associated article and save the article to show edit button
  • Click on Save and Save & Close with a correct edition (no error), and then with an empty title, or any other possible error (not filled required field).
  • Expected behavior: If an error, Save & Close won't close the modal, and Save will never close the modal (close only when requested, and on successful edition)
  • Edit an article in modal, change title, and save and close : the title in the input field should be then updated with the new title.
  • Do the same in a menu item type "Single Article", for Select and Edit article.

Same rendering as for Categories in PR #10441 (screenshots)

avatar JoomliC JoomliC - open - 19 May 2016
avatar JoomliC JoomliC - change - 19 May 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 19 May 2016
Labels Added: ?
avatar andrepereiradasilva andrepereiradasilva - test_item - 19 May 2016 - Tested successfully
avatar andrepereiradasilva
andrepereiradasilva - comment - 19 May 2016

I have tested this item āœ… successfully on 88e401b

Works great! thanks!


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/10557.

avatar BurtNL BurtNL - test_item - 19 May 2016 - Tested successfully
avatar BurtNL
BurtNL - comment - 19 May 2016

I have tested this item āœ… successfully on 88e401b

Tested successfully on a multilanguage setup.


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/10557.

avatar infograf768 infograf768 - test_item - 20 May 2016 - Tested successfully
avatar infograf768
infograf768 - comment - 20 May 2016

I have tested this item āœ… successfully on 88e401b


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/10557.

avatar infograf768 infograf768 - change - 20 May 2016
Status Pending Ready to Commit
avatar infograf768
infograf768 - comment - 20 May 2016

RTC. Thanks.


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/10557.

avatar joomla-cms-bot joomla-cms-bot - change - 20 May 2016
Labels Added: ?
avatar infograf768
infograf768 - comment - 20 May 2016

@JoomliC
Although these modals improvements are all fine, I found a little UI issue.
modal-footer should float left imho in RTL.

avatar brianteeman brianteeman - change - 20 May 2016
Category Components
avatar brianteeman brianteeman - change - 20 May 2016
Labels
avatar brianteeman brianteeman - change - 20 May 2016
Milestone Added:
avatar roland-d
roland-d - comment - 20 May 2016

@JoomliC The code does what it says but there is an issue. When I click the Edit button the modal comes up and I first see the article list which then changes to the edit page.

Why is the article list shown before the edit screen? I would expect the edit screen without seeing the article list first.


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/10557.

avatar roland-d roland-d - change - 20 May 2016
Status Ready to Commit Information Required
Labels
avatar roland-d
roland-d - comment - 20 May 2016

Taking off RTC for now as there is a UI issue.


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/10557.

avatar joomla-cms-bot joomla-cms-bot - change - 20 May 2016
Labels Removed: ?
avatar JoomliC
JoomliC - comment - 20 May 2016

@roland-d This is not related to this PR!!!
Test with module edit modal (this is one modal i have not yet refactoried ;-) ) (menu -> edit menu item -> modules assignment -> click on one module name to edit : first click good, close, click again on edit and same issue).
This happens with all modals using edit layout, and i have a bit of an idea about this ;-)
So, will work on a global fix for all in a separate PR

avatar JoomliC
JoomliC - comment - 20 May 2016

modal-footer should float left imho in RTL.

@infograf768 This could be done i think... will check it later (still some work to do on some modals ;-) ) as it may be in bootstrap library itself...

avatar roland-d
roland-d - comment - 20 May 2016

@JoomliC Thanks for your feedback. I will wait for the modal-footer fix and then we can merge this.

avatar JoomliC
JoomliC - comment - 20 May 2016

@roland-d Which modal footer fix ?!? :-|
If you mean @infograf768 comment on RTL position for booter buttons, not related to this PR, as this is a global bootstrap library issue, not related to this specific PR...

avatar roland-d
roland-d - comment - 20 May 2016

@JoomliC Ok, I see what you mean it is not related to this PR.

avatar roland-d roland-d - change - 20 May 2016
Status Information Required Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2016-05-20 12:28:34
Closed_By roland-d
avatar roland-d roland-d - close - 20 May 2016
avatar roland-d roland-d - merge - 20 May 2016
avatar roland-d roland-d - reference | 51aa2ae - 20 May 16
avatar roland-d roland-d - merge - 20 May 2016
avatar roland-d roland-d - close - 20 May 2016
avatar roland-d
roland-d - comment - 20 May 2016

Thanks everybody

avatar JoomliC JoomliC - reference | 6ded0a7 - 20 May 16
avatar infograf768
infograf768 - comment - 20 May 2016

@JoomliC
i can solve the footer issue by using the template specific rtl .less files. will do tomorrow.

avatar JoomliC
JoomliC - comment - 20 May 2016

@infograf768 Well, great! So i let you do this one, and will keep focusing on other modals ;-)
Thank you! ????

And thanks all for testing!

avatar JoomliC
JoomliC - comment - 20 May 2016

@roland-d PR created for the issue with "list" loaded shortly before edit layout : #10560 cc/ @andrepereiradasilva @infograf768 @BurtNL
;-)

Add a Comment

Login with GitHub to post a comment