mirror of
https://github.com/chenasraf/snpr.git
synced 2026-05-18 01:39:01 +00:00
Merge branch 'master' of github.com:gedankenstuecke/snpr
This commit is contained in:
@@ -3,8 +3,8 @@
|
||||
<table class="zebra-striped" id="no_snp_overview">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th><%= sortable "id", "ID"%></th>
|
||||
<th>Count</th>
|
||||
<th><%= sortable "characteristic","Phenotype"%></th>
|
||||
<th><%= sortable "number_of_users","Number of users"%></th>
|
||||
<th><%= sortable "created_at", "Created"%>
|
||||
@@ -13,8 +13,8 @@
|
||||
<tbody>
|
||||
<% @phenotypes_paginate.each do |s| %>
|
||||
<tr>
|
||||
<td><%= s.id %></td>
|
||||
<td><%= Phenotype.all.sort! { |a,b| a.id <=> b.id}.index(s) + 1%></td>
|
||||
<td><%= s.id %></td>
|
||||
<td><%= link_to(s.characteristic, s) %></td>
|
||||
<td><%=s.number_of_users%></td>
|
||||
<td><%=s.created_at%></td>
|
||||
|
||||
@@ -47,7 +47,6 @@
|
||||
<h2>Additional phenotypes</h2>
|
||||
<%= f.fields_for :user_phenotypes do |p| %>
|
||||
<% @phenotype = Phenotype.find_by_id(p.object.phenotype_id) %>
|
||||
<% if @phenotype and @phenotype.characteristic != "Hair colour" and @phenotype.characteristic!= "Height" and @phenotype.characteristic != "Skin colour" and @phenotype.characteristic != "Population group"%>
|
||||
<div class="field">
|
||||
|
||||
<script type="text/javascript">
|
||||
@@ -60,7 +59,6 @@
|
||||
|
||||
<%= p.label Phenotype.find_by_id(p.object.phenotype_id).characteristic %><%= p.text_field :variation, :id => "phenotype_"+p.object.phenotype_id.to_s%> <%= p.link_to_remove "Remove"%><br/>
|
||||
</div>
|
||||
<% end %>
|
||||
<%end %>
|
||||
|
||||
<%= link_to "Add a new phenotype", :controller => "phenotypes", :action => "new" %>
|
||||
|
||||
Reference in New Issue
Block a user