Sha256: 91a7b5e371f6f8c20d229dc2e1776cc8d8bb6d9e5abac3fc1c71728898fba4d0

Contents?: true

Size: 1.46 KB

Versions: 17

Compression:

Stored size: 1.46 KB

Contents

<div class='field'>
  <div id='page-tabs' class='clearfix ui-tabs ui-widget ui-widget-content ui-corner-all'>
    <ul id='page_parts'>
      <% tabbed_fields.each_with_index do |field, index| %>
        <li class="ui-state-default <%= 'ui-state-active' if index == 0 %>">
          <%= link_to "#{field.to_s.humanize}", "\##{field}" %>
        </li>
      <% end %>
      <% pages_tabs = ::Refinery::Pages.tabs
         tabs_to_show = (refinery_pages_tabs ||= []).map!(&:to_s)
         pages_tabs.reject!{|t| refinery_pages_tabs.exclude?(t.name.to_s) } unless tabs_to_show.include?('all')
         pages_tabs.each_with_index do |tab, tab_index| %>
        <li class='ui-state-default' id="custom_<%= tab.name %>_tab">
          <%= link_to tab.name.titleize, "#custom_tab_#{tab_index}" %>
        </li>
      <% end %>
    </ul>

    <div id='page_part_editors'>
      <% tabbed_fields.each do |field| %>
        <div class='page_part' id="<%= field %>">
          <%= f.text_area field, :rows => 20, :class => 'wymeditor widest' -%>
        </div>
      <% end %>
      <% pages_tabs.each_with_index do |tab, tab_index| %>
        <div class='page_part' id='<%= "custom_tab_#{tab_index}" %>'>
          <%= render tab.partial, :f => f %>
        </div>
      <% end %>
    </div>
  </div>
</div>

<% content_for :javascripts do %>
  <script>
    $(document).ready(function(){
      if (!page_options.initialised) {
        page_options.init(false, '', '');
      }
    });
  </script>
<% end %>

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
refinerycms-core-2.1.5 app/views/refinery/admin/_tabbed_fields.html.erb
refinerycms-core-2.1.4 app/views/refinery/admin/_tabbed_fields.html.erb
refinerycms-core-2.1.3 app/views/refinery/admin/_tabbed_fields.html.erb
refinerycms-core-2.1.2 app/views/refinery/admin/_tabbed_fields.html.erb
refinerycms-core-2.1.1 app/views/refinery/admin/_tabbed_fields.html.erb
refinerycms-core-2.1.0 app/views/refinery/admin/_tabbed_fields.html.erb
refinerycms-core-2.0.10 app/views/refinery/admin/_tabbed_fields.html.erb
refinerycms-core-2.0.9 app/views/refinery/admin/_tabbed_fields.html.erb
refinerycms-core-2.0.8 app/views/refinery/admin/_tabbed_fields.html.erb
refinerycms-core-2.0.7 app/views/refinery/admin/_tabbed_fields.html.erb
refinerycms-core-2.0.6 app/views/refinery/admin/_tabbed_fields.html.erb
refinerycms-core-2.0.5 app/views/refinery/admin/_tabbed_fields.html.erb
refinerycms-core-2.0.4 app/views/refinery/admin/_tabbed_fields.html.erb
refinerycms-core-2.0.3 app/views/refinery/admin/_tabbed_fields.html.erb
refinerycms-core-2.0.2 app/views/refinery/admin/_tabbed_fields.html.erb
refinerycms-core-2.0.1 app/views/refinery/admin/_tabbed_fields.html.erb
refinerycms-core-2.0.0 app/views/refinery/admin/_tabbed_fields.html.erb