Skip to content

Commit

Permalink
Merge pull request #1057 from sparc-request/wth-likert-bug
Browse files Browse the repository at this point in the history
wth - (SPARCCatalog) Form Functionality Likert Scale Bug
  • Loading branch information
Stuart-Johnson committed Aug 16, 2017
2 parents c085dcb + 0778213 commit 2ef6a9a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#= require 'likert'

$ ->
needOptions = ['radio_button', 'checkbox', 'dropdown', 'multiple_dropdown']
needOptions = ['radio_button', 'checkbox', 'dropdown', 'multiple_dropdown', 'likert']

showOptions = (selection, array) ->
$.inArray(selection, array) > -1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
%br
- item.item_options.each do |item_option|
.likert-group.no-padding{ class: "col-sm-#{(12 / item.item_options.count).ceil}"}
- item.item_options.each_with_index do |item_option, index|
.likert-group.no-padding{ class: "col-sm-#{(12 / item.item_options.length).ceil}"}
.col-sm-12.text-center.no-padding
= index+1
.col-sm-12.text-center.no-padding.likert
Expand Down

0 comments on commit 2ef6a9a

Please sign in to comment.