Sha256: 229cc148dcbe19ce15b0d17a4a227d999df23edd74846ac53119bf00f9229287

Contents?: true

Size: 682 Bytes

Versions: 14

Compression:

Stored size: 682 Bytes

Contents

<div class="tab box" id="tab_<%=tab.__id__%>">
  <div class="tab-title boxtitle black" data-closed="false">
    <h1><%= tab.title %></h1>
    <div class="arrow"></div> <%# FIXME more DRY solution is needed for .arrow within .boxtitle, maybe box helper %>
  </div>
  <% if resource.errors.any? %>
    <p class="errorExplanation" id="errorExplanation">
      <%= raw resource.errors.keys.collect{|k|
        if error_tab = tab.fields.by_name(k)
          "#{error_tab.title.humanize.capitalize}: "+
            "#{resource.errors[k].collect{|m| m.capitalize}.join(" and ")}"
        end
      }.compact.join("<br>") %>
    </p>
  <% end %>
  <%= render_component *tab.build %>
</div>

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
lolita-3.1.14 app/views/components/lolita/configuration/tab/_display.html.erb
lolita-3.1.13 app/views/components/lolita/configuration/tab/_display.html.erb
lolita-3.1.12 app/views/components/lolita/configuration/tab/_display.html.erb
lolita-3.1.11 app/views/components/lolita/configuration/tab/_display.html.erb
lolita-3.1.9 app/views/components/lolita/configuration/tab/_display.html.erb
lolita-3.1.8 app/views/components/lolita/configuration/tab/_display.html.erb
lolita-3.1.7 app/views/components/lolita/configuration/tab/_display.html.erb
lolita-3.1.6 app/views/components/lolita/configuration/tab/_display.html.erb
lolita-3.1.5 app/views/components/lolita/configuration/tab/_display.html.erb
lolita-3.1.4 app/views/components/lolita/configuration/tab/_display.html.erb
lolita-3.1.3 app/views/components/lolita/configuration/tab/_display.html.erb
lolita-3.1.2 app/views/components/lolita/configuration/tab/_display.html.erb
lolita-3.1.1 app/views/components/lolita/configuration/tab/_display.html.erb
lolita-3.1.0 app/views/components/lolita/configuration/tab/_display.html.erb