Registration form.
This commit is contained in:
@@ -1,35 +1,35 @@
|
|||||||
<%= form_for @changeset, @action, fn f -> %>
|
<%= form_for @changeset, @action, fn form -> %>
|
||||||
<%= if @changeset.action do %>
|
<%= if @changeset.action do %>
|
||||||
<div class="alert alert-danger">
|
<div class="alert alert-danger">
|
||||||
<p>Oops, something went wrong! Please check the errors below.</p>
|
<p>Oops, something went wrong! Please check the errors below.</p>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<%= label f, :fname %>
|
<%= label form, :fname, "Etunimi" %>
|
||||||
<%= text_input f, :fname %>
|
<%= text_input form, :fname %>
|
||||||
<%= error_tag f, :fname %>
|
<%= error_tag form, :fname %>
|
||||||
|
|
||||||
<%= label f, :lname %>
|
<%= label form, :lname, "Sukunimi" %>
|
||||||
<%= text_input f, :lname %>
|
<%= text_input form, :lname %>
|
||||||
<%= error_tag f, :lname %>
|
<%= error_tag form, :lname %>
|
||||||
|
|
||||||
<%= label f, :email %>
|
<%= label form, :email, "Sähköposti" %>
|
||||||
<%= text_input f, :email %>
|
<%= email_input form, :email %>
|
||||||
<%= error_tag f, :email %>
|
<%= error_tag form, :email %>
|
||||||
|
|
||||||
<%= label f, :tel %>
|
<%= label form, :tel, "Puhelinumero" %>
|
||||||
<%= text_input f, :tel %>
|
<%= text_input form, :tel %>
|
||||||
<%= error_tag f, :tel %>
|
<%= error_tag form, :tel %>
|
||||||
|
|
||||||
<%= label f, :confirmed %>
|
<%= label form, :notes, "Huomiot" %>
|
||||||
<%= checkbox f, :confirmed %>
|
<%= textarea form, :notes %>
|
||||||
<%= error_tag f, :confirmed %>
|
<%= error_tag form, :notes %>
|
||||||
|
|
||||||
<%= label f, :notes %>
|
<%= label form, :confirmed, "Vahvitettu" %>
|
||||||
<%= text_input f, :notes %>
|
<%= checkbox form, :confirmed %>
|
||||||
<%= error_tag f, :notes %>
|
<%= error_tag form, :confirmed %>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<%= submit "Save" %>
|
<%= submit "Lähetä" %>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
<h1>New Performer</h1>
|
<h1>Ilmoittaudu</h1>
|
||||||
|
|
||||||
<%= render "form.html", Map.put(assigns, :action, Routes.performer_path(@conn, :create)) %>
|
<%= render "form.html", Map.put(assigns, :action, Routes.performer_path(@conn, :create)) %>
|
||||||
|
|
||||||
<span><%= link "Back", to: Routes.performer_path(@conn, :index) %></span>
|
|
||||||
|
|||||||
Reference in New Issue
Block a user