From 8f0f23606c094a02e061fc07a3de04fd2a684b5d Mon Sep 17 00:00:00 2001 From: Artur Beljajev Date: Fri, 17 Aug 2018 22:23:54 +0300 Subject: [PATCH] Remove unused and buggy code --- .../domains/partials/_domain_contacts.html.erb | 13 +------------ app/views/registrant/domains/show.html.erb | 6 ++---- 2 files changed, 3 insertions(+), 16 deletions(-) diff --git a/app/views/registrant/domains/partials/_domain_contacts.html.erb b/app/views/registrant/domains/partials/_domain_contacts.html.erb index 9b41288b7..3876e2546 100644 --- a/app/views/registrant/domains/partials/_domain_contacts.html.erb +++ b/app/views/registrant/domains/partials/_domain_contacts.html.erb @@ -1,5 +1,4 @@ -<% panel_class = errors ? 'panel-danger' : 'panel-default' %> -
+
<%= t ".header_#{domain_contacts.model_name.plural.underscore}" %>
@@ -20,16 +19,6 @@ collection: domain_contacts, locals: { domain: domain } %> - - <% if errors %> - - <% errors.each do |error| %> - - <%= error %> - - <% end %> - - <% end %>
\ No newline at end of file diff --git a/app/views/registrant/domains/show.html.erb b/app/views/registrant/domains/show.html.erb index 88d238c7d..d09253b6b 100644 --- a/app/views/registrant/domains/show.html.erb +++ b/app/views/registrant/domains/show.html.erb @@ -21,8 +21,7 @@
<%= render 'registrant/domains/partials/domain_contacts', domain: @domain, - domain_contacts: @domain.tech_domain_contacts, - errors: @domain.errors.messages[:tech_contacts] %> + domain_contacts: @domain.tech_domain_contacts %>
@@ -30,8 +29,7 @@
<%= render 'registrant/domains/partials/domain_contacts', domain: @domain, - domain_contacts: @domain.admin_domain_contacts, - errors: @domain.errors.messages[:admin_contacts] %> + domain_contacts: @domain.admin_domain_contacts %>