projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
368f961
)
L: hidden_tag, submit_tag
author
Sven Schöling
<s.schoeling@linet-services.de>
Mon, 27 Dec 2010 12:44:32 +0000
(13:44 +0100)
committer
Moritz Bunkus
<m.bunkus@linet-services.de>
Mon, 27 Dec 2010 12:44:32 +0000
(13:44 +0100)
SL/Template/Plugin/L.pm
patch
|
blob
|
history
diff --git
a/SL/Template/Plugin/L.pm
b/SL/Template/Plugin/L.pm
index
ec0c2d0
..
19218db
100644
(file)
--- 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;