Sha256: dfdc4a3f508b22b218d02f636e8a4e1cb3a60b73698604be3f1e664dadca866f
Contents?: true
Size: 856 Bytes
Versions: 14
Compression:
Stored size: 856 Bytes
Contents
<% has_form = comp.components.select{|c| eq(c.type, :form)}.any? %> <dialog id="<%= comp.id %>" class="mdl-dialog v-js-dialog" style="<%= "width: #{comp.width}" if comp.width %> <%= "height: #{comp.height}" if comp.height %>" > <% if comp.title %> <h3 class="mdl-dialog__title"><%= expand_text(comp.title.text) %></h3> <% end %> <div class="v-errors"> <div class="mdl-dialog__content <%= 'v-dialog--form' if has_form %>"> <% comp.components.each do |dcomp| %> <%= erb :"components/#{dcomp.type}", :locals => {:comp => dcomp} %> <% end %> </div> <% if comp.buttons.any? %> <div class="mdl-dialog__actions"> <% comp.buttons.reverse.each do |button| %> <%= erb :"components/button", :locals => {:comp => button} %> <% end %> </div> <% end %> </div> </dialog>
Version data entries
14 entries across 14 versions & 1 rubygems