Revision b28312f7
Von Sven Schöling vor mehr als 13 Jahren hinzugefügt
SL/Template/Plugin/L.pm | ||
---|---|---|
s/y+/\%Y/gi;
|
||
} $::myconfig{"dateformat"};
|
||
|
||
$params{cal_align} ||= 'BR';
|
||
|
||
my $cal_align = delete $params{cal_align} || 'BR';
|
||
my $str_value = blessed $value ? $value->to_lxoffice : $value;
|
||
|
||
$self->input_tag($name, $str_value,
|
||
... | ... | |
) . ((!$params{no_cal}) ?
|
||
$self->html_tag('img', undef,
|
||
src => 'image/calendar.png',
|
||
alt => $::locale->text('Calendar'),
|
||
id => "trigger$seq",
|
||
title => _H($::myconfig{dateformat}),
|
||
%params,
|
||
) .
|
||
$self->javascript(
|
||
"Calendar.setup({ inputField: '$name_e', ifFormat: '$datefmt', align: '$params{cal_align}', button: 'trigger$seq' });"
|
||
"Calendar.setup({ inputField: '$name_e', ifFormat: '$datefmt', align: '$cal_align', button: 'trigger$seq' });"
|
||
) : '');
|
||
}
|
||
|
Auch abrufbar als: Unified diff
Bei date_tag die Kalender Orientierung nicht als html Attribut ausgeben.