<%= I18n.t("#{self.controller.to_i18n}.new.title") %>

<%= kirgudu_form_for(entry, page.forms[:changes], self.controller.to_url_for(:create)) do |f| %> <% page.forms[:changes].properties.each do |property| %>
<%= f.control property, controls_data[property.name], class: "form-control" %> <% if property.help %>

<%= property.help %>

<% end %>
<% end %> <% end %>

<%= I18n.t("common.section_titles.errors") %>

<% if entry.errors.values.length > 0 %>
<% entry.errors.each do |error| %>
<% entry.errors[error].each do |error_message| %> <% end %>
<% end %>
<% end %>
<%= content_for :body_scripts_on_document_ready do %> $.input_events = {}; <% page.forms[:changes].properties.each do |property| %> <% if property.events && property.events.length > 0 %> $.input_events['<%= "#{entry.class.for_form_params}_#{property.name}" %>'] = <%= property.events_for_json.to_json.html_safe %>; <% end %> <% end %> <% end %>