Skip to content
Snippets Groups Projects
Commit 3483d13a authored by Claas Kazzer's avatar Claas Kazzer Committed by Robert Lange
Browse files

refs #19693 [finc] advanced search

* removes redundant aria-labels
parent 17d44826
No related merge requests found
...@@ -123,12 +123,12 @@ if (isset($searchDetails) && is_object($searchDetails)) { ...@@ -123,12 +123,12 @@ if (isset($searchDetails) && is_object($searchDetails)) {
<label for="search_lookfor<?=$group . '_' . $search?>"> <label for="search_lookfor<?=$group . '_' . $search?>">
<?=$this->transEsc("search_terms")?>: <?=$this->transEsc("search_terms")?>:
</label> </label>
<input name="lookfor<?=$group ?>[]" id="search_lookfor<?=$group . '_' . $search ?>" class="adv-term-input form-control" type="text"<?php if (isset($setQueries[$group][$search])): ?> value="<?=$this->escapeHtml($setQueries[$group][$search]->getString())?>"<?php endif; ?> aria-label="<?=$this->transEsc("search_terms")?>"> <input name="lookfor<?=$group ?>[]" id="search_lookfor<?=$group . '_' . $search ?>" class="adv-term-input form-control" type="text"<?php if (isset($setQueries[$group][$search])): ?> value="<?=$this->escapeHtml($setQueries[$group][$search]->getString())?>"<?php endif; ?>>
</div> </div>
<div class="adv-select"> <div class="adv-select">
<label for="type<?=$group . '_' . $search?>"><?=$this->transEsc("Search type")?>:</label> <label for="type<?=$group . '_' . $search?>"><?=$this->transEsc("Search type")?>:</label>
<select id="type<?=$group . '_' . $search?>" class="adv-term-type form-control" name="type<?=$group?>[]" aria-label="<?=$this->transEsc("Search type")?>"> <select id="type<?=$group . '_' . $search?>" class="adv-term-type form-control" name="type<?=$group?>[]">
<?php foreach ($this->options->getAdvancedHandlers() as $searchVal => $searchDesc): ?> <?php foreach ($this->options->getAdvancedHandlers() as $searchVal => $searchDesc): ?>
<option value="<?=$this->escapeHtml($searchVal)?>"<?php if(isset($setQueries[$group][$search]) && $searchVal == $setQueries[$group][$search]->getHandler()):?> selected<?php endif;?>><?=$this->transEsc($searchDesc)?></option> <option value="<?=$this->escapeHtml($searchVal)?>"<?php if(isset($setQueries[$group][$search]) && $searchVal == $setQueries[$group][$search]->getHandler()):?> selected<?php endif;?>><?=$this->transEsc($searchDesc)?></option>
<?php endforeach; ?> <?php endforeach; ?>
...@@ -157,7 +157,7 @@ if (isset($searchDetails) && is_object($searchDetails)) { ...@@ -157,7 +157,7 @@ if (isset($searchDetails) && is_object($searchDetails)) {
</div> </div>
<div class="adv-group-match"> <div class="adv-group-match">
<label class="search_bool" for="search_bool<?=$group ?>"><?=$this->transEsc("search_match")?>:&nbsp;</label> <label class="search_bool" for="search_bool<?=$group ?>"><?=$this->transEsc("search_match")?>:&nbsp;</label>
<select id="search_bool<?=$group?>" name="bool<?=$group?>[]" class="form-control"> <select id="search_bool<?=$group?>" name="bool<?=$group?>[]" class="form-control">
<option value="AND"<?php if(isset($setSearchGroups[$group]) && 'AND' == $setSearchGroups[$group]):?> selected<?php endif;?>><?=$this->transEsc("search_AND")?></option> <option value="AND"<?php if(isset($setSearchGroups[$group]) && 'AND' == $setSearchGroups[$group]):?> selected<?php endif;?>><?=$this->transEsc("search_AND")?></option>
<option value="OR"<?php if(isset($setSearchGroups[$group]) && 'OR' == $setSearchGroups[$group]):?> selected<?php endif;?>><?=$this->transEsc("search_OR")?></option> <option value="OR"<?php if(isset($setSearchGroups[$group]) && 'OR' == $setSearchGroups[$group]):?> selected<?php endif;?>><?=$this->transEsc("search_OR")?></option>
<option value="NOT"<?php if(isset($setSearchGroups[$group]) && 'NOT' == $setSearchGroups[$group]):?> selected<?php endif;?>><?=$this->transEsc("search_NOT")?></option> <option value="NOT"<?php if(isset($setSearchGroups[$group]) && 'NOT' == $setSearchGroups[$group]):?> selected<?php endif;?>><?=$this->transEsc("search_NOT")?></option>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment