OSDN Git Service

fic picture publishing
[pettanr/pettanr.git] / app / views / resource_pictures / _form.html.erb
index b8ef270..03c6b5d 100644 (file)
@@ -1,3 +1,4 @@
+<img src="<%= @original_picture.url -%>">
 <%= form_for(@resource_picture, :url => '/resource_pictures', :method => :post) do |f| %>
 
   <%= hidden_field_tag :original_picture_id, @original_picture.id %>
@@ -7,22 +8,16 @@
 
   <%= f.hidden_field :original_picture_id %>
   <%= f.hidden_field :license_id %>
+  <%= f.hidden_field :system_picture_id %>
   <%= f.hidden_field :artist_name %>
-  <%= f.hidden_field :classname %>
-  <%= f.hidden_field :credit %>
-  <%= f.hidden_field :settings %>
+  <%= f.hidden_field :license_group_classname %>
+  <%= f.hidden_field :license_group_settings %>
+  <%= f.hidden_field :credit_picture_settings %>
+  <%= f.hidden_field :license_settings %>
 
-  <div>
-    <%= link_to h(@license_group.caption), main_app.license_group_path(@license_group) %>
-    <%= link_to h(@license.caption), main_app.license_path(@license) %>
-  </div>
-  <div>
-    artist name:<%= @resource_picture.artist_name %>
-  </div>
-
-  <%= render  :partial => @resource_picture.classname.tableize + '/attributes/confirm' %>
+  <%= render  :partial => @resource_picture.license_group_classname.tableize + '/attributes/confirm' %>
 
   <div class="actions">
-    <%= f.submit %>
+    <%= f.submit t 'resource_pictures.new.publish'  %>
   </div>
 <% end %>