OSDN Git Service

fix play leaf
[pettanr/pettanr.git] / app / views / ground_pictures / new.html.erb
index efd7dcb..b94e72a 100644 (file)
@@ -1,20 +1,6 @@
 <h1><%= t('.title') %></h1>
-<h2><%= t('home.index.catch') -%></h2>
-<%= render 'panels/standard', :panel => @panel, :author => @author %>
-<h2><%= t('ground_pictures.create_ground_picture') -%></h2>
-<% if @ground_picture.picture and @ground_picture.picture.resource_picture %>
-  <table>
-    <tr>
-      <th></th>
-      <th></th>
-      <th><%= t_m 'ResourcePicture.artist_id' -%></th>
-      <th><%= t_m 'ResourcePicture.ext' -%></th>
-      <th><%= t_m 'ResourcePicture.width' -%></th>
-      <th><%= t_m 'ResourcePicture.height' -%></th>
-      <th><%= t_m 'ResourcePicture.filesize' -%></th>
-    </tr>
+<p id="notice"><%= notice %></p>
 
-    <%= render 'resource_pictures/list_item', :resource_picture => @ground_picture.picture.resource_picture %>
-  </table>
-<% end %>
-<%= render 'form' %>
+<h2><%= t('home.index.catch') -%></h2>
+<%= render 'panels/standard', :panel => @panel, :operators => @operators %>
+<%= render @ground_picture.form_template, :elm => @ground_picture, :no_attr => 0 %>