Sha256: b4c4e2911b9819137b3aa2ee75a73f37f803c8f035627093170be77ee4b7fe92
Contents?: true
Size: 1.33 KB
Versions: 11
Compression:
Stored size: 1.33 KB
Contents
<%%- 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 %> <div class="messages"></div> <%%= 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 %> <div class="row"> <% attributes.each do |attr| %> <div class="box-input col-12"> <%%= f.<%=attr.field_type.to_s%> :<%= attr.name %> %> </div> <% end %> </div> <%% if !privacy_title.blank? %> <div class="privacy"> <div class="single_privacy"> <%%= f.check_box :check_privacy %> <%%= link_to privacy_link do %> <label><%%= privacy_title %></label> <%% end %> </div> </div> <%% else %> <%%= f.check_box :check_privacy %> <%% end %> <div class="submit"> <%%= f.submit t(:submit), data: {disable_with: false} %> </div> <%% end %> <%%- end -%> <%%- end -%>
Version data entries
11 entries across 11 versions & 1 rubygems