1
0

Completed UnitsController#import and Unit index view

This commit is contained in:
cryptogopher
2019-08-22 01:12:37 +02:00
parent 8e7385cdcb
commit e9fc9c6475
7 changed files with 54 additions and 11 deletions

View File

@@ -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'

View File

@@ -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