-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[4.0] Pagination [a11y] admin #21293
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
Changes from 4 commits
678f36b
7fbc85f
b0c4a38
04863f2
5025239
3954951
fd55bb1
5ccdbf2
38b5e82
0c4d007
ff4cd49
432fb5d
ec394a4
e18bf21
31393ae
7864cae
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -30,7 +30,6 @@ | |
| $listOrder = $this->escape($this->state->get('list.ordering')); | ||
| $listDirn = $this->escape($this->state->get('list.direction')); | ||
| $canManageCheckin = Factory::getUser()->authorise('core.manage', 'com_checkin'); | ||
| $colSpan = 4; | ||
|
|
||
| $iconStates = array( | ||
| -2 => 'icon-trash', | ||
|
|
@@ -62,7 +61,7 @@ | |
| <tr> | ||
| <?php if (!empty($this->typeSupports['state'])) : ?> | ||
| <th scope="col" style="width:1%" class="center nowrap"> | ||
| <?php echo HTMLHelper::_('searchtools.sort', 'JSTATUS', 'state', $listDirn, $listOrder); $colSpan++; ?> | ||
| <?php echo HTMLHelper::_('searchtools.sort', 'JSTATUS', 'state', $listDirn, $listOrder); ?> | ||
| </th> | ||
| <?php endif; ?> | ||
| <th scope="col" class="nowrap"> | ||
|
|
@@ -76,26 +75,19 @@ | |
| </th> | ||
| <?php if (!empty($this->typeFields['menutype'])) : ?> | ||
| <th scope="col" style="width:10%" class="nowrap"> | ||
| <?php echo HTMLHelper::_('searchtools.sort', 'COM_ASSOCIATIONS_HEADING_MENUTYPE', 'menutype_title', $listDirn, $listOrder); $colSpan++; ?> | ||
| <?php echo HTMLHelper::_('searchtools.sort', 'COM_ASSOCIATIONS_HEADING_MENUTYPE', 'menutype_title', $listDirn, $listOrder); ?> | ||
| </th> | ||
| <?php endif; ?> | ||
| <?php if (!empty($this->typeSupports['acl'])) : ?> | ||
| <th scope="col" style="width:5%" class="nowrap d-none d-sm-table-cell"> | ||
| <?php echo HTMLHelper::_('searchtools.sort', 'JGRID_HEADING_ACCESS', 'access_level', $listDirn, $listOrder); $colSpan++; ?> | ||
| <?php echo HTMLHelper::_('searchtools.sort', 'JGRID_HEADING_ACCESS', 'access_level', $listDirn, $listOrder); ?> | ||
| </th> | ||
| <?php endif; ?> | ||
| <th scope="col" style="width:1%" class="nowrap d-none d-sm-table-cell"> | ||
| <?php echo HTMLHelper::_('searchtools.sort', 'JGRID_HEADING_ID', 'id', $listDirn, $listOrder); ?> | ||
| </th> | ||
| </tr> | ||
| </thead> | ||
| <tfoot> | ||
| <tr> | ||
| <td colspan="<?php echo $colSpan; ?>"> | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just in case you missed this one and its instances: https://github.com/joomla/joomla-cms/pull/21293/files#diff-d64a62878ec1eefbdd29c4dd3869061dR33 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. done There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Update lines 64, 78, and 83. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. done |
||
| <?php echo $this->pagination->getListFooter(); ?> | ||
| </td> | ||
| </tr> | ||
| </tfoot> | ||
| <tbody> | ||
| <?php foreach ($this->items as $i => $item) : | ||
| $canEdit = AssociationsHelper::allowEdit($this->extensionName, $this->typeName, $item->id); | ||
|
|
@@ -160,6 +152,9 @@ | |
| </tbody> | ||
| </table> | ||
|
|
||
| <?php // load the pagination. ?> | ||
| <?php echo $this->pagination->getListFooter(); ?> | ||
|
|
||
| <?php endif; ?> | ||
|
|
||
| <input type="hidden" name="task" value=""> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -85,13 +85,6 @@ | |
| </th> | ||
| </tr> | ||
| </thead> | ||
| <tfoot> | ||
| <tr> | ||
| <td colspan="13"> | ||
| <?php echo $this->pagination->getListFooter(); ?> | ||
| </td> | ||
| </tr> | ||
| </tfoot> | ||
| <tbody <?php if ($saveOrder) :?> class="js-draggable" data-url="<?php echo $saveOrderingUrl; ?>" data-direction="<?php echo strtolower($listDirn); ?>" data-nested="true"<?php endif; ?>> | ||
| <?php foreach ($this->items as $i => $item) : | ||
| $ordering = ($listOrder == 'ordering'); | ||
|
|
@@ -176,6 +169,10 @@ | |
| <?php endforeach; ?> | ||
| </tbody> | ||
| </table> | ||
|
|
||
|
||
| <?php // load the pagination. ?> | ||
| <?php echo $this->pagination->getListFooter(); ?> | ||
|
|
||
| <?php // Load the batch processing form. ?> | ||
| <?php if ($user->authorise('core.create', 'com_banners') | ||
| && $user->authorise('core.edit', 'com_banners') | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -90,13 +90,6 @@ | |
| </th> | ||
| </tr> | ||
| </thead> | ||
| <tfoot> | ||
| <tr> | ||
| <td colspan="11"> | ||
| <?php echo $this->pagination->getListFooter(); ?> | ||
| </td> | ||
| </tr> | ||
| </tfoot> | ||
| <tbody> | ||
| <?php foreach ($this->items as $i => $item) : | ||
| $canCreate = $user->authorise('core.create', 'com_banners'); | ||
|
|
@@ -160,6 +153,10 @@ | |
| <?php endforeach; ?> | ||
| </tbody> | ||
| </table> | ||
|
|
||
|
||
| <?php // load the pagination. ?> | ||
| <?php echo $this->pagination->getListFooter(); ?> | ||
|
|
||
| <?php endif; ?> | ||
|
|
||
| <input type="hidden" name="task" value=""> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -48,13 +48,6 @@ | |
| </th> | ||
| </tr> | ||
| </thead> | ||
| <tfoot> | ||
| <tr> | ||
| <td colspan="5"> | ||
| <?php echo $this->pagination->getListFooter(); ?> | ||
| </td> | ||
| </tr> | ||
| </tfoot> | ||
| <tbody> | ||
| <?php foreach ($this->items as $i => $item) : ?> | ||
| <tr class="row<?php echo $i % 2; ?>"> | ||
|
|
@@ -80,6 +73,10 @@ | |
| <?php endforeach; ?> | ||
| </tbody> | ||
| </table> | ||
|
|
||
|
||
| <?php // load the pagination. ?> | ||
| <?php echo $this->pagination->getListFooter(); ?> | ||
|
|
||
| <?php endif; ?> | ||
| <?php // Load the export form ?> | ||
| <?php echo HTMLHelper::_( | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -44,13 +44,6 @@ | |
| </th> | ||
| </tr> | ||
| </thead> | ||
| <tfoot> | ||
| <tr> | ||
| <td colspan="4"> | ||
| <?php echo $this->pagination->getListFooter(); ?> | ||
| </td> | ||
| </tr> | ||
| </tfoot> | ||
| <tbody> | ||
| <?php $i = 0; ?> | ||
| <?php foreach ($this->data as $folder => $item) : ?> | ||
|
|
@@ -73,6 +66,10 @@ | |
| <?php $i++; endforeach; ?> | ||
| </tbody> | ||
| </table> | ||
|
|
||
|
||
| <?php // load the pagination. ?> | ||
| <?php echo $this->pagination->getListFooter(); ?> | ||
|
|
||
| <?php endif; ?> | ||
| <input type="hidden" name="task" value=""> | ||
| <input type="hidden" name="boxchecked" value="0"> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -34,7 +34,6 @@ | |
| $parts = explode('.', $extension, 2); | ||
| $component = $parts[0]; | ||
| $section = null; | ||
| $columns = 7; | ||
|
|
||
| if (count($parts) > 1) | ||
| { | ||
|
|
@@ -85,32 +84,28 @@ | |
| <th scope="col" class="nowrap"> | ||
| <?php echo HTMLHelper::_('searchtools.sort', 'JGLOBAL_TITLE', 'a.title', $listDirn, $listOrder); ?> | ||
| </th> | ||
| <?php if (isset($this->items[0]) && property_exists($this->items[0], 'count_published')) : | ||
| $columns++; ?> | ||
| <?php if (isset($this->items[0]) && property_exists($this->items[0], 'count_published')) : ?> | ||
| <th scope="col" style="width:3%" class="nowrap text-center d-none d-md-table-cell"> | ||
| <span class="icon-publish hasTooltip" aria-hidden="true" title="<?php echo Text::_('COM_CATEGORY_COUNT_PUBLISHED_ITEMS'); ?>"> | ||
| <span class="sr-only"><?php echo Text::_('COM_CATEGORY_COUNT_PUBLISHED_ITEMS'); ?></span> | ||
| </span> | ||
| </th> | ||
| <?php endif; ?> | ||
| <?php if (isset($this->items[0]) && property_exists($this->items[0], 'count_unpublished')) : | ||
| $columns++; ?> | ||
| <?php if (isset($this->items[0]) && property_exists($this->items[0], 'count_unpublished')) : ?> | ||
| <th scope="col" style="width:3%" class="nowrap text-center d-none d-md-table-cell"> | ||
| <span class="icon-unpublish hasTooltip" aria-hidden="true" title="<?php echo Text::_('COM_CATEGORY_COUNT_UNPUBLISHED_ITEMS'); ?>"> | ||
| <span class="sr-only"><?php echo Text::_('COM_CATEGORY_COUNT_UNPUBLISHED_ITEMS'); ?></span> | ||
| </span> | ||
| </th> | ||
| <?php endif; ?> | ||
| <?php if (isset($this->items[0]) && property_exists($this->items[0], 'count_archived')) : | ||
| $columns++; ?> | ||
| <?php if (isset($this->items[0]) && property_exists($this->items[0], 'count_archived')) : ?> | ||
| <th scope="col" style="width:3%" class="nowrap text-center d-none d-md-table-cell"> | ||
| <span class="icon-archive hasTooltip" aria-hidden="true" title="<?php echo Text::_('COM_CATEGORY_COUNT_ARCHIVED_ITEMS'); ?>"> | ||
| <span class="sr-only"><?php echo Text::_('COM_CATEGORY_COUNT_ARCHIVED_ITEMS'); ?></span> | ||
| </span> | ||
| </th> | ||
| <?php endif; ?> | ||
| <?php if (isset($this->items[0]) && property_exists($this->items[0], 'count_trashed')) : | ||
| $columns++; ?> | ||
| <?php if (isset($this->items[0]) && property_exists($this->items[0], 'count_trashed')) : ?> | ||
| <th scope="col" style="width:3%" class="nowrap text-center d-none d-md-table-cell"> | ||
| <span class="icon-trash hasTooltip" aria-hidden="true" title="<?php echo Text::_('COM_CATEGORY_COUNT_TRASHED_ITEMS'); ?>"> | ||
| <span class="sr-only"><?php echo Text::_('COM_CATEGORY_COUNT_TRASHED_ITEMS'); ?></span> | ||
|
|
@@ -120,8 +115,7 @@ | |
| <th scope="col" style="width:10%" class="nowrap d-none d-md-table-cell text-center"> | ||
| <?php echo HTMLHelper::_('searchtools.sort', 'JGRID_HEADING_ACCESS', 'access_level', $listDirn, $listOrder); ?> | ||
| </th> | ||
| <?php if ($this->assoc) : | ||
| $columns++; ?> | ||
| <?php if ($this->assoc) : ?> | ||
| <th scope="col" style="width:10%" class="nowrap d-none d-md-table-cell text-center"> | ||
| <?php echo HTMLHelper::_('searchtools.sort', 'COM_CATEGORY_HEADING_ASSOCIATION', 'association', $listDirn, $listOrder); ?> | ||
| </th> | ||
|
|
@@ -136,13 +130,6 @@ | |
| </th> | ||
| </tr> | ||
| </thead> | ||
| <tfoot> | ||
| <tr> | ||
| <td colspan="<?php echo $columns; ?>"> | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. done |
||
| <?php echo $this->pagination->getListFooter(); ?> | ||
| </td> | ||
| </tr> | ||
| </tfoot> | ||
| <tbody <?php if ($saveOrder) :?> class="js-draggable" data-url="<?php echo $saveOrderingUrl; ?>" data-direction="<?php echo strtolower($listDirn); ?>" data-nested="false"<?php endif; ?>> | ||
| <?php foreach ($this->items as $i => $item) : ?> | ||
| <?php | ||
|
|
@@ -273,6 +260,10 @@ | |
| <?php endforeach; ?> | ||
| </tbody> | ||
| </table> | ||
|
|
||
|
||
| <?php // load the pagination. ?> | ||
| <?php echo $this->pagination->getListFooter(); ?> | ||
|
|
||
| <?php // Load the batch processing form. ?> | ||
| <?php if ($user->authorise('core.create', $extension) | ||
| && $user->authorise('core.edit', $extension) | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -42,13 +42,6 @@ | |
| </th> | ||
| </tr> | ||
| </thead> | ||
| <tfoot> | ||
| <tr> | ||
| <td colspan="3"> | ||
| <?php echo $this->pagination->getListFooter(); ?> | ||
| </td> | ||
| </tr> | ||
| </tfoot> | ||
| <tbody> | ||
| <?php $i = 0; ?> | ||
| <?php foreach ($this->items as $table => $count) : ?> | ||
|
|
@@ -69,6 +62,10 @@ | |
| <?php endforeach; ?> | ||
| </tbody> | ||
| </table> | ||
|
|
||
|
||
| <?php // load the pagination. ?> | ||
| <?php echo $this->pagination->getListFooter(); ?> | ||
|
|
||
| <?php endif; ?> | ||
| <input type="hidden" name="task" value=""> | ||
| <input type="hidden" name="boxchecked" value="0"> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -83,13 +83,6 @@ | |
| </th> | ||
| </tr> | ||
| </thead> | ||
| <tfoot> | ||
| <tr> | ||
| <td colspan="10"> | ||
| <?php echo $this->pagination->getListFooter(); ?> | ||
| </td> | ||
| </tr> | ||
| </tfoot> | ||
| <tbody <?php if ($saveOrder) :?> class="js-draggable" data-url="<?php echo $saveOrderingUrl; ?>" data-direction="<?php echo strtolower($listDirn); ?>" data-nested="true"<?php endif; ?>> | ||
| <?php | ||
| $n = count($this->items); | ||
|
|
@@ -180,6 +173,10 @@ | |
| <?php endforeach; ?> | ||
| </tbody> | ||
| </table> | ||
|
|
||
|
||
| <?php // load the pagination. ?> | ||
| <?php echo $this->pagination->getListFooter(); ?> | ||
|
|
||
| <?php // Load the batch processing form. ?> | ||
| <?php if ($user->authorise('core.create', 'com_contact') | ||
| && $user->authorise('core.edit', 'com_contact') | ||
|
|
||
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.
Remove tabs.