added automatic id attribute generation to all form controls
This commit is contained in:
parent
3058d839c0
commit
4c8ff049cc
29 changed files with 116 additions and 25 deletions
|
|
@ -126,11 +126,12 @@ sub toHtml {
|
|||
name=>$self->{name},
|
||||
value=>$value,
|
||||
size=>$self->{size},
|
||||
extras=>'id="'.$self->{name}.'Id" '.$self->{extras},
|
||||
extras=>$self->{extras},
|
||||
id=>$self->{id},
|
||||
maxlength=>$self->{maxlength}
|
||||
)->toHtml . '<script type="text/javascript">
|
||||
Calendar.setup({
|
||||
inputField : "'.$self->{name}.'Id",
|
||||
inputField : "'.$self->{name}.'",
|
||||
ifFormat : "%Y-%m-%d %H:%M:%S",
|
||||
showsTime : true,
|
||||
timeFormat : "12",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue