diff --git a/app/views/desktop/co_author_relations/_show_form.html.erb b/app/views/desktop/co_author_relations/_show_form.html.erb new file mode 100644 index 00000000..2cad8363 --- /dev/null +++ b/app/views/desktop/co_author_relations/_show_form.html.erb @@ -0,0 +1,6 @@ +<% @co_author_relations.each do |co_author_relation| %> + + <%= co_author_relation.relation %> + <%= link_to 'Destroy', desktop_co_author_relation_path(co_author_relation), confirm: 'Are you sure?', method: :delete %> + +<% end %> diff --git a/app/views/desktop/co_author_relations/index.html.erb b/app/views/desktop/co_author_relations/index.html.erb index db3bdfa9..3ce95f0d 100644 --- a/app/views/desktop/co_author_relations/index.html.erb +++ b/app/views/desktop/co_author_relations/index.html.erb @@ -9,10 +9,6 @@ -<% @co_author_relations.each do |co_author_relation| %> - - <%= co_author_relation.relation %> - <%= link_to 'Destroy', desktop_co_author_relation_path(co_author_relation), confirm: 'Are you sure?', method: :delete %> - -<% end %> +<%= render 'show_form'%> +