meta/lib/recycledcloud_web/templates/support/new.html.eex

43 lines
840 B
Elixir
Raw Normal View History

2021-02-02 18:49:11 +01:00
<h1>New support request</h1>
<%= form_for @request_changeset, Routes.support_path(@conn, :new), fn f -> %>
<%= if @request_changeset.action do %>
<div class="alert alert-danger">
<p>Oops, something went wrong! Please check the errors below.</p>
</div>
<% end %>
<%= text_input f, :name, placeholder: "Name" %>
<%= error_tag f, :name %>
<br />
<%= email_input f, :email, placeholder: "Email" %>
<%= error_tag f, :email %>
<br />
<%= textarea f, :message, placeholder: "Your message" %>
<%= error_tag f, :message %>
2021-02-03 09:37:00 +01:00
<br />
<p>
Can you answer the following expression to confirm you are not basic
2021-02-03 09:37:00 +01:00
robot?
<br />
<b><%= @captcha %> = </b>
<%= text_input f, :captcha, placeholder: "Captcha" %>
<%= error_tag f, :captcha %>
</p>
2021-02-02 18:49:11 +01:00
<div>
<%= submit "Send" %>
</div>
<% end %>