implement duplication

This commit is contained in:
Bilal
2020-07-13 21:45:00 +02:00
parent 0741f8a230
commit e41d7603d0
7 changed files with 55 additions and 8 deletions

View File

@@ -254,6 +254,7 @@ en:
manage: Manage
qr_code: QR Code
sign: Sign
duplicate: Duplicate
no_fee: No Fee
create:
notice: The release template has been created
@@ -302,7 +303,11 @@ en:
releases_automatically_organized: Releases are automatically organized as theyre submitted
update:
notice: The release template has been updated
error: The release template cannot be updated
duplicate:
name_prefix: Copy of %{template_name}
duplicates:
create:
error: Failed to duplicate release template
contracts:
for_office_use_only:
description_labels:

View File

@@ -106,6 +106,7 @@ es:
contract_template:
actions:
edit: Edit (ES)
duplicate: Duplicate (ES)
edit:
heading: Edit Contract Template (ES)
form:
@@ -136,7 +137,11 @@ es:
releases_automatically_organized: Releases are automatically organized as theyre submitted (ES)
update:
notice: The release template has been updated (ES)
error: The release template cannot be updated (ES)
duplicate:
name_prefix: Copy of %{template_name} (ES)
duplicates:
create:
error: Failed to duplicate release template (ES)
contracts:
for_office_use_only:
description_labels:

View File

@@ -59,6 +59,7 @@ Rails.application.routes.draw do
resources :contract_templates, only: [:index, :new, :create, :edit, :update, :destroy] do
resource :qr_codes, only: [:show], controller: "contract_templates/qr_codes"
resource :blank_contracts, only: [:show, :new, :create], controller: "contract_templates/blank_contracts"
resource :duplicates, only: [:create], controller: "contract_templates/duplicates"
end
resource :release_template_imports, only: [:new, :create]
resources :project_memberships, only: [:index, :create, :destroy]