Implement Event Ratings
This commit is contained in:
parent
5be1ad52ee
commit
20f4853487
67 changed files with 1298 additions and 378 deletions
16
app/views/admin/votable_fields/_form.html.haml
Normal file
16
app/views/admin/votable_fields/_form.html.haml
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
.row
|
||||
.col-md-12
|
||||
.page-header
|
||||
%h1
|
||||
- if @votable_field.new_record?
|
||||
New
|
||||
Votable Field
|
||||
.row
|
||||
.col-md-8
|
||||
= semantic_form_for(@votable_field, :url => (@votable_field.new_record? ? admin_conference_votable_fields_path : admin_conference_votable_field_path(@conference.short_title, @votable_field))) do |f|
|
||||
= f.input :title
|
||||
= f.input :votable_type, collection: options_for_select(['Event'])
|
||||
= f.input :stars, label: 'Add the total number of stars for the field'
|
||||
= f.input :for_admin, label: 'Add this field for voting in admin side only'
|
||||
%p.text-right
|
||||
= f.action :submit, as: :button, button_html: { class: 'btn btn-primary' }
|
||||
Loading…
Add table
Add a link
Reference in a new issue