From: Moritz Bunkus Date: Tue, 17 Feb 2015 12:40:58 +0000 (+0100) Subject: Pflichtenhefte: Anzeige von CVars über value_as_text() X-Git-Tag: release-3.2.1~51^2~10 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=8cce015eb15e1c919948b27441b9a7dfd905fe39;p=kivitendo-erp.git Pflichtenhefte: Anzeige von CVars über value_as_text() $cvar->value_as_text() macht bereits die richtige Fallunterscheidung, sodass wir hierfür kein eigenes Template benötigen. --- diff --git a/templates/webpages/common/render_cvar_value_readonly.html b/templates/webpages/common/render_cvar_value_readonly.html deleted file mode 100644 index 76e3fa892..000000000 --- a/templates/webpages/common/render_cvar_value_readonly.html +++ /dev/null @@ -1,18 +0,0 @@ -[%- USE T8 %] -[%- USE HTML %] -[%- USE L %] -[%- USE LxERP %] - -[%- IF ( var.config .type == 'bool' ) %] - [% IF var.value %] - [% LxERP.t8("Yes") %] - [% ELSE %] - [% LxERP.t8("No") %] - [% END %] -[%- ELSIF ( var.config .type == 'textfield' ) %] -
[% HTML.escape(var.value) %]
-[%- ELSIF ( var.config.type == 'number' ) %] - [%- LxERP.format_amount(var.value, -2) %] -[%- ELSE %] - [% HTML.escape(var.value) %] -[%- END %] diff --git a/templates/webpages/requirement_spec/_show_basic_settings.html b/templates/webpages/requirement_spec/_show_basic_settings.html index a89c36a1f..af756288c 100644 --- a/templates/webpages/requirement_spec/_show_basic_settings.html +++ b/templates/webpages/requirement_spec/_show_basic_settings.html @@ -41,7 +41,7 @@ [% FOREACH var = cvars %] [% HTML.escape(var.config.description) %] - [% INCLUDE 'common/render_cvar_value_readonly.html' %] + [% HTML.escape(var.value_as_text) %] [% END %]