Skip to content

Commit

Permalink
render errors partial for RelationTypesController
Browse files Browse the repository at this point in the history
  • Loading branch information
krzysiek1507 committed Aug 6, 2016
1 parent d28831c commit 51e50e1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/views/spree/admin/relation_types/edit.html.erb
Expand Up @@ -2,6 +2,8 @@
<%= Spree.t(:editing_resource, resource: Spree::RelationType.model_name.human) %>
<% end %>
<%= render partial: 'spree/admin/shared/error_messages', locals: { target: @relation_type } %>
<% content_for :page_actions do %>
<%= button_link_to Spree.t(:back_to_resource_list, resource: Spree::RelationType.model_name.human), spree.admin_relation_types_path, class: 'btn-primary', icon: 'arrow-left' %>
<% end %>
Expand Down
2 changes: 2 additions & 0 deletions app/views/spree/admin/relation_types/new.html.erb
Expand Up @@ -2,6 +2,8 @@
<%= Spree.t(:new_relation_type) %>
<% end %>
<%= render partial: 'spree/admin/shared/error_messages', locals: { target: @relation_type } %>
<% content_for :page_actions do %>
<%= button_link_to Spree.t(:back_to_resource_list, resource: Spree::RelationType.model_name.human), spree.admin_relation_types_path, class: 'btn-primary', icon: 'arrow-left' %>
<% end %>
Expand Down

0 comments on commit 51e50e1

Please sign in to comment.