<% @domain.records.each do |record| %> <% end %>
Records Controls
<%= record.name %> IN <%= record.type %> <%= record.supports_prio? ? record.prio : '' %> <%= record.content %> <% if record.disabled? %> <%= link_to 'Enable', enable_domain_record_path(@domain, record), method: :put %> <% else %> <%= link_to 'Disable', disable_domain_record_path(@domain, record), method: :put %> <% end %> <%= link_to 'Edit', edit_domain_record_path(@domain, record) %> <%= link_to 'Remove', [@domain, record], method: :delete, data: { confirm: 'Are you sure?' } %>

<%= link_to 'New Record', new_domain_record_path(@domain) %>