<% # encoding: utf-8 %>

<%= form_for(@web_link_category, :remote => true, :url => @url) do |f| %>
<%#= form_for(@web_link_category, :remote => true, :url => panel_web_resource_back_end_web_link_category_path(@web_link_category)) do |f| %>

  <div class="field">
    <%= f.label :key %><br />
    <%= f.text_field :key %>
  </div>
  
  <div class="field">
    <%= f.label :name %><br />
	<%= f.fields_for :i18n_variable, (@web_link_category.new_record? ? @web_link_category.build_i18n_variable : @web_link_category.i18n_variable) do |f| %>
	  <% @site_valid_locales.each do |locale| %>
		<%= I18nVariable.first(:conditions => {:key => locale})[I18n.locale] %>
		<%= f.text_field locale, :style => "width:130px" %>
	  <% end %>
	<% end %>
  </div>
  
  <div class="actions">
    <%= f.submit %>
  </div>
  
<% end %>
 