Added autofocus in a number of forms, plus correction of a few spelling mistakes

folding code into existing hash in commercials/index
This commit is contained in:
Thaleia Tagaraki 2017-12-11 02:01:58 +02:00 committed by Stella Rouzi
parent ada178d62c
commit e5948698db
17 changed files with 17 additions and 17 deletions

View file

@ -11,7 +11,7 @@
.col-md-8
= semantic_form_for(@campaign, url: (@campaign.new_record? ? admin_conference_campaigns_path : admin_conference_campaign_path(@conference.short_title, @campaign))) do |f|
= f.inputs do
= f.input :name
= f.input :name, input_html: { autofocus: true }
= f.inputs name: 'UTM Parameters' do
= f.input :utm_campaign, label: 'Campaign', hint: 'Groups all of the content from one campaign. E.g. 20percentpromocode'
= f.input :utm_source, label: 'Source', hint: 'Which website is sending you traffic. E.g. Facebook, google+, blog'