-
Notifications
You must be signed in to change notification settings - Fork 0
/
form.html.eex
executable file
·35 lines (30 loc) · 1.05 KB
/
form.html.eex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<%= form_for @changeset, @action, fn f -> %>
<%= if @changeset.action do %>
<div class="alert alert-danger">
<p>Oops, something went wrong! Please check the errors below.</p>
</div>
<% end %>
<div class="form-group">
<%= label f, "Naam", class: "control-label" %>
<%= text_input f, :name, class: "form-control", required: true, autofocus: true %>
<%= error_tag f, :name %>
</div>
<div class="form-group">
<%= label f, "Wachtwoord", class: "control-label" %>
<%= text_input f, :password, class: "form-control" %>
<%= error_tag f, :password %>
</div>
<div class="form-group">
<%= label f, :team_id, class: "control-label" %>
<%= select f, :team_id, @teams, class: "form-control" %>
<%= error_tag f, :team_id %>
</div>
<div class="form-group">
<%= label f, "GebruikersType", class: "control-label" %>
<%= select f, :role_id, @roles, class: "form-control" %>
<%= error_tag f, :role_id %>
</div>
<div class="form-group">
<%= submit "Submit", class: "btn btn-primary" %>
</div>
<% end %>