<div class="toolbar hh1">
  <div class="fn_g hp">

    <%= f.submit t("save"), name: "commit", class: "fn_btn ini_input hp hh1 thmc2 thmtxt" %>
    <% if not @experience.new_record? %>
      <%= submit_tag t("cancel"), :type => "button", "callback-method"=>"cancelexperience", "ajax-remote" => "get", :href => panel_personal_experience_desktop_personal_experiences_path, class: "fn_btn ini_input hp hh1 admbg2 admtxt" %>

    <% end %>
  </div>
 <div class="hh1 hp sdm">
    <div class="sdm_t hh1 ">Language</div>
    <div class="admbg sdm_o language_select">
      <ul>
        <% @site_in_use_locales.each_with_index do |locale, i| %>
          <li><a class="hp hh1 admtxt" href="" data-lang="<%= locale %>"><%= I18nVariable.from_locale(locale) %></a></li>
        <% end %>
      </ul>
    </div>
  </div>
  <div class="hh1 hp sdm">
    <div class="sdm_t hh1"><span class="icon-question-sign"></span></div>
  </div>
</div>
<div class="overview" content-layout="simple" base-width="420">
       <ul class="s_form" isotope="true">
        <li class="s_grid_row">
             <% @site_in_use_locales.each_with_index do |locale, i| %>
              <% style = locale != I18n.locale.to_s ? 'style=display:none;' : "" %>
              <% data = "data-language=" + locale  %>
             <div class="form_fix" <%= style %> <%= data %>>
               <%= f.fields_for :organizationt_title_translations do |f| %>
                  <%= f.text_field locale,
                    size: "20",
                    placeholder: t("personal_experience.organizationt_title")+ "("+I18nVariable.from_locale(locale)+")",
                    class: "s_grid_12 s_grid",
                    value: (@experience.organizationt_title_translations[locale.to_s] rescue nil) %>
                <% end %>
          
               <%= f.fields_for :department_translations do |f| %>
                  <%= f.text_field locale,
                    size: "20",
                    placeholder: t("personal_experience.department")+ "("+I18nVariable.from_locale(locale)+")",
                    class: "s_grid_12 s_grid",
                    value: (@experience.department_translations[locale.to_s] rescue nil) %>
                <% end %>
         
               <%= f.fields_for :job_title_translations do |f| %>
                  <%= f.text_field locale,
                    size: "20",
                    placeholder: t("personal_experience.job_title")+ "("+I18nVariable.from_locale(locale)+")",
                    class: "s_grid_12 s_grid",
                    value: (@experience.job_title_translations[locale.to_s] rescue nil) %>
                <% end %>
            </div>
            <% end %>
          </li>
            <li class="s_grid_row">
              <%= label_tag("", t("personal_experience.experience_category"), class: "s_grid_4 s_grid") %>
              <%= f.select :experience_category_id, ExperienceCategory.all.collect {|t| [ t.title, t.id ]}, {:class => "s_grid s_grid_8"} %>
            </li>
             <li class="s_grid_row">
                <%= label_tag("", t("personal_experience.start_date"), class: "s_grid_4 s_grid") %>
                <%= f.date_select :start_date, {:use_month_numbers => true, :start_year => Time.now.year, :end_year => 1930, :order => [:year] }, {:class => 's_grid_4 s_grid'} %>
                <%= f.date_select :start_date, {:use_month_numbers => true, :order => [:month, :day] }, {:class => 's_grid_2 s_grid'} %>
            </li>
            <li class="s_grid_row">
                <%= label_tag("", t("personal_experience.end_date"), class: "s_grid_4 s_grid") %>
                <%= f.date_select :end_date, {:use_month_numbers => true, :start_year => Time.now.year, :end_year => 1930, :order => [:year] }, {:class => 's_grid_4 s_grid'} %>
                <%= f.date_select :end_date, {:use_month_numbers => true, :order => [:month, :day] }, {:class => 's_grid_2 s_grid'} %>
            </li>
            <li class="s_grid_row">
              <%= label_tag("", t("personal_experience.url"), class: "s_grid_4 s_grid") %><%= f.text_field :url, size: "20", class: "s_grid_8 s_grid"%>
            </li>
              <li class="s_grid_row">
              <%= f.text_area :keywords, size: "20x3", placeholder: t("personal_experience.keywords"), class: "s_grid_12 s_grid_h_2 s_grid"%>
            </li>
             <li class="s_grid_row">
                <%= f.label :language, t("personal_experience.language"), :class => "s_grid s_grid_4" %>
                <%= f.select :language, Experience::LANGUAGE_TYPES,{} ,{:class => "s_grid s_grid_8"} %>
             </li>
       
              <li class="s_grid_row">
                <%= f.text_area :note, size: "20x3", placeholder: t("personal_experience.note"), value: @experience.note , class: "s_grid_12 s_grid s_grid_h_3 s_grid_h_full"%>
            </li>
        </ul>
</div>