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

54 lines
1.1 KiB
Plaintext
Raw Normal View History

2019-11-15 00:44:28 +00:00
<div style="clear:both;"></div>
<% @i = 0 %>
2019-11-23 08:14:56 +00:00
<table>
<thead>
<tr>
<% @form_to_show.form_show.values[1].each do |key,vlaue|%>
<th><%=key%></th>
2019-11-15 00:44:28 +00:00
<%end%>
2019-11-23 08:14:56 +00:00
</tr>
</thead>
<%=form_for @form_to_show ,:url=>{:controller=>"cancerpredicts" ,:action=>"edit"} do |form|%>
<tbody>
<%= form.fields_for :form_show do |formfield|%>
<% @form_to_show.form_show.each do |num,property| %>
<tr>
<% property.each do |key,value|%>
<% @value= value %>
<% if @value.class == BSON::Document || @value.class == Hash %>
<% @disp_value = @value[I18n.locale.to_s] rescue "" %>
<%else%>
<%Fixnum%>
<% @disp_value = @value %>
<%end%>
<td><%= formfield.text_field key,{:value=>@disp_value}%></td>
<%end%>
</tr>
<%end%>
<%end%>
</tbody>
2019-11-15 00:44:28 +00:00
<%end%>
2019-11-23 08:14:56 +00:00
</table>
2019-11-15 00:44:28 +00:00
<style type="text/css">
2019-11-23 08:14:56 +00:00
thead > tr > th{
border:1px solid;
background: bisque;
}
tbody{
background:white;
}
tbody > tr > td{
border:1px solid;
}
2019-11-15 00:44:28 +00:00
.show_li,.show_li *{
list-style:none;
color:balck;
}
.show_li ul{
display:none;
}
#clicktosee{
color:blue;
cursor:pointer;
}
2019-11-23 08:14:56 +00:00
</style>