diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-10-25 08:32:47 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-10-25 08:32:47 +0000 |
commit | 2f51dc11cfdf9cdbd2c67ec12cf93f4b112646bc (patch) | |
tree | 0216d3fe5705f74909c477e9fcca56438e0fed5f /config | |
parent | 934a7615c427caf120b5386e62aa159b8d79949f (diff) | |
download | redmine-2f51dc11cfdf9cdbd2c67ec12cf93f4b112646bc.tar.gz redmine-2f51dc11cfdf9cdbd2c67ec12cf93f4b112646bc.zip |
Adds Enumeration custom field format (#21060).
Similar to List format but stores possible values as records.
git-svn-id: http://svn.redmine.org/redmine/trunk@14745 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config')
-rw-r--r-- | config/locales/en.yml | 1 | ||||
-rw-r--r-- | config/locales/fr.yml | 1 | ||||
-rw-r--r-- | config/routes.rb | 5 |
3 files changed, 6 insertions, 1 deletions
diff --git a/config/locales/en.yml b/config/locales/en.yml index 3e1e94906..dada67a9f 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -970,6 +970,7 @@ en: label_file_content_preview: File content preview label_create_missing_values: Create missing values label_api: API + label_field_format_enumeration: Key/value list button_login: Login button_submit: Submit diff --git a/config/locales/fr.yml b/config/locales/fr.yml index 517b227bb..2cedaa2cd 100644 --- a/config/locales/fr.yml +++ b/config/locales/fr.yml @@ -988,6 +988,7 @@ fr: label_file_content_preview: Aperçu du contenu du fichier label_create_missing_values: Créer les valeurs manquantes label_api: API + label_field_format_enumeration: Liste clé/valeur button_login: Connexion button_submit: Soumettre diff --git a/config/routes.rb b/config/routes.rb index d7ddac190..47451453f 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -311,7 +311,10 @@ Rails.application.routes.draw do post 'update_issue_done_ratio' end end - resources :custom_fields, :except => :show + resources :custom_fields, :except => :show do + resources :enumerations, :controller => 'custom_field_enumerations', :except => [:show, :new, :edit] + put 'enumerations', :to => 'custom_field_enumerations#update_each' + end resources :roles do collection do match 'permissions', :via => [:get, :post] |