Looking good. Webauthn integration time!!
This commit is contained in:
@@ -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 %>
|
||||
|
||||
@@ -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) %>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user