the _text partial now knows the hide-option

git-svn-id: https://dev.finn.de/svn/cockpit/branches/reporting_merge@1245 7926756e-e54e-46e6-9721-ed318f58905e
pull/6827/head
p.tessenow 15 years ago
parent 0775c716e0
commit d5566517d2
  1. 3
      app/views/cost_reports/filters/_text.rhtml

@ -4,8 +4,9 @@
- :name => 'text'
- :text => String: The text that should be displayed
- :width => Integer (optional): The width this partial may consume. If not given, a standard width will be applied
- :hide => Boolean (optional, default = true): whether the content of this partial is hidden or not
%>
<td width="<%= element[:width] || 100 %>">
<td width="<%= element[:width] || 100 %>" <%= style="display:none" if element[:hide] %>>
<%= element[:text] || '' %>
</td>
Loading…
Cancel
Save