35
lib/eventos_web/templates/event/form.html.eex
Normal file
35
lib/eventos_web/templates/event/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, :title, class: "control-label" %>
|
||||
<%= text_input f, :title, class: "form-control" %>
|
||||
<%= error_tag f, :title %>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<%= label f, :description, class: "control-label" %>
|
||||
<%= text_input f, :description, class: "form-control" %>
|
||||
<%= error_tag f, :description %>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<%= label f, :begin_on, class: "control-label" %>
|
||||
<%= datetime_select f, :begin_on, class: "form-control" %>
|
||||
<%= error_tag f, :begin_on %>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<%= label f, :ends_on, class: "control-label" %>
|
||||
<%= datetime_select f, :ends_on, class: "form-control" %>
|
||||
<%= error_tag f, :ends_on %>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<%= submit "Submit", class: "btn btn-primary" %>
|
||||
</div>
|
||||
<% end %>
|
||||
Reference in New Issue
Block a user