silverstrap 

silverstrap Commit Details

Date:2013-10-15 11:21:04 (7 years 1 month ago)
Author:Nicola Fontana
Branch:bootstrap2, dev, master, master-1.0, ss3
Commit:4ddb9d66d8411df88a2eff3fe863ab3f14e0661e
Parents: 8bd81052272f81ac2b2411dc7a5e4c89e236e0f7
Message:Enhance search form accessibility

Added field description via the title attribute and set to "required"
the search terms, as there is no reason to look up an emtpy string.
Changes:
Mlang/en.yml (1 diff)
Mlang/it.yml (1 diff)
Mtemplates/SearchForm.ss (1 diff)

File differences

lang/en.yml
33
44
55
6
67
78
GOTO: 'Go to {page} page'
TOC: 'Table of contents'
Search: 'Search'
SearchTitle: 'Enter the terms to search'
RESULTS: 'Showing results for "{query}" ({count} pages found):'
NORESULTS: 'No results containing "{query}" were found.'
lang/it.yml
33
44
55
6
67
78
GOTO: 'Vai alla pagina {page}'
TOC: 'Indice'
Search: 'Cerca'
SearchTitle: 'Inserire i termini da ricercare'
RESULTS: 'Visualizzazione dei risultati per "{query}" ({count} pagine trovate):'
NORESULTS: 'Nessuna voce contenente "{query}" รจ stata trovata.'
templates/SearchForm.ss
11
22
3
3
44
55
66
<form class="navbar-form form-search pull-right" $FormAttributes>
<div class="input-append">
<input name="Search" type="text" class="search-query input-medium" value="$SearchQuery">
<input name="Search" type="text" title="<%t Silverstrap.SearchTitle %>" required class="search-query input-medium" value="$SearchQuery">
<button type="submit" class="btn btn-primary"><%t Silverstrap.Search %></button>
</div>
</form>

Archive Download the corresponding diff file