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