<div class="toolbar hh1">
  <div class="fn_g hp">

    <%= f.submit t("save"), name: "commit", class: "fn_btn ini_input hp hh1 thmc2 thmtxt" %>
  </div>
  <div class="hh1 hp sdm">
    <div class="sdm_t hh1 ">Language</div>
    <div class="admbg sdm_o language_select">
      <ul>
        <% @site_in_use_locales.each_with_index do |locale, i| %>
          <li><a class="hp hh1 admtxt" href="" data-lang="<%= locale %>"><%= I18nVariable.from_locale(locale) %></a></li>
        <% end %>
      </ul>
    </div>    
  </div>
  <div class="hh1 hp sdm">
    <div class="sdm_t hh1"><span class="icon-question-sign"></span></div>
  </div>
</div>
 <div class="overview" content-layout="simple">
 	<ul class="s_form">
 		<li class="s_grid_row">
			 <%= label_tag("", "Frontend Page", :class => 's_grid s_grid_4') %>
			 <div class="s_select_g s_grid s_grid_8 s_grid_h_2">
          <ul>
              <li>
                <%= f.check_box :brief_intro,
                id: "field-0" %>
                <label for="field-0"> Brief Intro </label>
             </li>
              <li>
                <%= f.check_box :complete_list,
                id: "field-1" %>
                <label for="field-1"> Complete List </label>
             </li>
          </ul>
        </div>
		</li>
	 	<% @site_in_use_locales.each_with_index do |locale, i| %>
	 		<% style = locale != I18n.locale.to_s ? 'style=display:none;' : "" %>
            <% data = "data-language=" + locale  %>
            <li class="s_grid_row" <%= style %> <%= data %>>
            	<%= label_tag("", I18nVariable.from_locale(locale), :class => 's_grid s_grid_4') %>
            </li>
            <li class="s_grid_row" <%= style %> <%= data %>>
				<%= f.fields_for :text_translations do |f| %>
					<%= f.text_area locale, :class=>"editor", rows: 5, :value => (@intro.text_translations[locale] rescue nil) %>
				<% end %>
			</li>
		<% end %>

		
	</ul>
</div>