mirror of
https://github.com/internetee/registry.git
synced 2025-06-11 07:04:47 +02:00
Remove unused and buggy code
This commit is contained in:
parent
eeec8dd331
commit
8f0f23606c
2 changed files with 3 additions and 16 deletions
|
@ -1,5 +1,4 @@
|
|||
<% panel_class = errors ? 'panel-danger' : 'panel-default' %>
|
||||
<div class="<%= panel_class %> panel">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<%= t ".header_#{domain_contacts.model_name.plural.underscore}" %>
|
||||
</div>
|
||||
|
@ -20,16 +19,6 @@
|
|||
collection: domain_contacts,
|
||||
locals: { domain: domain } %>
|
||||
</tbody>
|
||||
|
||||
<% if errors %>
|
||||
<tfoot>
|
||||
<% errors.each do |error| %>
|
||||
<tr>
|
||||
<td colspan="3"><%= error %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tfoot>
|
||||
<% end %>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
|
@ -21,8 +21,7 @@
|
|||
<div class="col-md-12">
|
||||
<%= 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 %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
@ -30,8 +29,7 @@
|
|||
<div class="col-md-12">
|
||||
<%= 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 %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue