diff --git a/app/assets/stylesheets/administrate/application.scss b/app/assets/stylesheets/administrate/application.scss index 86c5254ec..b8c5df794 100644 --- a/app/assets/stylesheets/administrate/application.scss +++ b/app/assets/stylesheets/administrate/application.scss @@ -29,3 +29,5 @@ @import 'components/pagination'; @import 'components/search'; @import 'components/reports'; + +@import 'custom_styles'; diff --git a/app/assets/stylesheets/administrate/custom_styles.scss b/app/assets/stylesheets/administrate/custom_styles.scss new file mode 100644 index 000000000..859a35689 --- /dev/null +++ b/app/assets/stylesheets/administrate/custom_styles.scss @@ -0,0 +1,24 @@ +// custom styles for the dashboard + +.feature-cell { + background: $color-extra-light-blue; + border-radius: 10px; + float: left; + margin-left: 8px; + margin-top: 6px; + padding: 4px 12px; + + .icon-container { + margin-right: 4px; + + } + + .value-container { + margin-left: 6px; + } +} + + +.feature-container { + max-width: 100rem; +} diff --git a/app/views/fields/account_features_field/_form.html.erb b/app/views/fields/account_features_field/_form.html.erb index c067e81c1..c0ef0f425 100644 --- a/app/views/fields/account_features_field/_form.html.erb +++ b/app/views/fields/account_features_field/_form.html.erb @@ -1,9 +1,14 @@
<%= f.label field.attribute %>
-
+
<% field.data.each do |key,val| %> - <%= key %>: <%= check_box "enabled_features", "feature_#{key}", { checked: val }, true, false %> -
+
+ <% if ['audit_logs', 'response_bot'].include? key %> + + <% end %> + <%= key %> + <%= check_box "enabled_features", "feature_#{key}", { checked: val }, true, false %> +
<% end %>
diff --git a/app/views/fields/account_features_field/_show.html.erb b/app/views/fields/account_features_field/_show.html.erb index f7c8fd694..d67c0c860 100644 --- a/app/views/fields/account_features_field/_show.html.erb +++ b/app/views/fields/account_features_field/_show.html.erb @@ -1,6 +1,12 @@ -
- <% field.data.each do |key,val| %> - <%= key %>: <%= val %>
+
+ <% field.data.each do |key,val| %> +
+ <% if ['audit_logs', 'response_bot'].include? key %> + + <% end %> + <%= key %> + <%= val.present? ? '✅' : '❌' %> +
<% end %>