Skip to content

Instantly share code, notes, and snippets.

@KamaKAzii
Created January 10, 2018 07:27
Show Gist options
  • Save KamaKAzii/13ab2d1cf03f6fdec006c6c46b4f08c6 to your computer and use it in GitHub Desktop.
Save KamaKAzii/13ab2d1cf03f6fdec006c6c46b4f08c6 to your computer and use it in GitHub Desktop.
task ezywaydash: :environment do
p = Partner.find(9)
p.dashboard_panel_config.items =
[{"type"=>"mercury_lead",
"name"=>"review-my-mortgage",
"icon"=>"custom/service-review-my-lending.svg",
"class"=>"service-review-my-mortgage",
"label"=>"Review my mortgage",
"description"=>
"Would you like a complementary review of your mortgage? Our finance experts can review your loans to ensure you're getting the best deal from your lender. We can also help with new loans and refinancing requirements."},
{"type"=>"mercury_lead",
"name"=>"value-my-property",
"icon"=>"custom/service-value-my-property.svg",
"class"=>"service-value-my-property",
"custom_fields"=>
[{"name"=>"reason",
"type"=>"radio",
"values"=>[{"value"=>"equity", "caption"=>"I'm looking to access some equity"}, {"value"=>"moving", "caption"=>"I'm thinking about moving"}, {"value"=>"general", "caption"=>"General research"}],
"label"=>"What is your reason?"}],
"label"=>"Value my property",
"description"=>"Find out the latest value of a property you own. We can also provide detailed property reports. Both of these services are free of charge."},
{"type"=>"mercury_lead",
"name"=>"personal-and-car-loans",
"icon"=>"custom/service-personal-and-car-loans.svg",
"class"=>"service-personal-and-car-loans",
"label"=>"Personal & car loans",
"description"=>"Looking for someone to manage your investment property? Or perhaps you'd like a complementary review of your rental yield? Get in touch, we'd love to help."},
{"type"=>"mercury_lead",
"name"=>"finance-calculators",
"icon"=>"custom/service-finance-calculators.svg",
"class"=>"custom/service-finance-calculators.svg",
"label"=>"Finance calculators",
"description"=>"Speak with one of our sales specialists to discuss a sales strategy suited to your needs. "},
{"type"=>"manage_properties",
"name"=>"Review my insurance",
"icon"=>"custom/service-review-my-insurance.svg",
"class"=>"service-review-my-insurance",
"label"=>"Review my insurance",
"description"=>"Are you looking for your next property purchase? Our in house real estate experts can help you at every step. Initial consultations are free of charge."},
{"type"=>"mercury_lead",
"name"=>"ask-a-question",
"icon"=>"custom/service-talk-to-a-planner.svg",
"class"=>"service-ask-a-question",
"label"=>"Ask a question",
"description"=>"Need some advice on building your wealth? Our expert Financial Planners are on hand to tailor a plan for you. Initial consultations are free of charge."}]
p.save
end
task ezywaysurvey: :environment do
p = Partner.find(9)
p.survey_config =
{"questions"=>
[{"name"=>"interests",
"caption"=>"I am interested in",
"type"=>"image_checkbox",
"options"=>
[{"caption"=>"Home loans", "value"=>"home-loans", "image"=>"custom/service-review-my-lending.svg"},
{"caption"=>"Personal or car finance", "value"=>"finance", "image"=>"custom/service-personal-and-car-loans.svg"},
{"caption"=>"Getting an insurance review", "value"=>"insurance-review", "image"=>"custom/service-review-my-insurance.svg"},
{"caption"=>"Learning more about offers from our retailers", "value"=>"wealth_growth", "image"=>"custom/service-find-a-property.svg"}]}],
"title"=>"Before you start...",
"description"=>"If you have a moment to answer these questions, we might be able to further tailor your experience."}
p.save
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment