Looking good. Webauthn integration time!!

This commit is contained in:
2024-05-22 09:54:22 +01:00
parent 0edc7d0563
commit ba3392fb47
11 changed files with 75 additions and 92 deletions

View File

@@ -1,4 +1,4 @@
<%= form_with(model: [@domain,virtual]) do |form| %>
<%= form_with(model: [@domain,virtual], html: { class: "work-area"}) do |form| %>
<% if virtual.errors.any? %>
<div style="color: red">
<h2><%= pluralize(virtual.errors.count, "error") %> prohibited this virtual from being saved:</h2>
@@ -11,17 +11,12 @@
</div>
<% end %>
<div>
<%= form.label :email, style: "display: block" %>
<%= form.text_field :email %>
</div>
<%= form.label :email%>:<%= form.text_field :email %>@<%=@domain.domain%>
<br/>
<div>
<%= form.label :destination, style: "display: block" %>
<%= form.text_field :destination %>
</div>
<%= form.label :destination %>:<%= form.text_field :destination %>
<br/>
<%= form.submit %>
<div>
<%= form.submit %>
</div>
<% end %>

View File

@@ -1,9 +1,8 @@
<h1>New virtual for <%= @domain.domain %></h1>
<h2>New virtual for <%= @domain.domain %></h2>
<%= render "form", virtual: @virtual %>
<br>
<div>
<%= link_to "Back to #{@domain.domain}", domain_path(@domain) %>
</div>
<%= link_to "Back to #{@domain.domain}", domain_path(@domain) %>