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

Version Path
voom-presenters-0.1.13 views/mdc/components/dialog.erb
voom-presenters-0.1.12 views/mdc/components/dialog.erb
voom-presenters-0.1.11 views/mdc/components/dialog.erb
voom-presenters-0.1.10 views/mdc/components/dialog.erb
voom-presenters-0.1.9 views/mdc/components/dialog.erb
voom-presenters-0.1.8 views/mdc/components/dialog.erb
voom-presenters-0.1.7 views/mdc/components/dialog.erb
voom-presenters-0.1.6 views/mdc/components/dialog.erb
voom-presenters-0.1.5 views/mdc/components/dialog.erb
voom-presenters-0.1.4 views/mdc/components/dialog.erb
voom-presenters-0.1.3 views/mdc/components/dialog.erb
voom-presenters-0.1.2 views/mdc/components/dialog.erb
voom-presenters-0.1.1 views/mdc/components/dialog.erb
voom-presenters-0.1.0 views/mdc/components/dialog.erb