Sha256: f6bd50abf243744643dbbf1bc9cf46961f16c9a192b7b7bac8ad52f638177b8e

Contents?: true

Size: 1.54 KB

Versions: 6

Compression:

Stored size: 1.54 KB

Contents

<%
  horizontal = eq(comp.orientation, :horizontal)
%>
<div class="v-errors">
  <ul id="<%= comp.id %>"
      <% if comp.tag %>
      data-input-tag="<%= comp.tag %>"
      <% end %>
      class="mdl-stepper v-stepper
            <%= ' mdl-stepper--horizontal' if horizontal %>
            <%= ' mdl-stepper--linear' if comp.linear %>">
    <% for step in comp.steps %>
      <%= erb :"components/stepper/#{step.type}", :locals => {:comp => step, vertical: !horizontal} %>
    <% end %>
  </ul>

  <% if horizontal %>
  <div id="<%= comp.id %>-content">
    <% for step in comp.steps %>
      <div id="<%= step.id %>-content"
           <% if step.tag %>
           data-input-tag="<%= step.tag %>"
           <% end %>
           class="v-content v-step__content v-step__content-<%= step.id %>
            <%= ' is-active' if step.selected %>
            <%= ' v-step--horizontal' if horizontal %>">

        <%= erb :"components/render", :locals => {:components => step.components, :scope => nil} %>

        <% if step.actions&.buttons %>
          <div class="v-step__actions v-step__actions-<%= step.id %>">
            <% step.actions.buttons.each do |button| %>
              <%= erb :"components/button", :locals => {:comp => button,
                                                        data_attributes: "data-stepper-#{button.stepper_type}",
                                                        event_parent_id: "#{step.id}-content"}
              %>
            <% end %>
          </div>
        <% end %>
      </div>
    <% end %>
  </div>
   <% end %>

</div>


Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
voom-presenters-2.1.2 views/mdc/components/stepper.erb
voom-presenters-2.1.0 views/mdc/components/stepper.erb
voom-presenters-2.0.3 views/mdc/components/stepper.erb
voom-presenters-2.0.2 views/mdc/components/stepper.erb
voom-presenters-2.0.1 views/mdc/components/stepper.erb
voom-presenters-2.0.0 views/mdc/components/stepper.erb