Specify url input type for client-side validation
This commit is contained in:
parent
58cb62dd6d
commit
4bc783b42c
1 changed files with 1 additions and 1 deletions
|
|
@ -10,7 +10,7 @@
|
||||||
.col-md-8
|
.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|
|
= 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 :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
|
= f.input :description, input_html: { rows: 5, cols: 20, data: { provide: 'markdown-editable' } }, hint: markdown_hint
|
||||||
- if @lodging.picture?
|
- if @lodging.picture?
|
||||||
= image_tag @lodging.picture.thumb.url
|
= image_tag @lodging.picture.thumb.url
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue