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>
|
2021-02-03 13:56:00 +01:00
|
|
|
Can you answer the following expression to confirm you are
|
|
|
|
not a basic robot?
|
2021-02-03 09:37:00 +01:00
|
|
|
|
|
|
|
<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 %>
|