mirror of
https://github.com/edcommonwealth/ecp.org.git
synced 2026-03-15 10:15:54 -07:00
Update contact form so it confirms the message was sent
This commit is contained in:
parent
7f433cf223
commit
f8c91add3e
7 changed files with 25 additions and 10 deletions
|
|
@ -1,6 +1,6 @@
|
|||
<div class="container pb-5">
|
||||
<h1>Contact Form</h1>
|
||||
<%= form_for @contact do |f| %>
|
||||
<%= form_for @contact, url: home_index_path, method: :create, data: { turbo: false } do |f| %>
|
||||
<div class="col-md-6">
|
||||
<%= f.label :name %></br>
|
||||
<%= f.text_field :name, required: true, class: "contact-form-text-area" %></br>
|
||||
|
|
@ -1 +1 @@
|
|||
<%= render(partial: "new") %>
|
||||
<%= render(partial: "contacts/contact_form") %>
|
||||
|
|
|
|||
|
|
@ -40,4 +40,4 @@
|
|||
|
||||
<!-- Contact section-->
|
||||
<%# <%= link_to "Contact Form", new_contact_path %1> %>
|
||||
<%= render partial: "contacts/new" %>
|
||||
<%= render partial: "contacts/contact_form" %>
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@
|
|||
|
||||
<body>
|
||||
<%= render partial: 'layouts/nav' %>
|
||||
|
||||
<%= yield %>
|
||||
|
||||
<!-- Footer-->
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue