18 lines
483 B
Elixir
18 lines
483 B
Elixir
|
<%= 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, :role, class: "control-label" %>
|
||
|
<%= number_input f, :role, class: "form-control" %>
|
||
|
<%= error_tag f, :role %>
|
||
|
</div>
|
||
|
|
||
|
<div class="form-group">
|
||
|
<%= submit "Submit", class: "btn btn-primary" %>
|
||
|
</div>
|
||
|
<% end %>
|