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

@ -14,7 +14,7 @@
.row
.col-md-6
= semantic_form_for(@commercial, url: admin_conference_commercials_path(conference_id: @conference.short_title)) do |f|
= f.input :url, label: 'URL', as: :string, input_html: { required: 'required' },
= f.input :url, label: 'URL', as: :string, input_html: { required: 'required', autofocus: true },
hint: 'Just paste the url of your video/photo provider. YouTube, Vimeo, SpeakerDeck, SlideShare, Instagram, Flickr.'
= f.action :submit, as: :button, button_html: { class: 'btn btn-primary pull-right', disabled: true }
%hr