Updated Sitemap with UI fixes - checkbox tag pending
This commit is contained in:
parent
831bd722b8
commit
1194bdd9b4
|
@ -1,10 +1,16 @@
|
||||||
|
<li>
|
||||||
|
<h6>
|
||||||
|
<input type="checkbox" class="toggle-check" data-deploy="right">
|
||||||
|
<span><%= sitemap_block_counter + 1 %> <%= sitemap_block.title_translations[temp_locale] %></span>
|
||||||
|
</h6>
|
||||||
|
<ul>
|
||||||
<% sitemap_block.children.each_with_index do |child, i| %>
|
<% sitemap_block.children.each_with_index do |child, i| %>
|
||||||
<li "<%= 'disabled' if !child.show_in_sitemap_for(temp_locale) %>">
|
<li "<%= 'disabled' if !child.show_in_sitemap_for(temp_locale) %>">
|
||||||
<h6>
|
<h6>
|
||||||
<%= content_tag :button, :id => child.id, :temp_locale => temp_locale, :disabled => !child.show_in_sitemap_for(temp_locale) do %>
|
|
||||||
<% end %>
|
|
||||||
<input type="checkbox" class="toggle-check" data-deploy="right">
|
<input type="checkbox" class="toggle-check" data-deploy="right">
|
||||||
<span><%= "#{sitemap_block_counter + 1}-#{i + 1}" %> <%= child.title_translations[temp_locale] %></span>
|
<span><%= "#{sitemap_block_counter + 1}-#{i + 1}" %> <%= child.title_translations[temp_locale] %></span>
|
||||||
</h6>
|
</h6>
|
||||||
</li>
|
</li>
|
||||||
<% end if sitemap_block.children %>
|
<% end if sitemap_block.children %>
|
||||||
|
</ul>
|
||||||
|
</li>
|
|
@ -13,8 +13,9 @@
|
||||||
<%= render :partial => 'layouts/side_bar', :locals => {:link_name => t('site.settings'), :link_url => admin_site_site_info_path(@site), :icon => 'icons-cog', :side_bar_content => 'admin/sites/side_bar'} %>
|
<%= render :partial => 'layouts/side_bar', :locals => {:link_name => t('site.settings'), :link_url => admin_site_site_info_path(@site), :icon => 'icons-cog', :side_bar_content => 'admin/sites/side_bar'} %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<section id="main-wrap">
|
<section>
|
||||||
<div class="wrap-inner">
|
<h3>Sitemap</h3>
|
||||||
|
<div>
|
||||||
|
|
||||||
<div id="sitemap">
|
<div id="sitemap">
|
||||||
|
|
||||||
|
|
Reference in New Issue