<% content_for :secondary do %>
  <ul class="list">
    <li><%= link_to t(:edit), edit_admin_translation_path('all'), :class => 'button positive' %></li>
    <li>
      <%= t('admin.add_language') %>:
      <%= form_tag admin_translation_path('add'), :method => :put do %>
        <%= text_field_tag 'language', '', :style => "width:100px" %>
        <%= submit_tag t(:add) %>
      <% end %>
    </li>
    <li>
      <%= t('admin.enable_language') %>:
      <%= form_tag admin_translation_path('enable'), :method => :put do %>
        <%= select_tag 'enable_language', options_for_select(@site_valid_locales - @site_in_use_locales), :style => "width:100px" %>
        <%= submit_tag t(:enable) %>
      <% end %>
    </li>
    <li>
      <%= t('admin.disable_language') %>:
      <%= form_tag admin_translation_path('disable'), :method => :put do %>
        <%= select_tag 'disable_language', options_for_select(@site_in_use_locales), :style => "width:100px" %>
        <%= submit_tag t(:disable) %>
      <% end %>
    </li>
    <li>
      <%= t('admin.delete_language') %>:
      <%= form_tag admin_translation_path('delete'), :method => :put do %>
        <%= select_tag 'delete_language', options_for_select(@site_valid_locales), :style => "width:100px" %>
        <%= submit_tag t(:delete), :confirm => t('sure?') %>
      <% end %>
    </li>
  </ul>
<% end -%>

<% if @language_i18n_variables.size > 0 %>
  <fieldset>
    <legend>
      <%= t('admin.language') %>
      <%#= render :partial => 'action_bar' %>
    </legend> 
    <div><%= render :partial => 'language' %></div>
  </fieldset>
<% end %>

<% if @user_info_model_i18n_variables.size > 0 %>
  <fieldset>
    <legend>
      <%= t('admin.user_info') %>
      <%#= render :partial => 'action_bar' %>
    </legend> 
    <div><%= render :partial => 'user_attribute_model', :collection => @user_info_model_i18n_variables %></div>
  </fieldset>
<% end %>

<% if @user_role_model_i18n_variables.size > 0 %>
  <fieldset>
    <legend>
      <%= t('admin.user_role') %>
      <%#= render :partial => 'action_bar' %>
    </legend> 
    <div><%= render :partial => 'user_attribute_model', :collection => @user_role_model_i18n_variables %></div>
  </fieldset>
<% end %>

<% content_for :page_specific_javascript do %>
	<%= javascript_include_tag "translation_page" %>
<% end -%>
