Skip to content

Commit

Permalink
feat: MQ assessments support No data answer
Browse files Browse the repository at this point in the history
  • Loading branch information
martintomas committed Oct 24, 2023
1 parent 0fd8cdc commit 97e6479
Show file tree
Hide file tree
Showing 6 changed files with 197 additions and 184 deletions.
10 changes: 10 additions & 0 deletions app/assets/stylesheets/tpi/pages/company.scss
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,12 @@
background-size: 8px;
}

&--no-data {
background-image: image-url('icons/oval.svg');
background-color: #C0C2C3;
background-size: 8px;
}

@include until($desktop) {
top: 0;
left: -45px;
Expand Down Expand Up @@ -517,6 +523,10 @@
&--not-applicable {
background-color: #C0C2C3;
}

&--no-data {
background-color: #C0C2C3;
}
}
}
}
2 changes: 1 addition & 1 deletion app/models/mq/question.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module MQ
class Question
include ActiveModel::Model

ANSWERS = ['Yes', 'No', 'Not applicable'].freeze
ANSWERS = ['Yes', 'No', 'Not applicable', 'No data'].freeze

attr_accessor :level, :question, :answer, :number

Expand Down
Loading

0 comments on commit 97e6479

Please sign in to comment.