osem-fcy/app/views/admin/contacts/edit.html.haml
James Mason a3adf8318d Add additional social media fields to contacts
+ YouTube
+ Blog

Simplify logic in the view, and refactor the test #BetterPlace
2018-11-14 15:01:03 +01:00

22 lines
1.7 KiB
Text

.row
.col-md-12
.page-header
%h1 Contact
%p.text-muted
How people can contact you
.row
.col-md-8
= semantic_form_for(@contact, url: admin_conference_contact_path(@conference.short_title), html: {multipart: true}) do |f|
= f.inputs name: 'Mail' do
= f.input :email, input_html: { autofocus: true }, hint: 'Contact email address for your conference. Will be used as reply-to address in emails sent out by the system.'
= 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 :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' }