Revision d1aa2c72
Von Hans Peter Schlaepfer vor mehr als 2 Jahren hinzugefügt
SL/Presenter/Tag.pm | ||
---|---|---|
|
||
_set_id_attribute(\%attributes, $attributes{name}) if $attributes{name};
|
||
$attributes{type} ||= 'button';
|
||
$attributes{tag} ||= 'input';
|
||
|
||
$onclick = 'if (!confirm("'. _J(delete($attributes{confirm})) .'")) return false; ' . $onclick if $attributes{confirm};
|
||
|
||
html_tag('input', undef, %attributes, value => $value, (onclick => $onclick)x!!$onclick);
|
||
if ( $attributes{tag} == 'input' ) {
|
||
html_tag('input', undef, %attributes, value => $value, (onclick => $onclick)x!!$onclick)
|
||
}
|
||
elsif ( $attributes{tag} == 'button' ) {
|
||
html_tag('button', undef, %attributes, value => $value, (onclick => $onclick)x!!$onclick);
|
||
}
|
||
}
|
||
|
||
sub submit_tag {
|
Auch abrufbar als: Unified diff
design40: Presenter button_tag: input und button unterscheiden