Sha256: c4b5511c8866ea58c065cfce1817da43d570a40a2473f8573bec018472da7fa8

Contents?: true

Size: 1.13 KB

Versions: 14

Compression:

Stored size: 1.13 KB

Contents

<% @model_config.show.with(object: @object, view: self, controller: self.controller).visible_groups.each do |fieldset| %>
  <% unless (fields = fieldset.with(object: @object, view: self, controller: self.controller).visible_fields).empty? %>
    <% unless (fields = fields.reject{ |f| RailsAdmin::config.compact_show_view && (f.formatted_value.nil? || f.formatted_value == '') }).empty? %>
      <div class="fieldset">
        <h4>
          <%= fieldset.label %>
        </h4>
        <% if fieldset.help %>
          <p>
            <%= fieldset.help %>
          </p>
        <% end %>
        <div class="list-group">
          <% fields.each_with_index do |field, index| %>
            <div class="list-group-item border-0 <%= field.type_css_class %> <%= field.css_class %>">
              <div class="card">
                <h5 class="card-header bg-light">
                  <%= field.label %>
                </h5>
                <div class="card-body">
                  <%= field.pretty_value %>
                </div>
              </div>
            </div>
          <% end %>
        </dl>
      </div>
    <% end %>
  <% end %>
<% end %>

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
rails_admin-3.2.1 app/views/rails_admin/main/show.html.erb
rails_admin-3.2.0 app/views/rails_admin/main/show.html.erb
rails_admin-3.2.0.rc app/views/rails_admin/main/show.html.erb
rails_admin-3.2.0.beta app/views/rails_admin/main/show.html.erb
rails_admin-3.1.4 app/views/rails_admin/main/show.html.erb
rails_admin-3.1.3 app/views/rails_admin/main/show.html.erb
rails_admin-3.1.2 app/views/rails_admin/main/show.html.erb
rails_admin-3.1.1 app/views/rails_admin/main/show.html.erb
rails_admin-3.1.0 app/views/rails_admin/main/show.html.erb
rails_admin-3.1.0.rc2 app/views/rails_admin/main/show.html.erb
rails_admin-3.1.0.rc app/views/rails_admin/main/show.html.erb
rails_admin-3.1.0.beta app/views/rails_admin/main/show.html.erb
rails_admin-3.0.0 app/views/rails_admin/main/show.html.erb
rails_admin-3.0.0.rc4 app/views/rails_admin/main/show.html.erb