diff options
author | spag <spag@golwen.net> | 2013-02-12 15:53:49 +0100 |
---|---|---|
committer | spag <spag@golwen.net> | 2013-02-12 15:53:49 +0100 |
commit | 36d1a38594361dcd021c23ae9c5040a37d0918df (patch) | |
tree | 15ebad678743935103e441bc54609ef9c58801a4 /app/views/parking_stalls | |
parent | fbdb5dca9b3979010b87b16fcb3bf9410c453e91 (diff) |
make parking stall child of user/tenant
Diffstat (limited to 'app/views/parking_stalls')
-rw-r--r-- | app/views/parking_stalls/_form.html.haml | 2 | ||||
-rw-r--r-- | app/views/parking_stalls/_form_core.html.haml | 2 | ||||
-rw-r--r-- | app/views/parking_stalls/_index_core.html.haml | 6 | ||||
-rw-r--r-- | app/views/parking_stalls/index.html.haml | 2 | ||||
-rw-r--r-- | app/views/parking_stalls/show.html.haml | 8 |
5 files changed, 4 insertions, 16 deletions
diff --git a/app/views/parking_stalls/_form.html.haml b/app/views/parking_stalls/_form.html.haml index 5b1523b..60b60b7 100644 --- a/app/views/parking_stalls/_form.html.haml +++ b/app/views/parking_stalls/_form.html.haml @@ -1,4 +1,4 @@ -= simple_form_for(@parking_stall) do |f| += simple_form_for([@parent, @parking_stall]) do |f| = f.error_notification = render "form_core", :f => f diff --git a/app/views/parking_stalls/_form_core.html.haml b/app/views/parking_stalls/_form_core.html.haml index db68f99..add5c53 100644 --- a/app/views/parking_stalls/_form_core.html.haml +++ b/app/views/parking_stalls/_form_core.html.haml @@ -1,6 +1,4 @@ .inputs = f.input :name, :label => t('parking_stalls.form.name.label'), :hint => conditional_hint('parking_stalls.form.name.hint') = f.input :lot, :label => t('parking_stalls.form.lot.label'), :hint => conditional_hint('parking_stalls.form.lot.hint') - = f.input :parking_stallable_id, :label => t('parking_stalls.form.parking_stallable_id.label'), :hint => conditional_hint('parking_stalls.form.parking_stallable_id.hint') - = f.input :parking_stallable_type, :label => t('parking_stalls.form.parking_stallable_type.label'), :hint => conditional_hint('parking_stalls.form.parking_stallable_type.hint') = f.input :comment, :label => t('parking_stalls.form.comment.label'), :hint => conditional_hint('parking_stalls.form.comment.hint') diff --git a/app/views/parking_stalls/_index_core.html.haml b/app/views/parking_stalls/_index_core.html.haml index fb317a0..9f25217 100644 --- a/app/views/parking_stalls/_index_core.html.haml +++ b/app/views/parking_stalls/_index_core.html.haml @@ -2,8 +2,6 @@ %tr %th= t('parking_stalls.index.name') %th= t('parking_stalls.index.lot') - %th= t('parking_stalls.index.parking_stallable_id') - %th= t('parking_stalls.index.parking_stallable_type') %th= t('parking_stalls.index.comment') @@ -11,7 +9,5 @@ %tr %td= parking_stall.name %td= parking_stall.lot - %td= parking_stall.parking_stallable_id - %td= parking_stall.parking_stallable_type %td= parking_stall.comment - =render :partial => 'shared/index_view_edit_destroy_part', :locals => {:child => parking_stall}
\ No newline at end of file + =render :partial => 'shared/index_view_edit_destroy_part', :locals => {:parent => parking_stall.parking_stallable, :child => parking_stall}
\ No newline at end of file diff --git a/app/views/parking_stalls/index.html.haml b/app/views/parking_stalls/index.html.haml index 9472ff0..7f82bbe 100644 --- a/app/views/parking_stalls/index.html.haml +++ b/app/views/parking_stalls/index.html.haml @@ -3,4 +3,4 @@ - if @parking_stalls && @parking_stalls.count > 0 = render "index_core", :parking_stalls => @parking_stalls -= render :partial => 'shared/create_link', :locals => {:child_class => ParkingStall}
\ No newline at end of file += render :partial => 'shared/create_link', :locals => {:parent => @parent, :child_class => ParkingStall}
\ No newline at end of file diff --git a/app/views/parking_stalls/show.html.haml b/app/views/parking_stalls/show.html.haml index a95c111..583a0ee 100644 --- a/app/views/parking_stalls/show.html.haml +++ b/app/views/parking_stalls/show.html.haml @@ -7,13 +7,7 @@ %strong= t('parking_stalls.show.lot') + ":" = @parking_stall.lot %p - %strong= t('parking_stalls.show.parking_stallable_id') + ":" - = @parking_stall.parking_stallable_id -%p - %strong= t('parking_stalls.show.parking_stallable_type') + ":" - = @parking_stall.parking_stallable_type -%p %strong= t('parking_stalls.show.comment') + ":" = @parking_stall.comment -= render :partial => 'shared/show_edit_destroy_part', :locals => { :child => @parking_stall }
\ No newline at end of file += render :partial => 'shared/show_edit_destroy_part', :locals => { :parent => @parking_stall.parking_stallable, :child => @parking_stall } |