OSDN Git Service
(root)
/
pettanr
/
pettanr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4833e0c
)
t#31889:hide add button
author
yasushiito
<yas@pen-chan.jp>
Fri, 16 Aug 2013 10:17:20 +0000
(19:17 +0900)
committer
yasushiito
<yas@pen-chan.jp>
Fri, 16 Aug 2013 10:17:20 +0000
(19:17 +0900)
app/views/ground_colors/_form.html.erb
patch
|
blob
|
history
diff --git
a/app/views/ground_colors/_form.html.erb
b/app/views/ground_colors/_form.html.erb
index
de78d17
..
d64de64
100644
(file)
--- a/
app/views/ground_colors/_form.html.erb
+++ b/
app/views/ground_colors/_form.html.erb
@@
-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 %>