20 lines
437 B
Elixir
20 lines
437 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 %>
|
|
|
|
<%= label f, :title %>
|
|
<%= text_input f, :title %>
|
|
<%= error_tag f, :title %>
|
|
|
|
<%= label f, :content %>
|
|
<%= textarea f, :content %>
|
|
<%= error_tag f, :content %>
|
|
|
|
<div>
|
|
<%= submit "Save" %>
|
|
</div>
|
|
<% end %>
|