Completed UnitsController#import and Unit index view
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
en:
|
||||
body_trackers_menu_caption: 'Body trackers'
|
||||
field_shortname: 'Short name'
|
||||
field_action: 'Action'
|
||||
body_trackers:
|
||||
index:
|
||||
heading: 'Summary'
|
||||
@@ -14,3 +15,4 @@ en:
|
||||
index:
|
||||
heading: 'Units'
|
||||
heading_new_unit: 'New unit'
|
||||
heading_import: 'Import'
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
resources :projects do
|
||||
shallow do
|
||||
resources :body_trackers, :only => [:index]
|
||||
resources :units, :only => [:new, :index, :create, :destroy] do
|
||||
resources :units, :only => [:index, :create, :destroy] do
|
||||
post 'import', on: :collection
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user