Sha256: c427cb24a5dcc475b971dde9967afac45af8832ab7d5ab1e2325f03b9913e9b8
Contents?: true
Size: 1.64 KB
Versions: 2
Compression:
Stored size: 1.64 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 %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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
kuhsaft-1.2.4 | app/views/kuhsaft/cms/bricks/_brick_item.html.haml |
kuhsaft-1.2.3 | app/views/kuhsaft/cms/bricks/_brick_item.html.haml |