Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Improve the feature management styles in super admin (#7920)
- Loading branch information
1 parent
29110ff
commit 30b8a36
Showing
4 changed files
with
43 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,14 @@ | ||
<div class="field-unit__label"> | ||
<%= f.label field.attribute %> | ||
</div> | ||
<div class="field-unit__field"> | ||
<div class="field-unit__field feature-container"> | ||
<% field.data.each do |key,val| %> | ||
<%= key %>: <%= check_box "enabled_features", "feature_#{key}", { checked: val }, true, false %> | ||
<br/> | ||
<div class='feature-cell'> | ||
<% if ['audit_logs', 'response_bot'].include? key %> | ||
<span class='icon-container'><i class="ion ion-asterisk"></i></span> | ||
<% end %> | ||
<span><%= key %></span> | ||
<span class='value-container'><%= check_box "enabled_features", "feature_#{key}", { checked: val }, true, false %> </span> | ||
</div> | ||
<% end %> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
<div class="field-unit__field"> | ||
<% field.data.each do |key,val| %> | ||
<%= key %>: <%= val %> <br/> | ||
<div class='feature-container'> | ||
<% field.data.each do |key,val| %> | ||
<div class='feature-cell'> | ||
<% if ['audit_logs', 'response_bot'].include? key %> | ||
<span class='icon-container'><i class="ion ion-asterisk"></i></span> | ||
<% end %> | ||
<span><%= key %></span> | ||
<span class='value-container'><%= val.present? ? '✅' : '❌' %> </span> | ||
</div> | ||
<% end %> | ||
</div> | ||
|