Specify url input type for client-side validation

This commit is contained in:
Michael Klimenko 2018-03-23 12:32:55 +05:00 committed by James Mason
parent 58cb62dd6d
commit 4bc783b42c

View file

@ -10,7 +10,7 @@
.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, input_html: { autofocus: true}
= f.input :website_link
= f.input :website_link, input_html: { type: :url }
= f.input :description, input_html: { rows: 5, cols: 20, data: { provide: 'markdown-editable' } }, hint: markdown_hint
- if @lodging.picture?
= image_tag @lodging.picture.thumb.url