carboncoop / geovation

http://myhomeenergysalford.carbon.coop/
GNU General Public License v3.0
0 stars 0 forks source link

Email my results, share and print buttons not working #5

Open cagabi opened 7 years ago

cagabi commented 7 years ago

Not working anywhere

cagabi commented 7 years ago

On top of the "Share and print buttons" I am also doing the "Email my results" functionality but this is showing to be more complicated than I thought if we want the email to be a nice thing: we cannot do it through the email client (clicking in the "Email my results" and opening an email window) as we cannot pre-fill the body of the email with html (which means no images, no links, etc). The way to do it is for the tool to send the email itself. It is possible to do but I have spent a while trying and reading documentation and I am not very clear yet about how to do it.

So the question, is it worth spending the time?

There is the quick option, still using the email client with the body of the email being something like:

To see your results copy and paste this URL in your browser http://myhomeenergysalford.carbon.coop/os-addresses/results/osgb1000028936534?floor-area=54.6047992&external-perimeter=17.76142248277&altitude=54.8&roof-height-base=4.9&roof-height-max=9.0&roof-height-max=9.0&floor-area-user-modified=&build-date=1900-1929&build-storeys=2&loft-conversion-date=&flat-or-apartment-above=&flat-or-apartment-below=false&wall-material=masonryCavityUninsulated&windows-north=10&windows-south=2&windows-east-west=2&window-type=doubleGlazedOlder&loft-insulation=50mm&floor-insulation=50mm&home-draughts=diyDraughtproofing&home-heating=radiatorsWithOlderBoiler&another-heating-source=&home-heating-extra-1=&total-light-fittings=3&low-energy-light-fittings=2&appliance-rated=false&home-solar=false&home-solar-rating=&fuel-type-1=electric_annual_kwh&electricity-usage=100&fuel-type-2=gas_annual_m3&gas-usage=100&preference-carbon=1&preference-cost=2&preference-comfort=3

Which doesn't look very professional.

What do you think:

cagabi commented 7 years ago

I have done the "Share my results" in Facebook and Twitter. The buttons for them used to be in the "Find out more" page, but I have decided to move them to the "Results" page as I think it makes more sense to have them there. They are not buttons anymore but icons and you can find them at the bottom of the page.