54 lines
1.1 KiB
Plaintext
54 lines
1.1 KiB
Plaintext
<div style="clear:both;"></div>
|
|
<% @i = 0 %>
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<% @form_to_show.form_show.values[1].each do |key,vlaue|%>
|
|
<th><%=key%></th>
|
|
<%end%>
|
|
</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>
|
|
<%end%>
|
|
</table>
|
|
<style type="text/css">
|
|
thead > tr > th{
|
|
border:1px solid;
|
|
background: bisque;
|
|
}
|
|
tbody{
|
|
background:white;
|
|
}
|
|
tbody > tr > td{
|
|
border:1px solid;
|
|
}
|
|
.show_li,.show_li *{
|
|
list-style:none;
|
|
color:balck;
|
|
}
|
|
.show_li ul{
|
|
display:none;
|
|
}
|
|
#clicktosee{
|
|
color:blue;
|
|
cursor:pointer;
|
|
}
|
|
</style> |