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