29
0
mirror of https://github.com/joomla/joomla-cms.git synced 2024-08-03 17:50:26 +00:00

[4.3] Content Archive a11y (#41329)

This commit is contained in:
Brian Teeman 2023-08-07 18:09:50 +01:00 committed by GitHub
parent c14d6639b4
commit de6a50ebf9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,29 +25,35 @@ use Joomla\CMS\Router\Route;
<form id="adminForm" action="<?php echo Route::_('index.php'); ?>" method="post" class="com-content-archive__form">
<fieldset class="com-content-archive__filters filters">
<div class="filter-search form-inline">
<?php if ($this->params->get('filter_field') !== 'hide') : ?>
<div class="me-2">
<label class="filter-search-lbl visually-hidden" for="filter-search"><?php echo Text::_('COM_CONTENT_TITLE_FILTER_LABEL') . '&#160;'; ?></label>
<input type="text" name="filter-search" id="filter-search" value="<?php echo $this->escape($this->filter); ?>" class="inputbox col-md-2" onchange="document.getElementById('adminForm').submit();" placeholder="<?php echo Text::_('COM_CONTENT_TITLE_FILTER_LABEL'); ?>">
<legend class="visually-hidden">
<?php echo Text::_('COM_CONTENT_FORM_FILTER_LEGEND'); ?>
</legend>
<div class="filter-search form-inline">
<?php if ($this->params->get('filter_field') !== 'hide') : ?>
<div class="mb-2">
<label class="filter-search-lbl visually-hidden" for="filter-search"><?php echo Text::_('COM_CONTENT_TITLE_FILTER_LABEL') . '&#160;'; ?></label>
<input type="text" name="filter-search" id="filter-search" value="<?php echo $this->escape($this->filter); ?>" class="inputbox col-md-2" onchange="document.getElementById('adminForm').submit();" placeholder="<?php echo Text::_('COM_CONTENT_TITLE_FILTER_LABEL'); ?>">
</div>
<?php endif; ?>
<span class="me-2">
<label class="visually-hidden" for="month"><?php echo Text::_('JMONTH'); ?></label>
<?php echo $this->form->monthField; ?>
</span>
<span class="me-2">
<label class="visually-hidden" for="year"><?php echo Text::_('JYEAR'); ?></label>
<?php echo $this->form->yearField; ?>
</span>
<span class="me-2">
<label class="visually-hidden" for="limit"><?php echo Text::_('JGLOBAL_DISPLAY_NUM'); ?></label>
<?php echo $this->form->limitField; ?>
</span>
<button type="submit" class="btn btn-primary" style="vertical-align: top;"><?php echo Text::_('JGLOBAL_FILTER_BUTTON'); ?></button>
<input type="hidden" name="view" value="archive">
<input type="hidden" name="option" value="com_content">
<input type="hidden" name="limitstart" value="0">
</div>
<?php endif; ?>
<span class="me-2">
<?php echo $this->form->monthField; ?>
</span>
<span class="me-2">
<?php echo $this->form->yearField; ?>
</span>
<span class="me-2">
<?php echo $this->form->limitField; ?>
</span>
<button type="submit" class="btn btn-primary" style="vertical-align: top;"><?php echo Text::_('JGLOBAL_FILTER_BUTTON'); ?></button>
<input type="hidden" name="view" value="archive">
<input type="hidden" name="option" value="com_content">
<input type="hidden" name="limitstart" value="0">
</div>
</fieldset>
</form>
<?php echo $this->loadTemplate('items'); ?>