Sha256: d56bcce0fb43f1ed8d2ec77cbc2800dd970a24d78afbf5f5bfced65e05036cfc

Contents?: true

Size: 658 Bytes

Versions: 6

Compression:

Stored size: 658 Bytes

Contents

- if brick_list.respond_to?(:user_can_add_childs?) && brick_list.user_can_add_childs? && Kuhsaft::BrickType.count > 0
  %a.btn.btn-small.btn-primary.dropdown-toggle{ 'data-toggle' => 'dropdown', 'href' => '#' }
    = t('.add_element')
    %span.caret
  %ul.dropdown-menu.pull-right
    - Kuhsaft::BrickType.grouped.group_by(&:group).each do |group, types|
      - types.each do |type|
        %li
          = link_to type.class_name.constantize.model_name.human, kuhsaft.cms_bricks_path(:brick => { :type => type.class_name, :brick_list_id => brick_list.id, :brick_list_type => brick_list.brick_list_type }), :remote => true, :method => :post
      .divider

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
kuhsaft-1.1.1 app/views/kuhsaft/cms/admin/_brick_type_dropdown.html.haml
kuhsaft-1.1.0 app/views/kuhsaft/cms/admin/_brick_type_dropdown.html.haml
kuhsaft-1.0.3 app/views/kuhsaft/cms/admin/_brick_type_dropdown.html.haml
kuhsaft-1.0.2 app/views/kuhsaft/cms/admin/_brick_type_dropdown.html.haml
kuhsaft-1.0.1 app/views/kuhsaft/cms/admin/_brick_type_dropdown.html.haml
kuhsaft-1.0.0 app/views/kuhsaft/cms/admin/_brick_type_dropdown.html.haml