<% has_form = comp.components.select{|c| eq(c.type, :form)}.any? %> data-input-tag="<%= comp.tag %>" <% end %> class="v-dialog mdl-dialog" style="<%= "width: #{comp.width}" if comp.width %> <%= "height: #{comp.height}" if comp.height %>" > <% if comp.title %>

<%= expand_text(comp.title.text) %>

<% end %>
<% comp.components.each do |dcomp| %> <%= erb :"components/#{dcomp.type}", :locals => {:comp => dcomp} %> <% end %>
<% if comp.buttons.any? %>
<% comp.buttons.reverse.each do |button| %> <%= erb :"components/button", :locals => {:comp => button} %> <% end %>
<% end %>