OSDN Git Service

iroiro
[pettanr/pettanr.git] / app / views / original_pictures / _uploader.html.erb
1 <% if author_signed_in? -%>
2   <% if current_author.artist? -%>
3     <%= form_tag( {:action => "create"} , { :multipart => true }) do %>
4       <label for="file">File to Upload</label> <%= file_field_tag "original_picture[file]" %>
5       lisence
6       <%= collection_select :original_picture, :lisence_id, Lisence.all.map {|l| [l.name, l.id] }, :last, :first, :html => {:selected => current_author.artist.default_lisence_id} %>
7       <%= submit_tag 'upload' -%>
8     <% end -%>
9   <% else -%>
10     <%= render 'artist_register' %>
11   <% end -%>
12 <% else -%>
13   素材を投稿するなら<%= link_to "ログイン", new_author_session_path %>
14 <% end -%>