27 lines
607 B
Elixir
27 lines
607 B
Elixir
|
<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 %>
|
||
|
|
||
|
<div>
|
||
|
<%= submit "Send" %>
|
||
|
</div>
|
||
|
<% end %>
|