X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=templates%2Fwebpages%2Frequirement_spec%2F_form.html;h=ea73e4df82f763d772712b86079462a467218b7b;hb=b36fb0f412d2d2b43b8d98d787743cbe1fbf2540;hp=18e99ad6c1adc66272808dd5600ee8e57b532069;hpb=2ea806480ef25ecd3a61a32d80e216e87210c39d;p=kivitendo-erp.git diff --git a/templates/webpages/requirement_spec/_form.html b/templates/webpages/requirement_spec/_form.html index 18e99ad6c..ea73e4df8 100644 --- a/templates/webpages/requirement_spec/_form.html +++ b/templates/webpages/requirement_spec/_form.html @@ -1,9 +1,12 @@ -[%- USE LxERP -%][%- USE L -%] +[%- USE LxERP -%][%- USE L -%][%- USE HTML -%] [%- DEFAULT id_prefix = 'basic_settings_form' submit_as = 'post' %] -
+ +

[% LxERP.t8("Edit general settings") %]

+ [% L.hidden_tag("id", SELF.requirement_spec.id, id=id_prefix _ '_id') %] + [% L.hidden_tag("requirement_spec.is_template", SELF.requirement_spec.is_template, id=id_prefix _ '_is_template') %] @@ -16,6 +19,8 @@ +[%- UNLESS SELF.requirement_spec.is_template %] + @@ -32,23 +37,50 @@ +[%- END %] + + [% cvars = SELF.requirement_spec.cvars_by_config %] + + [% FOREACH var = cvars %] + + + + + + [% END %] +
[% L.select_tag("requirement_spec.type_id", SELF.types, default=SELF.requirement_spec.type_id, title_key="description", id=id_prefix _ '_type_id') %]
[% 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') %][% L.input_tag("requirement_spec.hourly_rate_as_number", SELF.requirement_spec.hourly_rate_as_number, id=id_prefix _ '_hourly_rate_as_number') %]
[% HTML.escape(var.config.description) %] + [% INCLUDE 'common/render_cvar_input.html' + cvar_name_prefix = 'cvars.' + %] +
[%- 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 %]

-[% 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 %] - [% L.ajax_submit_tag("controller.pl?action=RequirementSpec/update", "#" _ id_prefix, LxERP.t8("Save")) %] +[% IF submit_as != 'post' %] + [% L.ajax_submit_tag("controller.pl?action=RequirementSpec/update", "#" _ id_prefix, LxERP.t8("Save"), id=id_prefix _ '_submit') %] + [% END %]