orbit-basic/app/views/desktop/co_authors/index.html.erb

29 lines
890 B
Plaintext
Raw Normal View History

2012-11-30 16:21:49 +00:00
<h1>list all coauthor</h1>
2012-12-03 06:54:52 +00:00
<%= link_to "New Co-Author", new_desktop_co_author_path, :class=>"bt-co-author" %>
2012-12-03 04:47:05 +00:00
<%= link_to "New Type", desktop_co_author_relations_path, :class=>"bt-new-type" %>
<table>
2012-12-03 07:44:26 +00:00
<thead>
<tr>
<th>Name</th>
<th>EMail</th>
<th>Type</th>
<th></th>
<th></th>
<th></th>
</tr>
2012-12-03 07:44:26 +00:00
</thead>
<tbody>
<% @co_authors.each do |co_author| %>
<tr>
<td><%= co_author.co_author %></td>
<td><%= co_author.email %></td>
2012-12-03 09:16:28 +00:00
<td><%= @co_author_relations.find(co_author.co_author_relations_id).relation \
unless co_author.co_author_relations_id.nil?%></td>
2012-12-03 04:23:56 +00:00
<td><%= link_to 'Edit', edit_desktop_co_author_path(co_author), :class => "bt-edit" %></td>
<td><%= link_to 'Destroy', desktop_co_author_path(co_author), method: :delete, confirm: 'Are you sure?', :class=>"bt-delete" %></td>
</tr>
<% end %>
2012-12-03 07:44:26 +00:00
</tbody>
</table>
<br />