From: Moritz Bunkus Date: Wed, 2 Apr 2014 12:11:29 +0000 (+0200) Subject: Pflichtenheftvorlagen kopieren: Kopie soll auch wieder eine Vorlage sein X-Git-Tag: release-3.2.0beta~467^2~5 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=0276d36bd59e43e75485b9228cd4250bcd5438e1;p=kivitendo-erp.git Pflichtenheftvorlagen kopieren: Kopie soll auch wieder eine Vorlage sein --- diff --git a/SL/Controller/RequirementSpec.pm b/SL/Controller/RequirementSpec.pm index 0e9d84856..7e25d7e7d 100644 --- a/SL/Controller/RequirementSpec.pm +++ b/SL/Controller/RequirementSpec.pm @@ -63,7 +63,7 @@ sub action_new { $self->requirement_spec(SL::DB::RequirementSpec->new(is_template => $::form->{is_template})); if ($self->copy_source) { - $self->requirement_spec->$_($self->copy_source->$_) for qw(type_id status_id customer_id title hourly_rate) + $self->requirement_spec->$_($self->copy_source->$_) for qw(type_id status_id customer_id title hourly_rate is_template) } $self->render('requirement_spec/new', title => $self->requirement_spec->is_template ? t8('Create a new requirement spec template') : t8('Create a new requirement spec')); diff --git a/locale/de/all b/locale/de/all index c52238a50..ff6ec935d 100755 --- a/locale/de/all +++ b/locale/de/all @@ -2408,6 +2408,7 @@ $self->{texts} = { 'The name is missing.' => 'Der Name fehlt.', 'The name is not unique.' => 'Der Name ist nicht eindeutig.', 'The name must only consist of letters, numbers and underscores and start with a letter.' => 'Der Name darf nur aus Buchstaben (keine Umlaute), Ziffern und Unterstrichen bestehen und muss mit einem Buchstaben beginnen.', + 'The new requirement spec template will be a copy of \'#1\'.' => 'Die neue Pflichtenheftvorlage wird eine Kopie von \'#1\' sein.', 'The new requirement spec will be a copy of \'#1\' for customer \'#2\'.' => 'Das neue Pflichtenheft wird eine Kopie von \'#1\' für Kunde \'#2\' sein.', 'The number of days for full payment' => 'Die Anzahl Tage, bis die Rechnung in voller Höhe bezahlt werden muss', 'The numbering will start at 1 with each requirement spec.' => 'Die Nummerierung beginnt bei jedem Pflichtenheft bei 1.', diff --git a/templates/webpages/requirement_spec/_form.html b/templates/webpages/requirement_spec/_form.html index b9cf9c6ac..20bf7a116 100644 --- a/templates/webpages/requirement_spec/_form.html +++ b/templates/webpages/requirement_spec/_form.html @@ -45,7 +45,11 @@ [%- 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 %]