Added autofocus on the name input in admin/lodgings#new

This commit is contained in:
foteinidd 2017-11-30 18:59:36 +02:00 committed by Stella Rouzi
parent d464e48085
commit 52dcc6c474

View file

@ -9,7 +9,7 @@
.row
.col-md-8
= semantic_form_for(@lodging, url: (@lodging.new_record? ? admin_conference_lodgings_path : admin_conference_lodging_path(@conference.short_title, @lodging))) do |f|
= f.input :name
= f.input :name, input_html: { autofocus: true}
= f.input :website_link
= f.input :description, input_html: { rows: 5, cols: 20, data: { provide: 'markdown-editable' } }, hint: markdown_hint
- if @lodging.picture?