%%- cache(element) do -%> <%%= element_view_for(element) do |el| -%> <%% privacy_link = element.content_by_name(:privacy_page).essence.link privacy_title = element.content_by_name(:privacy_page).essence.body @<%= name.underscore.singularize %> = <%= name.singularize.classify %>.new @<%= name.underscore.singularize %>.alcm_element = element.id %>
<%%= form_for(@<%= name.underscore.singularize %>, url: main_app.<%= name.underscore.pluralize %>_path, method: :post, multipart: true,html:{class: "ajax_forms"}) do |f| %> <%%= f.hidden_field :alcm_element %>