Sha256: 4cb5f89968bb56ee95c8c0cb6a3bf6662c916a4bffef2c3e49a7402b0df7d23d

Contents?: true

Size: 1 KB

Versions: 17

Compression:

Stored size: 1 KB

Contents

- index_path = caminho_modelo(:index)
.gray_border.with_margin_bottom
  %h1= t("#{@presenter.model_name}.show", default: t('carnival.show'))
  .action_back
    = link_to t('back'), request.env['HTTP_REFERER'], class: 'voltar carnival-action-button'

.show-content
  - @presenter.form_for(:show).lines.each do |line|
    .row
      - line.each do |field|
        - if ( @presenter.render_field?(field, params[:action]))
          .wrapper_show{class: "col-md-#{field.size}"}
            - if show_view(@presenter, field.name)
              = render partial: show_view(@presenter, field.name), locals: { model: @model, model_name: @presenter.full_model_name, field_name: field.name  }
            - else
              %label="#{translate_field(@presenter, field)}:"
              .value
                - if show_as_list @presenter,field.name
                  = render 'carnival/shared/show/show_as_list', items: @model.send(field.name.to_s)
                - else
                  = field_to_show @presenter, field.name, @model

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
carnival-0.3.2 app/views/carnival/base_admin/show.html.haml
carnival-0.3.1 app/views/carnival/base_admin/show.html.haml
carnival-0.3.0 app/views/carnival/base_admin/show.html.haml
carnival-0.2.8 app/views/carnival/base_admin/show.html.haml
carnival-0.2.7 app/views/carnival/base_admin/show.html.haml
carnival-0.2.6 app/views/carnival/base_admin/show.html.haml
carnival-0.2.5 app/views/carnival/base_admin/show.html.haml
carnival-0.2.4 app/views/carnival/base_admin/show.html.haml
carnival-0.2.3 app/views/carnival/base_admin/show.html.haml
carnival-0.1.10 app/views/carnival/base_admin/show.html.haml
carnival-0.2.2 app/views/carnival/base_admin/show.html.haml
carnival-0.2.1 app/views/carnival/base_admin/show.html.haml
carnival-0.2.0 app/views/carnival/base_admin/show.html.haml
carnival-0.1.9 app/views/carnival/base_admin/show.html.haml
carnival-0.1.8 app/views/carnival/base_admin/show.html.haml
carnival-0.1.7 app/views/carnival/base_admin/show.html.haml
carnival-0.1.6 app/views/carnival/base_admin/show.html.haml