[%# Date dropdown -- includes month, day, year Authors: Afuna Copyright (c) 2015 by Dreamwidth Studios, LLC. This program is free software; you may redistribute it and/or modify it under the same terms as Perl itself. For a copy of the license, please reference 'perldoc perlartistic' or 'perldoc perlgpl'. %] [%- birthdate_error = errors.get( "birthdate" ) -%]
[%- '.birthdate' | ml -%]
[%- form.select( label = dw.ml( ".month" ) labelclass = "hidden" name = 'bday_mm' class = birthdate_error ? "error" : "" items = months "aria-required" = "true" "aria-describedby" = "birthdate-label" ) -%]
[%- form.select( label = dw.ml( ".day" ) labelclass = "hidden" name = 'bday_dd' class = birthdate_error ? "error" : "" items = days "aria-required" = "true" "aria-describedby" = "birthdate-label" ) -%]
[%- form.textbox( label = dw.ml( ".year" ) labelclass = "hidden" name = 'bday_yyyy' class = birthdate_error ? "error" : "" size = '4' maxlength = '4' "aria-required" = "true" "aria-describedby" = "birthdate-label" ) -%]
[%- INCLUDE components/error.tt error_name='birthdate' -%]