Files
danbooru/app/views/uploads/new.html.erb
2013-02-19 13:50:30 -05:00

76 lines
2.5 KiB
Plaintext

<div id="c-uploads">
<div id="a-new">
<h1>Upload</h1>
<div id="upload-guide-notice">
<p>Before uploading, please read the <%= link_to "how to upload guide", wiki_pages_path(:title => "howto:upload") %>.</p>
</div>
<%= render "image" %>
<%= render "post", :post => @post %>
<%= render "sources/info", :source => @source %>
<%= form_for(@upload, :html => {:multipart => true, :class => "simple_form", :id => 'form'}) do |f| %>
<div class="input">
<%= f.label :file %>
<%= f.file_field :file, :size => 50 %>
</div>
<div class="input">
<%= f.label :source, nil, :title => "You can enter a URL to have #{Danbooru.config.app_name} automatically download and process it" %>
<%= f.text_field :source, :size => 50, :value => params[:url] %>
<%= button_tag "Similar", :id => "similar-button" %>
<%= button_tag "Artist", :id => "find-artist-button" %>
</div>
<div class="input">
<%= f.label :rating_q, "Rating" %>
<fieldset class="ratings">
<%= f.radio_button :rating, :e %>
<%= f.label :rating_e, "Explicit", :title => "Hardcore porn, visible genitals, gore" %>
<%= f.radio_button :rating, :q %>
<%= f.label :rating_q, "Questionable", :title => "Nudity, anything erotic" %>
<%= f.radio_button :rating, :s %>
<%= f.label :rating_s, "Safe", :title => "Everything else" %>
</fieldset>
</div>
<div class="input">
<%= f.label :parent_id, "Parent ID" %>
<%= f.text_field :parent_id %>
</div>
<div class="input">
<div>
<%= f.label :tag_string, "Tags" %>
<%= f.text_area :tag_string, :size => "60x4" %>
</div>
<%= button_tag "Related tags", :id => "related-tags-button" %>
<%= button_tag "Artists", :id => "related-artists-button" %>
<%= button_tag "Characters", :id => "related-characters-button" %>
<%= button_tag "Copyrights", :id => "related-copyrights-button" %>
</div>
<div class="input">
<%= submit_tag "Submit", :class => "large" %>
</div>
<div id="related-tags-container">
<h1>Related Tags</h1>
<div id="related-tags">
</div>
</div>
<% end %>
</div>
</div>
<% content_for(:page_title) do %>
Upload - <%= Danbooru.config.app_name %>
<% end %>
<%= render "posts/partials/common/secondary_links" %>