mirror of
https://github.com/edcommonwealth/ecp.org.git
synced 2026-03-18 03:36:27 -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,26 +0,0 @@
|
|||
<div class="container pb-5">
|
||||
<h1>Contact Form</h1>
|
||||
<%= form_for @contact do |f| %>
|
||||
<div class="col-md-6">
|
||||
<%= f.label :name %></br>
|
||||
<%= f.text_field :name, required: true, class: "contact-form-text-area" %></br>
|
||||
|
||||
<%= f.label :email %></br>
|
||||
<%= f.text_field :email, required: true, class: "contact-form-text-area" %></br>
|
||||
|
||||
<%= f.label :organization %></br>
|
||||
<%= f.text_field :organization, required: true, class: "contact-form-text-area" %></br>
|
||||
|
||||
<%= f.label :message %></br>
|
||||
<%= f.text_area :message, rows: 8, cols: 40, required: true, class: "contact-form-text-area",
|
||||
placeholder: "Send me a message"%></br>
|
||||
|
||||
<div class= "d-none">
|
||||
<%= f.label :nickname %>
|
||||
<%= f.text_field :nickname, :hint => 'Leave this field blank!' %>
|
||||
</div>
|
||||
|
||||
<%= f.submit 'Send Message', class: 'btn btn-primary' %>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
Loading…
Add table
Add a link
Reference in a new issue