<%= flash_messages %>

<%= render 'language_bar' %>


<%= form_for @part, :url => admin_page_part_path(@part), :html => { :class => 'form' } do |f| %>
	<%= fields_for "page_part[i18n_variable]", @i18n_variable, :index => nil do |f| %>
		<% @site_valid_locales.each do |locale| %>
			<div class="ckeditor_locale" style="display:<%= @part_locale.eql?(locale) ? 'block' : 'none' %>">
	  		<%= render :partial => "admin/page_parts/form", :locals => { :f => f, :locale => locale } %>
			</div>
	  <% end %>
	<% end %>
  <p>
    <%= f.submit t(:update) %> <%= link_back %>
  </p>
<% end %>