1
0
mirror of https://github.com/danbee/danbarberphoto synced 2025-03-04 08:49:07 +00:00
danbarberphoto/app/views/contacts/new.html.erb
2014-12-10 11:32:38 +00:00

43 lines
1023 B
Plaintext

<% content_for :navigation do %>
<%= render 'shared/main_nav' %>
<% end %>
<div class="sg-17 contact-form">
<% if flash[:notice] -%>
<div id="notice"><%= flash[:notice] %></div>
<% end -%>
<% if flash[:alert] -%>
<div id="alert"><%= flash[:alert] %></div>
<% end -%>
<%= form_for :contact, url: { action: 'create' }, html: { id: 'contact_form' } do |f| %>
<p>Please use the form below to contact me.</p>
<p>
<%= f.label :name %>
<%= f.text_field :name %>
</p>
<p>
<%= f.label :email %>
<%= f.text_field :email %>
</p>
<p>
<%= f.label :subject %>
<%= f.text_field :subject %>
</p>
<p>
<%= f.label :message %>
<%= f.text_area :message %>
</p>
<p>
<%= f.label "-", style: "opacity: 0;" %>
<%= f.submit 'Send Message' %>
</p>
<% end %>
</div>
<div class="sg-5" style="background: #333;">
</div>
<div class="sg-5" style="background: #555;">
</div>
<div class="sg-5" style="background: #777;">
</div>