X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=templates%2Fwebpages%2Frequirement_spec%2F_form.html;h=a89a99b2895ce7ac6d2de7ea7d351b475033b4aa;hb=2a48b1f8cbe598a1aba1bfbb8cb4bdd4620e08c7;hp=5512294b8443e4207cc214e93b66ece08dda422e;hpb=8e082571fb1ea2d8a46b863a764a56fb26823226;p=kivitendo-erp.git diff --git a/templates/webpages/requirement_spec/_form.html b/templates/webpages/requirement_spec/_form.html index 5512294b8..a89a99b28 100644 --- a/templates/webpages/requirement_spec/_form.html +++ b/templates/webpages/requirement_spec/_form.html @@ -1,4 +1,4 @@ -[%- USE LxERP -%][%- USE L -%] +[%- USE LxERP -%][%- USE L -%][%- USE HTML -%] [%- DEFAULT id_prefix = 'basic_settings_form' submit_as = 'post' %] @@ -14,13 +14,13 @@ [% L.input_tag("requirement_spec.title", SELF.requirement_spec.title, id=id_prefix _ '_title') %] -[%- UNLESS SELF.requirement_spec.is_template %] - [% LxERP.t8("Requirement Spec Type") %] [% L.select_tag("requirement_spec.type_id", SELF.types, default=SELF.requirement_spec.type_id, title_key="description", id=id_prefix _ '_type_id') %] +[%- UNLESS SELF.requirement_spec.is_template %] + [% LxERP.t8("Requirement Spec Status") %] [% L.select_tag("requirement_spec.status_id", SELF.statuses, default=SELF.requirement_spec.status_id, title_key="description", id=id_prefix _ '_status_id') %] @@ -39,13 +39,31 @@ [%- END %] + [% cvars = SELF.requirement_spec.cvars_by_config %] + + [% FOREACH var = cvars %] + + [% HTML.escape(var.config.description) %] + + + [% INCLUDE 'common/render_cvar_input.html' + cvar_name_prefix = 'cvars.' + %] + + + [% END %] + [%- IF SELF.copy_source %] [%- L.hidden_tag('copy_source_id', SELF.copy_source.id) %]

- [%- LxERP.t8("The new requirement spec will be a copy of '#1' for customer '#2'.", SELF.copy_source.title, SELF.copy_source.customer.name) %] + [%- IF SELF.requirement_spec.is_template %] + [%- LxERP.t8("The new requirement spec template will be a copy of '#1'.", SELF.copy_source.title) %] + [%- ELSE %] + [%- LxERP.t8("The new requirement spec will be a copy of '#1' for customer '#2'.", SELF.copy_source.title, SELF.copy_source.customer.name) %] + [%- END %]

[%- END %]