From 73a32fdaf1232b967e9e3eb05e5c71022892acfb Mon Sep 17 00:00:00 2001 From: Rob H Date: Fri, 29 Aug 2014 23:10:23 +1000 Subject: [PATCH] Remove distributor_info: 'how does it work' from enterprises edit page --- .../enterprises/show/add_distributor_info.html.haml.deface | 4 ---- app/views/admin/enterprises/_form.html.haml | 5 ----- spec/features/admin/enterprises_spec.rb | 1 - 3 files changed, 10 deletions(-) delete mode 100644 app/overrides/admin/enterprises/show/add_distributor_info.html.haml.deface diff --git a/app/overrides/admin/enterprises/show/add_distributor_info.html.haml.deface b/app/overrides/admin/enterprises/show/add_distributor_info.html.haml.deface deleted file mode 100644 index 866d632e18..0000000000 --- a/app/overrides/admin/enterprises/show/add_distributor_info.html.haml.deface +++ /dev/null @@ -1,4 +0,0 @@ -/ insert_after "[data-hook='long_description']" -%tr{'data-hook' => 'distributor_info'} - %th Distributor Info: - %td= @enterprise.distributor_info.andand.html_safe \ No newline at end of file diff --git a/app/views/admin/enterprises/_form.html.haml b/app/views/admin/enterprises/_form.html.haml index ff2a7fd660..6625e91097 100644 --- a/app/views/admin/enterprises/_form.html.haml +++ b/app/views/admin/enterprises/_form.html.haml @@ -182,11 +182,6 @@ = f.label :long_description, 'About Us' .omega.eight.columns = f.text_area :long_description, rows: 6, placeholder: 'Tell us about yourself. This information appears on your public profile (under "About Us")', class: 'fullwidth' - .row - .alpha.three.columns - = f.label :distributor_info, 'How does your hub work?' - .omega.eight.columns - = f.text_area :distributor_info, rows: 6, placeholder: 'Hub only: Explain your distribution offer/s - this is more detailed information that the user can access by clicking on "How does it work?"', class: 'fullwidth' %fieldset.eleven.columns.alpha.no-border-bottom %legend IMAGES .row diff --git a/spec/features/admin/enterprises_spec.rb b/spec/features/admin/enterprises_spec.rb index 90139c9c29..958b8867dc 100644 --- a/spec/features/admin/enterprises_spec.rb +++ b/spec/features/admin/enterprises_spec.rb @@ -106,7 +106,6 @@ feature %q{ select('Victoria', :from => 'enterprise_address_attributes_state_id') fill_in 'enterprise_description', :with => 'Connecting farmers and eaters' fill_in 'enterprise_long_description', :with => 'Zombie ipsum reversus ab viral inferno, nam rick grimes malum cerebro.' - fill_in 'enterprise_distributor_info', :with => 'Zombie ipsum reversus ab viral inferno, nam rick grimes malum cerebro.' click_button 'Create' flash_message.should == 'Enterprise "Eaterprises" has been successfully created!'