<% form_view = AdminAssistant::FormView.new(@record, @admin_assistant, self) %>
<% id = nil unless defined?(id) %>

<%= h(form_view.title) %>

<%= link_to('Back to index', @origin) %>
<% if !@record.errors.empty? %> <%= error_messages_for 'record' %> <% end %> <% form_for(@record, form_view.form_for_args) do |rails_form| %> <% if @origin %> <%= hidden_field_tag 'origin', @origin %> <% end %> <% form_view.columns.each do |column| %>
<% if column.description %>

<%= h(column.description) %>

<% end %> <%= column.html(rails_form) %>
<% end %>
<%= submit_tag(form_view.submit_value) %> <% form_view.extra_submit_buttons.each do |extra_submit_button| %> <%= submit_tag(extra_submit_button) %> <% end %>
<% end %>