Added new Unit form
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
# English strings go here for Rails i18n
|
||||
en:
|
||||
body_trackers_menu_caption: 'Body trackers'
|
||||
field_shortname: 'Short name'
|
||||
body_trackers:
|
||||
index:
|
||||
heading: 'Summary'
|
||||
@@ -9,5 +10,7 @@ en:
|
||||
heading_common: 'Common'
|
||||
link_summary: 'Summary'
|
||||
link_units: 'Units'
|
||||
units:
|
||||
units:
|
||||
index:
|
||||
heading: 'Units'
|
||||
heading_new_unit: 'New unit'
|
||||
|
||||
@@ -3,10 +3,7 @@
|
||||
|
||||
resources :projects do
|
||||
shallow do
|
||||
resources :body_trackers, :controller => 'body_trackers', :only => [:index] do
|
||||
collection do
|
||||
get 'units'
|
||||
end
|
||||
end
|
||||
resources :body_trackers, :only => [:index]
|
||||
resources :units, :only => [:new, :index, :create, :destroy]
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user