Migrate to fontawesome 6
This commit is contained in:
parent
a79e9ee993
commit
d31233c033
63 changed files with 153 additions and 268 deletions
|
|
@ -7,7 +7,7 @@ class SurveyQuestion < ActiveRecord::Base
|
|||
# Order of this list should not be changed without proper action!
|
||||
enum kind: [:boolean, :choice, :string, :text, :datetime, :numeric]
|
||||
|
||||
ICONS = { boolean: 'dot-circle-o', choice: 'check-square-o', string: 'edit', text: 'align-left', datetime: 'clock-o', numeric: 'slack' }.freeze
|
||||
ICONS = { boolean: 'circle-dot', choice: 'square-check', string: 'pen-to-square', text: 'align-left', datetime: 'clock', numeric: 'hashtag' }.freeze
|
||||
|
||||
validates :title, presence: true
|
||||
validates :possible_answers, :max_choices, :min_choices, presence: true, if: :choice?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue