Sha256: 1e3d41b3b157be6f4a49b5950c8190a9e85c9819ab079e804d450b7ce4544647

Contents?: true

Size: 478 Bytes

Versions: 27

Compression:

Stored size: 478 Bytes

Contents

= element_editor_for(element) do |el|
<%- if @element['picture_gallery'] -%>
  = render_picture_gallery_editor(element, max_images: nil, crop: true)
<%- end -%>
<% @contents.each do |content| -%>
  = el.edit :<%= content["name"] %>
<% end -%>
<%- if @element['available_contents'] -%>
  - element.contents.where(name: ['<%= @available_contents_names.join("', '") %>']).each do |content|
    = render_essence_editor content
  %p
    = render_new_content_link(element)
<% end -%>

Version data entries

27 entries across 27 versions & 2 rubygems

Version Path
alchemy_cms-3.2.1 lib/rails/generators/alchemy/elements/templates/editor.html.haml
alchemy_cms-3.1.3 lib/rails/generators/alchemy/elements/templates/editor.html.haml
lc_alchemy_cms-3.2.1 lib/rails/generators/alchemy/elements/templates/editor.html.haml
lc_alchemy_cms-3.2.0 lib/rails/generators/alchemy/elements/templates/editor.html.haml
alchemy_cms-3.2.0 lib/rails/generators/alchemy/elements/templates/editor.html.haml
alchemy_cms-3.2.0.rc1 lib/rails/generators/alchemy/elements/templates/editor.html.haml
alchemy_cms-3.2.0.beta lib/rails/generators/alchemy/elements/templates/editor.html.haml
alchemy_cms-3.1.1 lib/rails/generators/alchemy/elements/templates/editor.html.haml
alchemy_cms-3.0.4 lib/rails/generators/alchemy/elements/templates/editor.html.haml
alchemy_cms-3.1.0 lib/rails/generators/alchemy/elements/templates/editor.html.haml
alchemy_cms-3.1.0.rc3 lib/rails/generators/alchemy/elements/templates/editor.html.haml
alchemy_cms-3.1.0.rc2 lib/rails/generators/alchemy/elements/templates/editor.html.haml
alchemy_cms-3.1.0.rc1 lib/rails/generators/alchemy/elements/templates/editor.html.haml
alchemy_cms-3.1.0.beta6 lib/rails/generators/alchemy/elements/templates/editor.html.haml
alchemy_cms-3.1.0.beta5 lib/rails/generators/alchemy/elements/templates/editor.html.haml
alchemy_cms-3.1.0.beta4 lib/rails/generators/alchemy/elements/templates/editor.html.haml
alchemy_cms-3.0.3 lib/rails/generators/alchemy/elements/templates/editor.html.haml
alchemy_cms-3.1.0.beta3 lib/rails/generators/alchemy/elements/templates/editor.html.haml
alchemy_cms-3.1.0.beta2 lib/rails/generators/alchemy/elements/templates/editor.html.haml
alchemy_cms-3.1.0.beta1 lib/rails/generators/alchemy/elements/templates/editor.html.haml