35
lib/eventos_web/templates/user/form.html.eex
Normal file
35
lib/eventos_web/templates/user/form.html.eex
Normal file
@@ -0,0 +1,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, :username, class: "control-label" %>
|
||||
<%= text_input f, :username, class: "form-control" %>
|
||||
<%= error_tag f, :username %>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<%= label f, :email, class: "control-label" %>
|
||||
<%= text_input f, :email, class: "form-control" %>
|
||||
<%= error_tag f, :email %>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<%= label f, :password_hash, class: "control-label" %>
|
||||
<%= text_input f, :password_hash, class: "form-control" %>
|
||||
<%= error_tag f, :password_hash %>
|
||||
</div>
|
||||
|
||||
<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 %>
|
||||
Reference in New Issue
Block a user