Add additional social media fields to contacts

+ YouTube
+ Blog

Simplify logic in the view, and refactor the test #BetterPlace
This commit is contained in:
James Mason 2018-11-13 13:47:20 -08:00 committed by Henne Vogelsang
parent cd150aaf21
commit a3adf8318d
6 changed files with 51 additions and 35 deletions

View file

@ -12,9 +12,11 @@
= f.input :sponsor_email, hint: 'This will appear in the sponsor segment of the splash for the sponsors to contact to the organizers'
= f.inputs name: 'Social Media' do
= f.input :social_tag, hint: "The hashtag you'll use on Twitter and Google+. Don't include the '#' sign!'"
= f.input :facebook, hint: 'This will appear in the social media section as link to the Facebook page of your Conference'
= f.input :googleplus, label: 'Google+ Url', hint: 'This will appear in the social media section as the link to the Google+ Page of your Conference'
= f.input :twitter, hint: 'This will appear in the social media section as the link to the Twitter Page of your Conference'
= f.input :instagram, hint: 'This will appear in the social media section as the link to the Instagram Page of your Conference'
= f.input :mastodon, hint: 'This will appear in the social media section as the link to the Mastodon Page of your Conference'
= f.input :blog, hint: 'This will appear in the social media section as a link to your conference blog.'
= f.input :facebook, hint: 'This will appear in the social media section as a link to the Facebook page of your Conference'
= f.input :googleplus, label: 'Google+ Url', hint: 'This will appear in the social media section as a link to the Google+ Page of your Conference'
= f.input :twitter, hint: 'This will appear in the social media section as a link to the Twitter Page of your Conference'
= f.input :instagram, hint: 'This will appear in the social media section as a link to the Instagram Page of your Conference'
= f.input :mastodon, hint: 'This will appear in the social media section as a link to the Mastodon Page of your Conference'
= f.input :youtube, hint: 'This will appear in the social media section as a link to the YouTube channel for your conference.'
= f.action :submit, as: :button, button_html: { class: 'btn btn-primary' }