%= tr8n_with_options_tag(:default_locale => 'en-US', :admin => true) do %>
<% if params[:stem_type] %>
<% left_right = params[:stem_type].index("right") ? "right" : "left" %>
<%=image_tag("/tr8n/images/top_left_stem.png", :class => "stem #{params[:stem_type]}", :style => "#{left_right}:#{params[:stem_offset]}px")%>
<% end %>
<%=link_to_function(image_tag("/tr8n/images/close.gif", :title=>trl("Close")), "tr8nLanguageCaseManager.hide()")%>
<%= tr8n_language_flag_tag(tr8n_current_language) %>
<%= trla("{language} Language Cases", nil, :language => tr8n_current_language.native_name) %>
<%= render(:partial => "manager_header")%>
<% if @lcase %>
::<%= @lcase.keyword %>
<%= @lcase.native_name %>
<% @lcase.rules.each do |rule| %>
<% style = "color:green" if @rule and @rule == rule %>
- <%=rule.description %>
<% end %>
<%=link_to_function(trla("Click here if this word is an exceptional case"), "tr8nLanguageCaseManager.switchToCaseMapMode()")%>
<% end %>
<%= form_for(@map, :as => :map, :url => {:action => :update_value_map}, :html => {:id => 'tr8n_language_case_form', :method => :post}) do |form| %>
<%= hidden_field_tag :map_id, @map.id %>
<%= hidden_field_tag :case_key, @map.keyword %>
<% if @map.gender_based? %>
<%= render :partial => "gender_based" %>
<% else %>
<%= render :partial => "gender_neutral" %>
<% end %>
<% end %>
<% end %>