Added a label for the search form. Even if we place labels in text input fields as we currently do w/ the search form, a label should be included to maintain accessibility. Set label display to none if it shouldn't be displayed.

This commit is contained in:
Chad Kieffer
2008-11-22 18:39:47 +00:00
parent 6028447993
commit bb6eeb63bb

View File

@@ -1,6 +1,5 @@
<? defined("SYSPATH") or die("No direct script access."); ?>
<img id="gLogo" alt="<?= _("Logo") ?>" src="<?= $theme->url("images/logo.png") ?>" />
<h1><?= $item->title_edit ?></h1>
<?= View::top($theme) ?>
@@ -16,7 +15,7 @@
<form id="gSearchForm" class="gInline">
<ul class="gNoLabels">
<li><input type="text" value="<?= _("Search Gallery ...") ?>"/></li>
<li><label for="search">Search</label><input type="text" name="search" value="<?= _("Search Gallery ...") ?>"/></li>
<li><input type="submit" value="<?= _("search") ?>" /></li>
</ul>
</form>