Sha256: a00d0219d7f96ed89930a329a3bd6d3209cdb9e8740f9b2c4c0ab2f6c1ee73dd

Contents?: true

Size: 699 Bytes

Versions: 1

Compression:

Stored size: 699 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

1 entries across 1 versions & 1 rubygems

Version Path
lolita-3.1.10 app/views/components/lolita/configuration/tab/_display.html.erb