Specify url input type for client-side validation

This commit is contained in:
Michael Klimenko 2018-03-23 12:32:55 +05:00
parent 0c6d1fa233
commit 2fb05c8f6e
No known key found for this signature in database
GPG key ID: 8104804717433984

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