X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=templates%2Fwebpages%2Frequirement_spec%2F_form.html;h=20bf7a1164eb47636db39706718595546b4b86f4;hb=f5b56d67c1ef6dc87d4dcd50ba31f9a2b0a20846;hp=3f4e0cf976281679d4f74865cee7ec8c850e9191;hpb=405a41ef0836ac972a3ebb9e99f05de7d13d4275;p=kivitendo-erp.git diff --git a/templates/webpages/requirement_spec/_form.html b/templates/webpages/requirement_spec/_form.html index 3f4e0cf97..20bf7a116 100644 --- a/templates/webpages/requirement_spec/_form.html +++ b/templates/webpages/requirement_spec/_form.html @@ -2,8 +2,11 @@ [%- 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 %] + @@ -24,7 +29,7 @@ + onchange="kivi.requirement_spec.basic_settings_customer_changed('#" _ id_prefix _ "_customer_id', '#" _ id_prefix _ "_hourly_rate_as_number')") %] @@ -32,13 +37,19 @@ +[%- 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') %]
[% LxERP.t8("Customer") %] [% L.select_tag("requirement_spec.customer_id", SELF.customers, default=SELF.requirement_spec.customer_id, title_key="name", id=id_prefix _ '_customer_id', - onchange="basic_settings_customer_changed('#" _ id_prefix _ "_customer_id', '#" _ id_prefix _ "_hourly_rate_as_number')") %]
[% L.input_tag("requirement_spec.hourly_rate_as_number", SELF.requirement_spec.hourly_rate_as_number, id=id_prefix _ '_hourly_rate_as_number') %]
[%- 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 %] @@ -46,13 +57,20 @@ [% 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') %] - [%- IF SELF.requirement_spec.id %] - [% L.submit_tag("action_destroy", LxERP.t8('Delete'), confirm=LxERP.t8('Do you really want to delete this object?'), id=id_prefix _ '_action_destroy') %] - [%- END %] - [% LxERP.t8('Abort') %] + [% LxERP.t8('Abort') %] [% ELSE %] - [% L.ajax_submit_tag("controller.pl?action=RequirementSpec/update", "#" _ id_prefix, LxERP.t8("Save")) %] - [% L.ajax_submit_tag("controller.pl?action=RequirementSpec/destroy", "#" _ id_prefix, LxERP.t8("Delete"), confirm=LxERP.t8("Do you really want to delete this object?")) %] + [% L.ajax_submit_tag("controller.pl?action=RequirementSpec/update", "#" _ id_prefix, LxERP.t8("Save"), id=id_prefix _ '_submit') %] + [% END %]