Skip to content

anonymous /_new.html.erb
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
<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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.