-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[4.0] Normalise Featured Contact List #30868
[4.0] Normalise Featured Contact List #30868
Conversation
I'd like to get rid of the Number! |
Me too, if it is BC. |
There is no b/c issue |
Tested with success. If you remove the number column, I'll re-test. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/30868. |
@brianteeman Any idea about this very specific Should I replace it with the same stuff we have in the category list?
|
|
@chmst @brianteeman |
<form action="<?php echo htmlspecialchars(Uri::getInstance()->toString()); ?>" method="post" name="adminForm" id="adminForm"> | ||
<?php if ($this->params->get('filter_field') || $this->params->get('show_pagination_limit')) : ?> | ||
<fieldset class="com-contact-featured__filters filters"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Filter and list limit are not a fieldset. They are not related to each other.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please look at similar code for
components/com_content/tmpl/category/default_articles.php
<input type="hidden" name="filter_order" value="<?php echo $listOrder; ?>"> | ||
<input type="hidden" name="filter_order_Dir" value="<?php echo $listDirn; ?>"> | ||
</fieldset> | ||
<legend class="sr-only"><?php echo Text::_('COM_CONTACT_FORM_FILTER_LEGEND'); ?></legend> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need for a legend
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fieldset needs a legend (and wave asks for it): see
joomla-cms/components/com_content/tmpl/category/default_articles.php
Lines 69 to 70 in 06fe4d2
<fieldset class="com-content-category__filters filters btn-toolbar clearfix"> | |
<legend class="sr-only"><?php echo Text::_('COM_CONTENT_FORM_FILTER_LEGEND'); ?></legend> |
joomla-cms/components/com_contact/tmpl/category/default_items.php
Lines 35 to 36 in 06fe4d2
<fieldset class="com-contact-category__filters filters btn-toolbar"> | |
<legend class="sr-only"><?php echo Text::_('COM_CONTACT_FORM_FILTER_LEGEND'); ?></legend> |
The list is a big improvement. For the filter, I have some doubts.
|
@chmst |
The point was that it's not a fiedset
…On Sat, 3 Oct 2020, 15:44 infograf768, ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In components/com_contact/tmpl/featured/default_items.php
<#30868 (comment)>:
> <form action="<?php echo htmlspecialchars(Uri::getInstance()->toString()); ?>" method="post" name="adminForm" id="adminForm">
+ <?php if ($this->params->get('filter_field') || $this->params->get('show_pagination_limit')) : ?>
<fieldset class="com-contact-featured__filters filters">
Please look at similar code for
components/com_content/tmpl/category/default_articles.php
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#30868 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJ4P4OKGAWNTD2WLT4DYN3SI42DRANCNFSM4SBRDOUQ>
.
|
Then you may have to change the code for articles in 3.x and for articles and contacts lists in 4.0-dev, which you tested OK |
I have no opinion on if it should be a fieldset or not. I was merely explaining why @chmst said that you should not have the legend. |
I obviously can take off the part concerning fieldset, here and in List Contacts in a Category, if desired. |
I am asking @zwiastunsw to please help on this decision as we have only one input (the searchfield) |
After discussing with @chmst and @zwiastunsw fieldset is not necessary. Please test. NoteAnother PR will follow for contacts list and articles list. |
I have tested this item ✅ successfully on 510dc5f This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/30868. |
1 similar comment
I have tested this item ✅ successfully on 510dc5f This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/30868. |
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/30868. |
title removed as requested. |
Thanks |
Similar PR for articles |
* taking off NUM column * adding back itemscope * string used in form * Getting rid of fieldset * removing title as required
Summary of Changes
Follow up on #30813 and #30859
Warning: these 2 PR have to be present in your test site to test the Clear button.
npm ci has to be applied
Changes:
Normalises the table display
Adds a Title Search Filter, Filter and Clear buttons.
a11y legend and scope added
Modified the search placeholder (it is also used in Contact List but I forgot to modify it there)
Used Title instead of Name for column heading, as in Contact list
Testing Instructions
Create some contacts and set them to featured.
Create a Featured Contacts menu item.
Display in frontend.
After patch, test that the Filter and the Clear button work as should
Actual result BEFORE applying this Pull Request
Expected result AFTER applying this Pull Request
NOTE
No idea why we display the NUM in the first column.
If nobody knows why, we can get rid of it.
Meaanwhile, I kept in the code