OSDN Git Service

t#31725:add panel inspire
[pettanr/pettanr.git] / app / views / ground_pictures / _copy.html.erb
index ee15f62..6122449 100644 (file)
@@ -1,8 +1,13 @@
 <% if author and author.working? -%>
-  <h2><%= 'Copying my working panel' -%></h2>
+  <h2><%= t('ground_pictures.show.copy') -%></h2>
   <h3><%= t('home.index.catch') -%></h3>
   <%= link_to panel_icon(:object => author.working_panel, :size => 25), panel_path(author.working_panel) %>
   <%= link_to author.working_panel.caption, main_app.panel_path(author.working_panel) %>
 
-  <%= render 'ground_pictures/form', :ground_picture => ground_picture.copy(author.working_panel) %>
+  <%= form_for(author.working_panel) do |f| %>
+    <%= hidden_field_tag "json", ground_picture.copy(author.working_panel).to_json %>
+    <div>
+      <%= submit_tag t('ground_pictures.show.inspire') -%>
+    </div>
+  <% end %>
 <% end -%>