<div class="modal-window" id="categories">
  <div class="modal-header">
    <h3><%= t("gallery.add_album") %></h3>
  </div>
  <div class="modal-body add-album">
    <select id="category_list">
        <option value=""><%= t("gallery.select_category") %></option>
      <% @categorylist.each do |category| %>
        <option value='<%= category.id %>' ><%= category.name %></option>
      <% end %>
    </select>
    <ul class="nav nav-tabs">
      <% @site_valid_locales.each_with_index do |locale, i| %>
        <li <%= ( i == 0 ) ? "class=active" : '' %>><a data-toggle="tab" href=".<%= locale %>"><%= I18nVariable.from_locale(locale) %></a></li>
      <% end %>
    </ul>
    <div class="tab_content form-horizontal">
      <% @site_valid_locales.each_with_index do |locale, i| %>
      <% if i == 0 %>
        <div class="<%= locale %> fade tab-pane in active">
      <% else %>
        <div class="<%= locale %> fade tab-pane" >
      <% end %>
        <p class="control-group"><label class="control-label"><%= t("gallery.album_name") %></label><input type="text" id="name_<%= locale %>" /></p>
        <p class="control-group"><label class="control-label"><%= t("gallery.album_desc") %></label><input type="text" id="desc_<%= locale %>" /></p>
      </div>
    <% end %>
    </div>
  </div>
  <div class="modal-footer">
    <a href="#" class="btn" data-dismiss="modal" id="album_name_close_btn" onclick="return false;"><%= t(:close) %></a>
    <a href="#" class="btn btn-primary" id="album_name_save_btn" onclick="return false;"><%= t("gallery.save_changes") %></a>
  </div>
</div>