<% # encoding: utf-8 %>

<%= f.error_messages %>

<div id="post-body">

	<div class="title">
	  <%= f.label :name %>
	  <%= @page_context.page.i18n_variable[I18n.locale] %>
	</div>

	<div class="title">
		<%= f.label :context %>
		<%= f.fields_for :context, (@page_context.new_record? ? @page_context.build_context : @page_context.context ) do |f| %>
			<% @site_valid_locales.each do |locale| %>
				<td>
					<%= I18nVariable.from_locale(locale) %>
					<%= f.text_area locale, :style=>"width:100%", :class => 'tinymce_textarea' %>
				</td>
			<% end %>
		<% end %>
	</div>
	  
	  
	<div class="form-actions">
		<%= f.submit t('submit'), :class=>'btn btn-primary' %>
		<%= link_to t('cancel'), get_go_back, :class=>"btn" %> 
	</div>

</div>
