data-input-tag="<%= comp.input_tag %>" <% end %> <%= draggable_attributes(comp) %> <%= drop_zone_attributes(comp) %> class="v-card card-<%= comp.id %> mdc-card <%= 'v-actionable' if comp.events && !comp.draggable %> <%= 'v-dnd-draggable' if comp.draggable %> <%= 'v-card-selected' if comp.selected %> <%= comp.css_class.join(' ') %> <%= color_classname(comp, 'background-', :background_color)%>" style="<%= "width: #{comp.width};" if comp.width%> <%= "height: #{comp.height};" if comp.height %> <%= color_style(comp, 'background-', :background_color) %>" <%= partial "components/event", :locals => {comp: comp, events: comp.events, parent_id: comp.event_parent_id} if comp %> data-is-container> <%= partial("components/progress", :locals => {:comp => comp.progress}) if comp.progress && includes_one?(Array(comp.progress.position), %i(top both)) %> <% if comp.media %>
<%= "height: #{comp.media.height};" if comp.media.height %> <%= "background-color: #{comp.media.color};" if comp.media.color %>"> <%= partial "components/render", :locals => {:components => comp.media.components, :scope => nil} if comp.media.components.any? %> <%= partial "components/button", :locals => {:comp => comp.media.button, class_name: "v-card__media-menu"} if comp.media.button %> <%= partial "components/image", :locals => {:comp => comp.media.image, class_name: 'v-card-media-image'} if comp.media.image %> <%= partial "components/avatar", :locals => {:comp => comp.media.avatar, class_name: 'v-card-media-avatar'} if comp.media.avatar %> <%= partial "components/headline", :locals => {:comp => comp.media.title, class_name: "v-card-title"} if comp.media.title %> <%= partial "components/headline", :locals => {:comp => comp.media.subtitle, class_name: "v-card-title"} if comp.media.subtitle %>
<% end %>
"> <% if comp.components.any? %>
"> <%= partial "components/render", :locals => {:components => comp.components, :scope => nil} if comp.components.any? %>
<% end %> <% if comp.actions&.buttons action_buttons = comp.actions.buttons.select { |b| !eq(b.button_type, :icon) } action_icons = comp.actions.buttons.select { |b| eq(b.button_type, :icon) } %>
<% action_buttons.each do |button| %> <%= partial "components/button", :locals => {:comp => button, class_name: 'mdc-card__action mdc-card__action--button'} if button %> <% end %>
<% action_icons.each do |button| %> <%= partial "components/button", :locals => {:comp => button, class_name: 'mdc-card__action mdc-card__action--icon'} if button %> <% end %> <% comp.actions.switches.each do |switch| %> <%= partial "components/switch", :locals => {:comp => switch, class_name: 'mdc-card__action'} if switch %> <% end %>
<% end %>
<%= partial("components/progress", :locals => {:comp => comp.progress}) if comp.progress && includes_one?(Array(comp.progress.position), %i(bottom both)) %>