Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 17761c8d

Von Cem Aydin vor etwa 2 Jahren hinzugefügt

Design 4.0: Benutzerdefinierte Variablen Ausgabe Template aktualisiert (common/render_cvar_input.html)

Unterschiede anzeigen:

templates/design40_webpages/common/render_cvar_input.html
5 5
[% USE LxERP %]
6 6

  
7 7
[% DEFAULT var_name = HTML.escape(cvar_name_prefix) _ HTML.escape(var.config.name) _ HTML.escape(cvar_name_postfix) %]
8
[%- SET style_ = "width: " _ var.config.processed_options.WIDTH _ "px; height: " _ var.config.processed_options.HEIGHT _ "px" %]
8 9

  
9 10
[% IF ( hide_non_editable && !var.config.is_flag('editable') ) %]
10 11
  [% L.hidden_tag(var_name, var.value) %]
......
15 16
[% ELSIF ( var.config .type == 'bool' ) %]
16 17
  [% L.checkbox_tag(var_name, checked = var.value, for_submit = 1) %]
17 18
[% ELSIF ( var.config .type == 'textfield' ) %]
18
  [% L.textarea_tag(var_name, var.value, cols = var.config.processed_options.WIDTH, rows = var.config.processed_options.HEIGHT) %]
19
  [% L.textarea_tag(var_name, var.value, style=style_) %]
20
[%- ELSIF ( var.config .type == 'htmlfield' ) %]
21
  [% L.textarea_tag(var_name, L.restricted_html(var.value), class='texteditor', style=style_) %]
19 22
[% ELSIF ( var.config.type == 'date' ) %]
20 23
  [% L.date_tag(var_name, var.value, class='wi-date') %]
21 24
[% ELSIF ( var.config.type == 'timestamp' ) %]

Auch abrufbar als: Unified diff