Skip to content

Commit

Permalink
Updated UI for language updates
Browse files Browse the repository at this point in the history
  • Loading branch information
mhayes2772 committed May 28, 2024
1 parent d267cd2 commit 72bd02f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
12 changes: 6 additions & 6 deletions app/femr/ui/views/admin/updates/manage.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,14 @@ <h2>Languages</h2>
<div id="language-table-wrapper">
<table id="language-table">
@for(language <- viewModel.getLanguages){
<tr>
<td><div class="status-box" style="background-color:
@if(language.getStatus == "Optimized" ){green} else{
@if(language.getStatus == "Not Optimized"){yellow} else{red}};"></div></td>
<td>@language.getLanguageName</td>
<td><input type="checkbox" class="language-checkbox" name="@language.getCode" onClick="updateSchedule(name)"
<tr style="background-color: @if(language.getStatus == "Optimized"){#90EE90} else{
@if(language.getStatus == "Not Optimized"){#FFFF8F} else{#AA4A44}};"
class="language-row">
<td class="checkbox-wrapper"><input type="checkbox" class="language-checkbox" name="@language.getCode" onClick="updateSchedule(name)"
@if(language.getUpdateScheduled){checked} else {
@if(language.getStatus == "Optimized"){checked disabled}} /></td>
<td>@language.getLanguageName</td>

</tr>
}
</table>
Expand Down
12 changes: 11 additions & 1 deletion public/css/admin/configure.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,20 @@
overflow: auto;
margin-bottom: 25px;
}
#language-table {
width: 100%;
}

.language-row:hover{
filter: brightness(80%);
}

.checkbox-wrapper{
padding-left: 4px;
}

.language-checkbox{
cursor: pointer;
float: right;
}

.status-box{
Expand Down

0 comments on commit 72bd02f

Please sign in to comment.