OSDN Git Service

t#31889:hide add button
authoryasushiito <yas@pen-chan.jp>
Fri, 16 Aug 2013 10:17:20 +0000 (19:17 +0900)
committeryasushiito <yas@pen-chan.jp>
Fri, 16 Aug 2013 10:17:20 +0000 (19:17 +0900)
app/views/ground_colors/_form.html.erb

index de78d17..d64de64 100644 (file)
@@ -40,5 +40,7 @@
   <div class="actions">
     <%= f.submit t('ground_colors.submit'), :class => "submit" %>
   </div>
-  <div class="submit-new-form" panel_id="<%= elm.tag_panel_id -%>" element_type="<%= elm.tag_element_type -%>"></div>
+  <% if no_attr > 0 %>
+    <div class="submit-new-form" panel_id="<%= elm.tag_panel_id -%>" element_type="<%= elm.tag_element_type -%>"></div>
+  <% end %>
 <% end %>