cancer_predict/app/views/admin/cancerpredicts/showSubmit.html.erb

63 lines
1.0 KiB
Plaintext
Raw Normal View History

<table>
<thead>
<tr>
<% @result_names.each do |name|%>
<th><%=name.to_s.html_safe %></th>
<%end%>
</tr>
</thead>
<tbody>
<% @results.each do |result| %>
<tr>
<% result.result.each_with_index do |(key,value),i| %>
<% if key != "locale" %>
<% if @choicenames[i] == "" %>
<td><%= value %></td>
<% else %>
<td><%= @choicenames[i][value.to_i-1] %></td>
<% end %>
<% end %>
<%end%>
</tr>
<%end%>
</tbody>
<style type="text/css">
thead > tr > th{
border:1px solid;
background: bisque;
}
tbody{
background:white;
}
tbody > tr > td{
border:1px solid;
position: relative;
}
.show_li,.show_li *{
list-style:none;
color:balck;
}
.show_li ul{
display:none;
}
#clicktosee{
color:blue;
cursor:pointer;
}
.checkbox{
left: 50%;
position: absolute;
transform: translate(-50%, -50%) !important;
top: 50%;
}
#updatebtn{
margin-top: 1em;
position: fixed;
right: 1em;
background-color: rgb(210, 105, 0);
color: white;
border: 0em;
padding: 0.125em 0.5em;
border-radius: 0.5em;
}
</style>