add validation for name, used and quantity

This commit is contained in:
hitman 2017-03-21 16:46:09 +05:30 committed by Stella Rouzi
parent 4b72d383ea
commit e73baa2754
4 changed files with 25 additions and 4 deletions

View file

@ -9,7 +9,7 @@
.col-md-8
= semantic_form_for(@resource, :url => (@resource.new_record? ? admin_conference_resources_path : admin_conference_resource_path(@conference.short_title, @resource))) do |f|
= f.input :name
= f.input :description, input_html: { rows: 5, data: { provide: "markdown-editable" } }
= f.input :description, input_html: { rows: 5, data: { provide: 'markdown-editable' } }
= f.input :used
= f.input :quantity
%p.text-right