Sha256: 96365d6864ca6213d20464509a6446a5ef02a7e94d6b1a56c979be7e30c9380e

Contents?: true

Size: 1.72 KB

Versions: 4

Compression:

Stored size: 1.72 KB

Contents

<%
  if comp
     position_classes = comp.position.map {|p| "v-content-position-#{p}"}.join(' ')
%>
  <div id="<%= comp.id %>"
       <% if comp.tag %>
       data-input-tag="<%= comp.tag %>"
       <% end %>
       <%= draggable_attributes(comp) %>
       <%= drop_zone_attributes(comp) %>
       class="v-content
            <%= position_classes %>
            <%= _padding_classes_(comp.padding) %>
            <%= 'v-hidden' if comp.hidden %>
            <%= 'v-dnd-draggable' if comp.draggable %>
            <%= comp.float  ? 'v-content--float' : 'v-content--relative'%>
            <%= comp.css_class.join(' ') %>
            <%= color_classname(comp, 'background-', :background_color)%>"
     <%= partial "components/event", :locals => {comp: comp, events: comp.events, parent_id: comp.event_parent_id} if comp.events&.any? %>
       style="text-align: <%= comp.text_align %>;
             <%= "display: inline-block;" if comp.inline %>
             <%= "width: #{comp.width};" if comp.width %>
             <%= "height : #{comp.height };" if comp.height  %>
             <%= color_style(comp, 'background-', :background_color) %>"
       data-is-container>
    <%= partial("components/progress", :locals => {:comp => comp.progress}) if comp.progress && includes_one?(Array(comp.progress.position), %i(top both)) %>
    <% if comp.shows_errors %>
      <div class="v-errors">
    <% end %>
    <%= partial "components/render", :locals => {:components => comp.components, :scope => nil} if comp.components.any? %>
    <% if comp.shows_errors %>
      </div>
    <% end %>
    <%= partial("components/progress", :locals => {:comp => comp.progress}) if comp.progress && includes_one?(Array(comp.progress.position), %i(bottom both)) %>
  </div>
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
coprl-3.0.0.beta.4 views/mdc/components/_content.erb
coprl-3.0.0.beta.3 views/mdc/components/_content.erb
coprl-3.0.0.beta.2 views/mdc/components/_content.erb
coprl-3.0.0.beta.1 views/mdc/components/_content.erb