Updated Sitemap with UI fixes - checkbox tag pending

This commit is contained in:
saurabhbhatia 2013-10-07 15:04:41 +08:00
parent 831bd722b8
commit 1194bdd9b4
2 changed files with 14 additions and 7 deletions

View File

@ -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| %>
<li "<%= 'disabled' if !child.show_in_sitemap_for(temp_locale) %>">
<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">
<span><%= "#{sitemap_block_counter + 1}-#{i + 1}" %> <%= child.title_translations[temp_locale] %></span>
</h6>
</li>
<% end if sitemap_block.children %>
</ul>
</li>

View File

@ -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'} %>
<% end %>
<section id="main-wrap">
<div class="wrap-inner">
<section>
<h3>Sitemap</h3>
<div>
<div id="sitemap">