Sha256: 31abb16f1ac30b1e79f0cd0075e25fcccb36e45b035e38b9302702e7f168cfbd

Contents?: true

Size: 1.17 KB

Versions: 12

Compression:

Stored size: 1.17 KB

Contents

.brick-item{ id: brick.to_brick_item_id, class: brick.to_style_class, 'data-id' => brick.id }
  = simple_form_for brick, as: :brick, url: kuhsaft.cms_brick_path(brick), remote: !brick.uploader?, html: { id: nil }, wrapper: :bootstrap do |form|
    = form.hidden_field :position, class: 'position-field'
    - brick_content = render(brick.to_edit_partial_path, brick: brick, form: form)

    .brick-item-header.clearfix
      = render('kuhsaft/cms/bricks/brick_header', brick: brick, brick_content: brick_content, form: form)

    - if brick_content.present?
      .brick-item-content.collapse.in{ id: "brick-content-#{brick.id}", 'data-toggle' => true }
        = brick_content
        - if brick.user_can_save?
          - # save button
          .clearfix
            .pull-right
              %a.submit{ href: '#', class: 'btn btn-success btn-small ', 'data-title' => '', 'data-content' => t('.saved') }
                = t('.save')

  - if brick.renders_own_childs?
    .brick-item-childs
      = render(brick.to_edit_childs_partial_path, brick: brick)
  - else
    - if brick.respond_to?(:bricks)
      .brick-item-childs
        = render('kuhsaft/cms/bricks/brick_list', brick_list: brick)

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
kuhsaft-2.6.0 app/views/kuhsaft/cms/bricks/_brick_item.html.haml
kuhsaft-2.5.1 app/views/kuhsaft/cms/bricks/_brick_item.html.haml
kuhsaft-2.5.0 app/views/kuhsaft/cms/bricks/_brick_item.html.haml
qbrick-2.5.0.pre app/views/kuhsaft/cms/bricks/_brick_item.html.haml
kuhsaft-2.4.3 app/views/kuhsaft/cms/bricks/_brick_item.html.haml
kuhsaft-2.4.2 app/views/kuhsaft/cms/bricks/_brick_item.html.haml
kuhsaft-2.4.1 app/views/kuhsaft/cms/bricks/_brick_item.html.haml
kuhsaft-2.4.0 app/views/kuhsaft/cms/bricks/_brick_item.html.haml
kuhsaft-2.3.6 app/views/kuhsaft/cms/bricks/_brick_item.html.haml
kuhsaft-2.3.5 app/views/kuhsaft/cms/bricks/_brick_item.html.haml
kuhsaft-2.3.4 app/views/kuhsaft/cms/bricks/_brick_item.html.haml
kuhsaft-2.3.3 app/views/kuhsaft/cms/bricks/_brick_item.html.haml