public
anonymous / _new.html.erb
Created

  • Download Gist
_new.html.erb
HTML+ERB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
<div id="new-smoke-div">
<h1 class="new-smoke-title">Send us a Smoke</h1>
<div id="new-smoke-errors">
<% @smoke.errors.each do |attr, msg| %>
<p><%= "#{msg}" if @smoke.errors[attr].first == msg %></p>
<% end %>
</div>
<div id="new-smoke-form">
<%= form_tag '/smokes', :authenticity_token => form_authenticity_token, :multipart => true, :method => "post" do %>
<%= hidden_field_tag 'latitude', @smoke.latitude %>
<%= hidden_field_tag 'longitude', @smoke.longitude %>
<div id="new-smoke-picture">
<p>Upload a picture (optional):</p>
<%= file_field_tag 'picture' %>
<div class="clear">
</div>
</div>
<div id="new-smoke-description">
<p>Talk about it:</p>
<div id="new-smoke-remain" class="new-smoke-remain">256</div>
<%= text_area_tag 'description', nil, :class => "new-smoke-textarea", :id => "new-smoke-textarea" %>
</div>
<%= submit_tag "Create", :class => "new-smoke-button" %>
<% end %>
</div>
</div>

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.