X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=templates%2Fwebpages%2Frequirement_spec%2F_form.html;h=ea73e4df82f763d772712b86079462a467218b7b;hb=7e61972690cfa1f688ebd9770fcf9d100b9dfdd0;hp=20bf7a1164eb47636db39706718595546b4b86f4;hpb=766f5705ecb9cd56adfbffd94c871959bb64c6fd;p=kivitendo-erp.git diff --git a/templates/webpages/requirement_spec/_form.html b/templates/webpages/requirement_spec/_form.html index 20bf7a116..ea73e4df8 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' %] @@ -39,6 +39,20 @@ [%- END %] + [% cvars = SELF.requirement_spec.cvars_by_config %] + + [% FOREACH var = cvars %] +
-[% IF submit_as == 'post' %] - [% L.hidden_tag("action", "RequirementSpec/dispatch", id=id_prefix _ '_action') %] - [% L.submit_tag("action_" _ (SELF.requirement_spec.id ? "update" : "create"), LxERP.t8('Save'), id=id_prefix _ '_action_update') %] - [% LxERP.t8('Abort') %] -[% ELSE %] +[% IF submit_as != 'post' %] [% L.ajax_submit_tag("controller.pl?action=RequirementSpec/update", "#" _ id_prefix, LxERP.t8("Save"), id=id_prefix _ '_submit') %]