Sha256: bf9c463e285fc894855d72cc345b43221382cb54660692cba10a76f94e56a191

Contents?: true

Size: 1.31 KB

Versions: 17

Compression:

Stored size: 1.31 KB

Contents

<% if @fixed_elements.any? %>
  <sl-tab-group id="fixed-elements">
    <sl-tab slot="nav" panel="main-content-elements">
      <%= Alchemy.t(:main_content) %>
    </sl-tab>
    <% @fixed_elements.each do |element| %>
      <sl-tab slot="nav" panel="fixed-element-<%= element.id %>">
        <%= element.display_name %>
      </sl-tab>
    <% end %>
    <sl-tab-panel
      name="main-content-elements"
      class="sortable-elements scrollable-elements"
      data-droppable-elements="<%= @page.element_definition_names.join(' ') %>"
      data-element-name="main-content-elements"
      id="main-content-elements"
      style="--padding: 0"
    >
      <%= render @elements.map { |element| Alchemy::ElementEditor.new(element) } %>
    </sl-tab-panel>
    <% @fixed_elements.each do |element| %>
      <sl-tab-panel name="fixed-element-<%= element.id %>" style="--padding: 0" class="scrollable-elements">
        <%= render Alchemy::ElementEditor.new(element) %>
      </sl-tab-panel>
    <% end %>
  </sl-tab-group>
<% else %>
  <div
    id="main-content-elements"
    class="sortable-elements scrollable-elements"
    data-droppable-elements="<%= @page.element_definition_names.join(' ') %>"
    data-element-name="main-content-elements"
  >
    <%= render @elements.map { |element| Alchemy::ElementEditor.new(element) } %>
  </div>
<% end %>

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
alchemy_cms-7.1.13 app/views/alchemy/admin/elements/index.html.erb
alchemy_cms-7.1.12 app/views/alchemy/admin/elements/index.html.erb
alchemy_cms-7.1.11 app/views/alchemy/admin/elements/index.html.erb
alchemy_cms-7.1.10 app/views/alchemy/admin/elements/index.html.erb
alchemy_cms-7.1.9 app/views/alchemy/admin/elements/index.html.erb
alchemy_cms-7.1.8 app/views/alchemy/admin/elements/index.html.erb
alchemy_cms-7.1.7 app/views/alchemy/admin/elements/index.html.erb
alchemy_cms-7.1.6 app/views/alchemy/admin/elements/index.html.erb
alchemy_cms-7.1.5 app/views/alchemy/admin/elements/index.html.erb
alchemy_cms-7.1.4 app/views/alchemy/admin/elements/index.html.erb
alchemy_cms-7.1.3 app/views/alchemy/admin/elements/index.html.erb
alchemy_cms-7.1.2 app/views/alchemy/admin/elements/index.html.erb
alchemy_cms-7.1.1 app/views/alchemy/admin/elements/index.html.erb
alchemy_cms-7.1.0 app/views/alchemy/admin/elements/index.html.erb
alchemy_cms-7.1.0.pre.rc1 app/views/alchemy/admin/elements/index.html.erb
alchemy_cms-7.1.0.pre.b2 app/views/alchemy/admin/elements/index.html.erb
alchemy_cms-7.1.0.pre.b1 app/views/alchemy/admin/elements/index.html.erb