Sha256: 049812cd6422134307c8165f890fcd7ec6bdeb805b6721128081e0b456ef0946

Contents?: true

Size: 743 Bytes

Versions: 3

Compression:

Stored size: 743 Bytes

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?
      .fieldset
        %h4
          = fieldset.label
        - if fieldset.help
          %p= fieldset.help
        %dl
          - fields.each_with_index do |field, index|
            %dt
              %span.label.label-info{class: "#{field.type_css_class} #{field.css_class}"}
                = field.label
            %dd.well
              = field.pretty_value

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rails_admin-2.0.0 app/views/rails_admin/main/show.html.haml
rails_admin-2.0.0.rc app/views/rails_admin/main/show.html.haml
rails_admin-2.0.0.beta app/views/rails_admin/main/show.html.haml