From: Bernd Bleßmann Date: Thu, 20 Aug 2020 20:25:11 +0000 (+0200) Subject: div_tag aus L in Presenter verschoben X-Git-Tag: release-3.5.6.1~65 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=e8c5169fcec290c2eba99b90f22fd47db2047f75;p=kivitendo-erp.git div_tag aus L in Presenter verschoben --- diff --git a/SL/Presenter/Tag.pm b/SL/Presenter/Tag.pm index 80dca58f6..3129437f3 100644 --- a/SL/Presenter/Tag.pm +++ b/SL/Presenter/Tag.pm @@ -11,7 +11,7 @@ our @EXPORT_OK = qw( html_tag input_tag hidden_tag javascript man_days_tag name_to_id select_tag checkbox_tag button_tag submit_tag ajax_submit_tag input_number_tag stringify_attributes restricted_html textarea_tag link_tag date_tag -); + div_tag); our %EXPORT_TAGS = (ALL => \@EXPORT_OK); use Carp; @@ -354,6 +354,11 @@ sub date_tag { ); } +sub div_tag { + my ($content, %params) = @_; + return html_tag('div', $content, %params); +} + 1; __END__ diff --git a/SL/Template/Plugin/L.pm b/SL/Template/Plugin/L.pm index 93508fcf2..7916b782a 100644 --- a/SL/Template/Plugin/L.pm +++ b/SL/Template/Plugin/L.pm @@ -82,6 +82,7 @@ sub link { return _call_presenter('link_tag', sub input_number_tag { return _call_presenter('input_number_tag', @_); } sub textarea_tag { return _call_presenter('textarea_tag', @_); } sub date_tag { return _call_presenter('date_tag', @_); } +sub div_tag { return _call_presenter('div_tag', @_); } sub _set_id_attribute { my ($attributes, $name, $unique) = @_; @@ -118,11 +119,6 @@ sub radio_button_tag { return $code; } -sub div_tag { - my ($self, $content, @slurp) = @_; - return $self->html_tag('div', $content, @slurp); -} - sub ul_tag { my ($self, $content, @slurp) = @_; return $self->html_tag('ul', $content, @slurp);