Slowly getting the nested controllers working

More tests required
This commit is contained in:
2023-06-21 09:31:20 +01:00
parent b76375d086
commit 1eb8c2753f
6 changed files with 26 additions and 6 deletions

View File

@@ -1,6 +1,5 @@
<p style="color: green"><%= notice %></p>
<%= render @domain %>
<h1><%= @domain.domain %></h1>
<div>
<%= link_to "Edit this domain", edit_domain_path(@domain) %> |
@@ -8,3 +7,19 @@
<%= button_to "Destroy this domain", @domain, method: :delete %>
</div>
<h2>Credentials (<%= @domain.credentials.count %>)</h2>
<ul>
<li><%= link_to "Add #{@domain.domain} email address", new_domain_credential_path(@domain) %>
<% @domain.credentials.each do |credential| %>
<li><%= credential.email %></li>
<% end %>
</ul>
<h2>Virtuals (<%= @domain.virtuals.count %>)</h2>
<ul>
<li><%= link_to "Add #{@domain.domain} virtual email", new_domain_virtual_path(@domain) %></li>
<% @domain.virtuals.each do |virtual| %>
<li><%= virtual.email%> >> <%= virtual.destination%></li>
<% end %>
</ul>