<%= form_for @changeset, @action, fn f -> %> <%= if @changeset.action do %>

Oops, something went wrong! Please check the errors below.

<% end %>
<%= label f, :title, class: "control-label" %> <%= text_input f, :title, class: "form-control" %> <%= error_tag f, :title %>
<%= label f, :picture, class: "control-label" %> <%= text_input f, :picture, class: "form-control" %> <%= error_tag f, :picture %>
<%= submit "Submit", class: "btn btn-primary" %>
<% end %>