
<!-- <form class="form-horizontal"> -->
<%= form_for @newlocation, :url=>{:action => "create"}, :remote => true, :class=>"form-horizontal" do |f| %>
  <div class="control-group">
    <label class="control-label" for="">Name</label>
    <div class="controls">
      <!-- <input type="text" id="" class="span4" placeholder="Taipei 101"> -->
      <%= f.text_field :name, :class=>"span4", :placeholder => "Area" %>
    </div>
  </div>
  <div class="control-group">
    <label class="control-label" for="">Picture</label>
    <div class="controls">
      <!-- <input type="file" id=""> -->
      <%= f.file_field :file %>
    </div>
  </div>
  <div class="control-group">
    <label class="control-label" for="">Coordinates</label>
    <div class="controls">
      <!-- <input type="text" id="" class="span2" placeholder="long"> -->
      <%= f.text_field :longitude, :class=>"span2", :placeholder => "Longitude" %>
      <%= f.text_field :latitude, :class=>"span2", :placeholder => "Langitude" %>

      <!-- <input type="text" id="" class="span2" placeholder="lat"> -->
    </div>
  </div>
  <div class="control-group">
    <label class="control-label" for="">Description</label>
    <div class="controls">
      <!-- <textarea name="" id="" class="span4" cols="30" rows="5"></textarea> -->
      <%= f.text_area :description, :class=>"span4", :cols=>"30", :row=>"5" %>
    </div>
  </div>
  <div class="control-group">
    <div class="controls">
      <!-- <textarea name="" id="" class="span4" cols="30" rows="5"></textarea> -->
      <%= f.submit "Save", :class=>"btn" %>
    </div>
  </div>
  <% end  %>
<!-- </form> -->