More CSS simplification

Edit domain names, updates credentials and virtuals
Model domain tests for length and valid characters
This commit is contained in:
2024-05-20 12:41:45 +01:00
parent 781b2bb9f0
commit dcd4efdd4e
7 changed files with 50 additions and 5 deletions

View File

@@ -12,11 +12,13 @@
<% end %>
<div>
<%= form.label :domain, style: "display: block" %>
<%= form.text_field :domain %>
<%= form.label :domain %>:<%= form.text_field :domain %>
</div>
<div>
<%= form.submit %>
</div>
<% end %>

View File

@@ -1,3 +1,5 @@
<div class="domain">
<h1>Editing domain</h1>
<%= render "form", domain: @domain %>
@@ -5,6 +7,8 @@
<br>
<div>
<%= link_to "Show this domain", @domain %> |
<%= link_to "Back to domains", domains_path %>
<%= link_to "Back", @domain %> |
<%= link_to "Home", domains_path %>
</div>
</div>

View File

@@ -1,6 +1,6 @@
<div class="domain">
<div class="domain-header">
<h2><%= @domain.domain %> <%#= link_to "Edit", edit_domain_path(@domain) %> <%= link_to "Delete", @domain, data: { turbo_method: :delete, turbo_confirm: "Are you sure?"} %></h2>
<h2><%= @domain.domain %> <%= link_to "Edit", edit_domain_path(@domain) %> <%= link_to "Delete", @domain, data: { turbo_method: :delete, turbo_confirm: "Are you sure?"} %></h2>
</div>
<div class="email-list">
<h3>Credentials (<%= @domain.credentials.count %>) <%= link_to "Add #{@domain.domain} email address", new_domain_credential_path(@domain) %></h3>