Migrate to fontawesome 6

This commit is contained in:
Sasi Olin 2022-05-18 06:31:12 +02:00
parent a79e9ee993
commit d31233c033
63 changed files with 153 additions and 268 deletions

View file

@ -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?