  <% @location_info.errors.full_messages.each do |msg| %>
    <li>* <%= msg %></li>
  <% end %>
  <div class="control-group">
    <label class="control-label" for=""><%= t "name" %></label>
    <div class="controls">
      <%= f.fields_for :name_translations do |f| %>
        <%= f.text_field locale, :class=>'span4', :value => (@location_info.name_translations[locale.to_s] rescue nil) %>
      <% end %>
    </div>
  </div>
  <div class="control-group">
    <label class="control-label" for=""><%= t 'picture' %></label>
    <div class="controls">
      <%= @location_info.file? ? ( link_to t(:view), @location_info.file.url, {:class => 'for_preview btn', :target => '_blank', :title => t(:view)}) : '' %>
      <%= f.file_field :file %>
    </div>
  </div>
  <div class="control-group">
    <label class="control-label" for=""><%= t 'coordinates' %></label>
    <div class="controls">
      <%= f.text_field :latitude, :class=>"span2", :placeholder => "Latitude" %>
      <%= f.text_field :longitude, :class=>"span2", :placeholder => "Longitude" %>
    </div>
  </div>

   <!-- Category -->
  <div class="control-group">
    <label class="control-label muted"><%= t(:category) %></label>
    <div class="controls">
      <%= f.select :category_id, @categories.collect{|t| [ t.title, t.id ]} %>
    </div>
  </div>


  <div class="control-group">
    <label class="control-label" for=""><%= t 'description' %></label>
    <div class="controls">
      <%= f.fields_for :description_translations do |f| %>
        <%= f.text_area locale, :class=>'span4', :cols=>"30", :row=>"5", :value => (@location_info.description_translations[locale.to_s] rescue nil) %>
      <% end %>
    </div>
  </div>
  <div class="control-group">
    <div class="controls">
      <%= f.submit t("submit"), :class=>"btn" %>
    </div>
  </div>
