Updated to Rails 7.0.5.1
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<h1>Domains</h1>
|
||||
<h1>Domains <%= link_to "Add new domain",new_domain_path %> </h1>
|
||||
|
||||
<div id="domains">
|
||||
<ul>
|
||||
@@ -8,4 +8,4 @@
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<%= link_to "New domain", new_domain_path %>
|
||||
|
||||
|
||||
@@ -1,22 +1,38 @@
|
||||
<h1><%= @domain.domain %></h1>
|
||||
<div class="w-100pc br-8 bg-white-lighter border-blue m-3">
|
||||
<div class="p-5 br-t-8 bg-gray-darkest">
|
||||
<h2 class="white fs-m1 fw-400"><%= @domain.domain %> <%= link_to "Edit", edit_domain_path(@domain), class: "inline-block br-3 bw-0 px-3 py-2 fs-s2 bg-blue-darker white pointer hover-opacity-80" %> <%= button_to "Delete", @domain, method: :delete, class: "inline-block button bg-red white focus-red" %></h2>
|
||||
</div>
|
||||
<div class="p-5">
|
||||
<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 %> <%= link_to "Edit", edit_domain_credential_path(@domain,credential) %> | <%= button_to "Destroy this credential", [@domain, credential], method: :delete %> </li>
|
||||
<% end %>
|
||||
</ul>
|
||||
|
||||
<hr/>
|
||||
|
||||
<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%> <%= link_to "Edit", edit_domain_virtual_path(@domain,virtual)%> | <%= button_to "Delete", [@domain, virtual], method: :delete %></li>
|
||||
<% end %>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
<div class="flex justify-between p-5 br-b-8 border-t bc-gray-light">
|
||||
<button class="inline-block br-3 bw-0 px-3 py-2 fs-s2 bg-blue-darker white pointer hover-opacity-80">Read
|
||||
More</button>
|
||||
<button class="inline-block br-3 bw-0 px-3 py-2 fs-s2 bg-gray-lighter black pointer hover-opacity-80">Cancel</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h1></h1>
|
||||
|
||||
<div>
|
||||
|
||||
<div>
|
||||
<%= link_to "Edit this domain", edit_domain_path(@domain) %> | <%= link_to "Back to domains", domains_path %> | <%= 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 %> <%= link_to "Edit", edit_domain_credential_path(@domain,credential) %> |
|
||||
<%= button_to "Destroy this credential", [@domain, credential], method: :delete %> </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>
|
||||
|
||||
Reference in New Issue
Block a user