From a490d9696bcda77ac09d3b69035c1e68e8211dae Mon Sep 17 00:00:00 2001 From: Rohan Mitchell Date: Fri, 10 Jul 2015 17:11:06 +1000 Subject: [PATCH] Content manage hub signup page --- app/controllers/admin/contents_controller.rb | 1 + app/models/content_configuration.rb | 5 ++ app/views/shops/signup.html.haml | 78 +------------------- 3 files changed, 9 insertions(+), 75 deletions(-) diff --git a/app/controllers/admin/contents_controller.rb b/app/controllers/admin/contents_controller.rb index 44ad851394..ad66ca880c 100644 --- a/app/controllers/admin/contents_controller.rb +++ b/app/controllers/admin/contents_controller.rb @@ -3,6 +3,7 @@ module Admin def edit @preference_sections = [{name: 'Home page', preferences: [:home_tagline_cta, :home_whats_happening]}, {name: 'Producer signup page', preferences: [:producer_signup_pricing_table_html, :producer_signup_case_studies_html, :producer_signup_detail_html]}, + {name: 'Hub signup page', preferences: [:hub_signup_pricing_table_html, :hub_signup_case_studies_html, :hub_signup_detail_html]}, {name: 'Footer', preferences: [:footer_facebook_url, :footer_twitter_url, :footer_instagram_url, :footer_linkedin_url, :footer_googleplus_url, :footer_pinterest_url, :footer_email, :footer_links_md, :footer_about_url]}] end diff --git a/app/models/content_configuration.rb b/app/models/content_configuration.rb index fbd274ba6c..773d49f0b1 100644 --- a/app/models/content_configuration.rb +++ b/app/models/content_configuration.rb @@ -8,6 +8,11 @@ class ContentConfiguration < Spree::Preferences::Configuration preference :producer_signup_case_studies_html, :text, default: "(TODO: Case studies)" preference :producer_signup_detail_html, :text, default: "(TODO: Detail)" + # Hubs sign-up page + preference :hub_signup_pricing_table_html, :text, default: "(TODO: Pricing table)" + preference :hub_signup_case_studies_html, :text, default: "(TODO: Case studies)" + preference :hub_signup_detail_html, :text, default: "(TODO: Detail)" + # Footer preference :footer_facebook_url, :string, default: "https://www.facebook.com/OpenFoodNet" preference :footer_twitter_url, :string, default: "https://twitter.com/OpenFoodNet" diff --git a/app/views/shops/signup.html.haml b/app/views/shops/signup.html.haml index 72c319413f..a04f7d82e2 100644 --- a/app/views/shops/signup.html.haml +++ b/app/views/shops/signup.html.haml @@ -20,78 +20,14 @@ -# If there is a time-sensitive offer you can write it here, e.g. -# Sign up before 30th June for an extra month free! %br - %table.signup-table.hubs-table{cellpadding: "0", cellspacing: "0"} - %thead - %tr - %td - %h5 - %td.text-center{width: "20%"} - %h5 Basic - %td.text-center{width: "24%"} - %h5 Plus - %tr - %td - %p - %strong Profile - %p - %span.text-small Get a profile on the Open Food Network - including a listing on the Shops page and a pin on the OFN Map. These help people to find and connect with you. - %td.text-center - %i.ofn-i_003-check.text-big - %td.text-center - %i.ofn-i_003-check.text-big - %tr - %td - %p - %strong Shop - %p.text-small Get a shopfront on OFN to sell food from multiple suppliers & producers. - %p.text-small Basic support included: - %ul.small - %li User manual - %li Post queries to discussion forum/via contact form - %li Report bugs/suggestions - %li Regular release notes – what's new - %td.text-center - %td.text-center - %i.ofn-i_003-check.text-big - %tfoot - %tr - %td - %td.text-center{valign: "top"} - %h2 - Free - %td.text-center{valign: "top"} - %h2 - .text-small - First - %br - month - Free - %p.text-small - Then, 2% of transactions - %br - %em - Capped at - %strong $50 - per month - %br - %em (Special offer for 2015) + = ContentConfig.hub_signup_pricing_table_html.html_safe #shops-case-studies .row .small-12.medium-10.medium-offset-1.columns %h2.text-center Stories from our hubs. %br - .row - .small-12.medium-6.columns - = render 'shared/case_study', img_src: "/assets/case-studies/bfc_logo_square.png", title: "Bondi Food Collective", description: "Bondi Food Collective is a member-based not for profit that provide weekly fruit & veg picked fresh to order, plus dry foods - all organic and all Australian-grown.", link: "http://www.bondifoodcollective.org" - .small-12.medium-6.columns - = render 'shared/case_study', img_src: "/assets/case-studies/bonnie-beef-growers.png", title: "Bonnie Beef Growers", description: "Bonnie Beef Growers work on monthly order cycles for their wide range of beef products and also act as a hub for products from neighboring farms on the Sunshine Coast.", link: "http://www.bonniebeef.com.au" - .row - .small-12.medium-6.columns - = render 'shared/case_study', img_src: "/assets/case-studies/South_East_Food_Hub.png", title: "South East Food Hub", description: "South East Food Hub is a choose-your-own food box service supported by a collective of farmers in Melbourne’s south-east. It distributes food through buying groups or “food clubs”.", link: "http://www.southeastfoodhub.org" - .small-12.medium-6.columns - = render 'shared/case_study', img_src: "/assets/case-studies/baw-baw.png", title: "Baw Baw Organics", description: "A weekly seasonal vegetable box program, Baw Baw Organics services around 100 households with local produce in West Gippsland.", link: "https://bawbawfoodhub.org.au" - + = ContentConfig.hub_signup_case_studies_html.html_safe .pane#cta .row @@ -106,15 +42,7 @@ .row .small-12.medium-10.medium-offset-1.columns %h2.text-center Here's the detail. - = render 'shared/enterprise_type_flowchart', type: 'hubs' - - %h4 Join a marketplace of independent online food stores - %p Create a hub profile on the Open Food Network and gain exposure to a new marketplace of potential buyers. Tell your story in words and images, provide your contact details, and drive connections to your social and online presence. Set up a “Hub” shop and sell products from multiple producers. - %h4 Connect with a new source of customers and suppliers - %p Gain access to the growing crowd of conscientious buyers on the Open Food Network, all looking to make more ethical and sustainable choices when purchasing food. - %p Access new supply opportunities by connecting with producers in your region, sell their products in your shop. - %h4 Manage your business online - %p The Open Food Network provides online tools to help with the day-to-day running of your business. Manage your product listing and stock levels. Create, receive and manage orders from your buyers, and organise payments online. Generate invoices for orders and export them to your accounting software, and access a range of reports. + = ContentConfig.hub_signup_detail_html.html_safe = render partial: "shared/footer"