Sha256: f470de67c1d8b8ca13769b7f85017ac48ab6a2969a6d0de366344f9e77baffe6
Contents?: true
Size: 1.58 KB
Versions: 3
Compression:
Stored size: 1.58 KB
Contents
.brick-item{ :id => brick.to_brick_item_id, :class => brick.to_style_class } = simple_form_for brick, :as => :brick, :url => kuhsaft.cms_brick_path(brick), :remote => true, :html => { :id => nil } do |form| = form.hidden_field :position, :class => 'position-field' .brick-item-header.clearfix .pull-left - if brick.caption.present? = brick.caption %span.muted = brick.backend_label(:parenthesis => true) .pull-right .btn-group - # delete button - if brick.persisted? - if brick.user_can_delete? = link_to kuhsaft.cms_brick_path(brick), :class => 'btn btn-small btn-danger', :confirm => t('kuhsaft.cms.bricks.brick_item.confirm'), :method => :delete, :remote => true do %i.icon-trash.icon-white - # addable child dropdown menu - if brick.respond_to?(:brick_list) = render 'brick_type_dropdown', :brick_list => brick - brick_content = render(brick.to_edit_partial_path, :brick => brick, :form => form) - if brick_content.present? .brick-item-content = brick_content - if brick.user_can_save? - # save button .clearfix .pull-right = form.button :submit, :class => 'btn btn-success btn-small ', :value => 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