new type fixed
This commit is contained in:
1 parent
5d6dd8cded
commit
49d1ca6997
5 files changed
+18
-11
No files matched your search
@@ -1,6 +1,6 @@
|
||||
<% @co_author_relations.each do |co_author_relation| %>
|
||||
<%# @co_author_relations.each do |co_author_relation| %>
|
||||
<tr>
|
||||
<td><%= co_author_relation.relation %></td>
|
||||
<td><%= link_to 'Destroy', desktop_co_author_relation_path(co_author_relation), confirm: 'Are you sure?', method: :delete %></td>
|
||||
<td><%= show_form.relation %></td>
|
||||
<td><%= link_to 'Destroy', desktop_co_author_relation_path(show_form), confirm: 'Are you sure?', method: :delete, :class=>"bt-delete" %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
<%# end %>
|
||||
@@ -2,13 +2,15 @@
|
||||
|
||||
<%= render 'form' %>
|
||||
|
||||
<table>
|
||||
<table id="co_author_relation_table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Relation</th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
|
||||
<%= render 'show_form'%>
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
<%= render :partial => 'show_form', :collection => @co_author_relations %>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -2,6 +2,7 @@
|
||||
<%= link_to "New Co-Author", new_desktop_co_author_path, :class=>"bt-co-author" %>
|
||||
<%= link_to "New Type", desktop_co_author_relations_path, :class=>"bt-new-type" %>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>EMail</th>
|
||||
@@ -10,7 +11,8 @@
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
<% @co_authors.each do |co_author| %>
|
||||
<tr>
|
||||
<td><%= co_author.co_author %></td>
|
||||
@@ -20,5 +22,6 @@
|
||||
<td><%= link_to 'Destroy', desktop_co_author_path(co_author), method: :delete, confirm: 'Are you sure?', :class=>"bt-delete" %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
<br />
|
||||
Reference in new issue
Block a user