mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
BUGFIX Added an <img> HTML alt attribute to CalendarDateField output HTML so that this field is W3C compliant for <img> elements
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@72982 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
969a95eff7
commit
b8c803f520
@ -10,7 +10,7 @@ class CalendarDateField extends DateField {
|
||||
static function HTMLField( $id, $name, $val ) {
|
||||
return <<<HTML
|
||||
<input type="text" id="$id" name="$name" value="$val" />
|
||||
<img src="sapphire/images/calendar-icon.gif" id="$id-icon" />
|
||||
<img src="sapphire/images/calendar-icon.gif" id="$id-icon" alt="Calendar icon" />
|
||||
<div class="calendarpopup" id="$id-calendar"></div>
|
||||
HTML;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user