Sha256: fc727e40ba1c15575910b49e8e5f36ee4ebf046dd089ad71541cd16484bb8220

Contents?: true

Size: 1.25 KB

Versions: 8

Compression:

Stored size: 1.25 KB

Contents

<div id="element_area">
  <%- if !@cells.blank? -%>
  <div id="cells">
    <ul>
      <%- @elements.each do |cell, elements| -%>
      <li>
        <a href="#cell_<%= cell.name -%>">
          <%= cell.name == 'for_other_elements' ? _('other Elements') : t("alchemy.cell_names.#{cell.name}", :default => cell.name.camelcase) -%>
        </a>
      </li>
      <%- end -%>
    </ul>
    <%- @elements.each do |cell, elements| -%>
    <div id="cell_<%= cell.name %>" class="sortable_cell <%= cell.name %>_cell" data-cell-id="<%= cell.id %>">
    	<%= render :partial => 'element', :collection => elements, :locals => {:draggable => true} %>
    </div>
    <%- end -%>
  </div>
  <%- else -%>
  <div class="sortable_cell for_other_elements_cell" id="cell_for_other_elements">
    <%= render :partial => @elements, :locals => {:draggable => true} %>
  </div>
  <%- end -%>
</div>
<script type="text/javascript" charset="utf-8">
  Alchemy.SortableElements(<%= @page.id %>, '<%= form_authenticity_token %>');
  Alchemy.ElementEditorSelector.init();
  Alchemy.SelectBox('.element_editor select');
  TinymceHammer.init();
  Alchemy.ElementDirtyObserver('#element_area');
  jQuery('#cells').tabs();
  jQuery('#cells').tabs('paging', { follow: true, followOnSelect: true } );
</script>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
alchemy_cms-2.0.7 app/views/admin/elements/index.html.erb
alchemy_cms-2.0.6.1 app/views/admin/elements/index.html.erb
alchemy_cms-2.0.5 app/views/admin/elements/index.html.erb
alchemy_cms-2.0.4 app/views/admin/elements/index.html.erb
alchemy_cms-2.0.3.1 app/views/admin/elements/index.html.erb
alchemy_cms-2.0.3 app/views/admin/elements/index.html.erb
alchemy_cms-2.0.2 app/views/admin/elements/index.html.erb
alchemy_cms-2.0.1 app/views/admin/elements/index.html.erb