Sha256: 727c5203781c07a53db56d63a334f844c629aa5c5761127a0edca6a67662c8a5

Contents?: true

Size: 1.22 KB

Versions: 3

Compression:

Stored size: 1.22 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: true, 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.user_can_save?
      .brick-item-content.collapse.in{ id: "brick-content-#{brick.id}", 'data-toggle' => true }
        - if brick_content.present?
          = 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

3 entries across 3 versions & 1 rubygems

Version Path
kuhsaft-2.6.3 app/views/kuhsaft/cms/bricks/_brick_item.html.haml
kuhsaft-2.6.2 app/views/kuhsaft/cms/bricks/_brick_item.html.haml
kuhsaft-2.6.1 app/views/kuhsaft/cms/bricks/_brick_item.html.haml