From 9f75fa254b57b62156db30f809c4ee07124301a1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Mon, 27 Dec 2010 13:44:32 +0100 Subject: [PATCH] L: hidden_tag, submit_tag --- SL/Template/Plugin/L.pm | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/SL/Template/Plugin/L.pm b/SL/Template/Plugin/L.pm index ec0c2d02f..19218dbb7 100644 --- a/SL/Template/Plugin/L.pm +++ b/SL/Template/Plugin/L.pm @@ -142,6 +142,14 @@ sub input_tag { return $self->html_tag('input', undef, %attributes, name => $name, value => $value); } +sub hidden_tag { + return shift->input_tag(@_, type => 'hidden'); +} + +sub submit_tag { + return shift->input_tag(@_, type => 'submit', class => 'submit'); +} + sub options_for_select { my $self = shift; my $collection = shift; -- 2.20.1