Skip to content
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

Missing template.js in Protostar's component.php #24532

Closed
wants to merge 6 commits into from

Conversation

obuisard
Copy link
Contributor

@obuisard obuisard commented Apr 9, 2019

When showing forms in modals (for instance), radio buttons are not skinned and are actually partially hidden (because the CSS from template.css hides the clickable buttons, only showing the labels).
This is the result of the missing template.js, which adds the proper class names to the form elements.

Summary of Changes

Added the loading of template.js

Testing Instructions

Create a contact mail custom field of radio type.
Create a menu item of type 'List contacts in a category'.
Create an override of the com_contacts component (category view).
Modify the link to the contact items in the default_items.php override to force the modals (just for test purposes):
JRoute::_(ContactHelperRoute::getContactRoute($item->slug, $item->catid)).'&tmpl=component'
In the frontend, this will open the contacts into component.php rather than index.php.

Expected result

after_fix

Actual result

before_fix

Documentation Changes Required

None

Duplicate entry .radio.btn-group > label:first-of-type
Removed 2nd occurrence of  .btn-group > .btn:first-child, .radio.btn-group > label:first-of-type
When showing forms in modals (for instance), radio buttons are not skinned and are actually partially hidden (because CSS from template.css hides the clickable buttons, only showing the labels).
This is the result of the missing template.js, which adds the proper class names to the form elements.
Missing template.js in component.php of Protostar
@ghost ghost added the J3 Issue label Apr 9, 2019
@obuisard obuisard closed this Apr 9, 2019
@obuisard
Copy link
Contributor Author

obuisard commented Apr 9, 2019

Some commits should not be part of this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants