? ? ? Pending

User tests: Successful: Unsuccessful:

avatar drmenzelit
drmenzelit
17 Jun 2021

Pull Request for Issue #34529, #33664 and #33664 (comment).

Summary of Changes

Modified the attributes bodyHeight and modalWidth in renderModal in the label layouts of privacy consent and terms and conditions. The values has to be int and not strings.

Furthermore removed the label element and related popover. The label was marked as orphaned element by WAVE as stated in the comment linked above.

Removed the description of the fields, it can't be hidden by configuration.

Testing Instructions

  • Activate the plugins System - Privacy Consent and User - Terms and Conditions
  • Configure both plugins
  • Allow user registration
  • Create a menu item for registration form
  • Go to the registration form and click on the links to the Privacy Policy and Terms and Conditions, a modal window will open
  • Inspect the code, if possible test with WAVE

Actual result BEFORE applying this Pull Request

See issue #34529
The modal window is very small

Inspect the code and you will see a label element surrounding the link
See comment #33664 (comment)

Expected result AFTER applying this Pull Request

No label element, only link if the plugin is correctly configured, only a span if the link is missing

The modal window is bigger now.

avatar drmenzelit drmenzelit - open - 17 Jun 2021
avatar drmenzelit drmenzelit - change - 17 Jun 2021
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 17 Jun 2021
Category Layout
avatar drmenzelit drmenzelit - change - 17 Jun 2021
The description was changed
avatar drmenzelit drmenzelit - edited - 17 Jun 2021
avatar sandramay0905
sandramay0905 - comment - 17 Jun 2021

Modal

Privacy:

image

Terms and Conditions:

image

Label element:

without pr with pr
image image
image image

span with pull request:
image

avatar drmenzelit
drmenzelit - comment - 17 Jun 2021

Thank you @sandramay0905 for the screenshots :-)

avatar Kostelano
Kostelano - comment - 17 Jun 2021

In a modal window with privacy, you need an indent from the block of information to the form with fields.

avatar drmenzelit
drmenzelit - comment - 17 Jun 2021

In a modal window with privacy, you need an indent from the block of information to the form with fields.

sorry, but I don't understand this, can you explain?

avatar Kostelano
Kostelano - comment - 17 Jun 2021

I have not tested, but paid attention to the screenshots (below is what I am talking about).

Screenshot_1

Sorry, maybe this is outside the scope of this PR.

avatar drmenzelit
drmenzelit - comment - 17 Jun 2021

Ah... that is not related to this PR, I think @sandramay0905 took a random menu item to test :-)

avatar drmenzelit drmenzelit - change - 17 Jun 2021
Labels Added: ?
avatar brianteeman
brianteeman - comment - 17 Jun 2021

Does this also address #33664

avatar drmenzelit
drmenzelit - comment - 17 Jun 2021

@brianteeman only partially, the semantic is hopefully better now, but I was not able to find a way to hide the field description

avatar alikon
alikon - comment - 17 Jun 2021

closed #34529...
in the mean time ?

avatar brianteeman
brianteeman - comment - 17 Jun 2021

Question: Shouldnt the modal load without any page navigation

avatar brianteeman
brianteeman - comment - 17 Jun 2021

I think you can just delete the description. It doesnt add anything and its not displayed conditionally on the presence of a link.

avatar drmenzelit
drmenzelit - comment - 17 Jun 2021

Question: Shouldnt the modal load without any page navigation

There is no page navigation in the modal, or am I missing something?

avatar drmenzelit
drmenzelit - comment - 17 Jun 2021

I think you can just delete the description. It doesnt add anything and its not displayed conditionally on the presence of a link.

The description is a language string and loaded in the field (https://github.com/joomla/joomla-cms/blob/4.0-dev/plugins/system/privacyconsent/forms/privacyconsent.xml)

avatar brianteeman
brianteeman - comment - 18 Jun 2021

I know why and where the language string is used. I am saying that it can be deleted from both the ini and the xml.

avatar brianteeman
brianteeman - comment - 18 Jun 2021

Re page navigation I meant this
image

avatar drmenzelit
drmenzelit - comment - 18 Jun 2021

oh, I don't know if it possible to hide the navigation when a page is opened in a modal window...

avatar drmenzelit
drmenzelit - comment - 18 Jun 2021

I know why and where the language string is used. I am saying that it can be deleted from both the ini and the xml.

Thank you for confirming we can delete that.

avatar joomla-cms-bot joomla-cms-bot - change - 19 Jun 2021
Category Layout Administration Language & Strings Layout Front End Plugins
avatar drmenzelit drmenzelit - change - 19 Jun 2021
The description was changed
avatar drmenzelit drmenzelit - edited - 19 Jun 2021
avatar Kostelano
Kostelano - comment - 20 Jun 2021

Do we need a similar message for the Terms of Service? If we DO NOT select material in the User - Profile (TOS parameters) plugin settings, then we just get a phrase without a link and without additional. block of information (like the one below in the screenshot). We must post Yes, it is not clear why and for what.

Screenshot_1

avatar drmenzelit drmenzelit - change - 20 Jun 2021
Labels Added: ?
avatar drmenzelit
drmenzelit - comment - 20 Jun 2021

@Kostelano I'm afraid the Terms of Service is out of the scope of this PR. The profile plugin needs to be extended with a message field for TOS like in Privacy Consent or Terms & Conditions plugin. I'm not sure if my programming skills are good enough to do that. But that should be a separate PR.

avatar Kostelano Kostelano - test_item - 20 Jun 2021 - Tested successfully
avatar Kostelano
Kostelano - comment - 20 Jun 2021

I have tested this item successfully on 2232d03

Ok, thanks. Then everything is fine for me.


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

avatar RickR2H RickR2H - test_item - 23 Jun 2021 - Tested successfully
avatar RickR2H
RickR2H - comment - 23 Jun 2021

I have tested this item successfully on 2232d03

Also tested WAVE


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

avatar Quy Quy - change - 24 Jun 2021
Status Pending Ready to Commit
avatar Quy
Quy - comment - 24 Jun 2021

RTC


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

avatar wilsonge wilsonge - change - 27 Jun 2021
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2021-06-27 22:43:27
Closed_By wilsonge
Labels Added: ?
avatar wilsonge wilsonge - close - 27 Jun 2021
avatar wilsonge wilsonge - merge - 27 Jun 2021
avatar wilsonge
wilsonge - comment - 27 Jun 2021

Thanks!

Add a Comment

Login with GitHub to post a comment