1
0

Added new Unit form

This commit is contained in:
cryptogopher
2019-08-10 23:31:20 +02:00
parent 2cd9900cea
commit b0789e6217
10 changed files with 65 additions and 17 deletions

View File

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

View File

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