User tests: Successful: Unsuccessful:
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
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
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
<tr class="<?php echo ($i % 2) ? 'odd' : 'even'; ?>" itemscope itemtype="https://schema.org/Person">
<td class="item-num">
<?php echo $i; ?>
</td>
Status | New | ⇒ | Pending |
Category | ⇒ | Front End com_contact Language & Strings |
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.
There is no b/c issue
@brianteeman
Do you mean I can get rid of that column?
Any idea about this very specific <tr>
<tr class="<?php echo ($i % 2) ? 'odd' : 'even'; ?>" itemscope itemtype="https://schema.org/Person">
Should I replace it with the same stuff we have in the category list?
<?php if ($this->items[$i]->published == 0) : ?>
<tr class="system-unpublished featured-list-row<?php echo $i % 2; ?>">
<?php else : ?>
<tr class="featured-list-row<?php echo $i % 2; ?>" >
<?php endif; ?>
yes - its just a display you are not removing data
that css is/was to create "stripes"
Labels |
Added:
?
?
|
@chmst @brianteeman
please test again
also moved Unpublished badge below contact title (log to see)
The list is a big improvement.
For the filter, I have some doubts.
The point was that it's not a fiedset
On Sat, 3 Oct 2020, 15:44 infograf768, notifications@github.com wrote:
@infograf768 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
.
The point was that it's not a fiedset
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 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)
One aspect is sure: if we keep the fieldset, it must have a legend.
After discussing with @chmst and @zwiastunsw fieldset is not necessary.
Reworked the tmpl.
Please test.
Another PR will follow for contacts list and articles list.
I have tested this item
I have tested this item
Status | Pending | ⇒ | Ready to Commit |
RTC
Labels |
Added:
?
|
title removed as requested.
I guess no need to test again.
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2020-10-07 08:16:26 |
Closed_By | ⇒ | HLeithner |
Thanks
I'd like to get rid of the Number!