Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 86eed232

Von Sven Schöling vor mehr als 6 Jahren hinzugefügt

  • ID 86eed2325ab7d7342ad0b832931cb8ada6efb5d7
  • Vorgänger c4f7ec71
  • Nachfolger 5dbd60bf

Presenter::Tag: textarea_tag aus Plugin/L verschoben

Unterschiede anzeigen:

SL/Template/Plugin/L.pm
80 80
sub ajax_submit_tag          { return _call_presenter('ajax_submit_tag',          @_); }
81 81
sub link                     { return _call_presenter('link',                     @_); }
82 82
sub input_number_tag         { return _call_presenter('input_number_tag',         @_); }
83
sub textarea_tag             { return _call_presenter('textarea_tag',             @_); }
83 84

  
84 85
sub _set_id_attribute {
85 86
  my ($attributes, $name, $unique) = @_;
......
94 95
  return $self->html_tag('img', undef, %options);
95 96
}
96 97

  
97
sub textarea_tag {
98
  my ($self, $name, $content, %attributes) = _hashify(3, @_);
99

  
100
  _set_id_attribute(\%attributes, $name);
101
  $attributes{rows}  *= 1; # required by standard
102
  $attributes{cols}  *= 1; # required by standard
103
  $content            = $content ? _H($content) : '';
104

  
105
  return $self->html_tag('textarea', $content, %attributes, name => $name);
106
}
107

  
108 98
sub radio_button_tag {
109 99
  my ($self, $name, %attributes) = _hashify(2, @_);
110 100

  

Auch abrufbar als: Unified diff