Sha256: 121c534891625cc38092c3e0545488cfcf8d78faaab75004db63dcbda2e6bcc2

Contents?: true

Size: 1 KB

Versions: 33

Compression:

Stored size: 1 KB

Contents

- unless brick_list.brick_types.empty?
  - if brick_list.brick_types.allowed.count > 1
    %a.btn.btn-small.btn-primary.dropdown-toggle{ 'data-toggle' => 'dropdown', 'href' => '#' }
      = t('.add_element')
      %span.caret
    %ul.dropdown-menu.pull-right
      - brick_list.brick_types.allowed.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
  - else
    - brick_list.brick_types.allowed.each do |type|
      = link_to t('.add_specific_element', :name => 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, :class => 'btn btn-small btn-primary'

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
kuhsaft-1.7.0 app/views/kuhsaft/cms/admin/_brick_type_dropdown.html.haml
kuhsaft-1.6.0 app/views/kuhsaft/cms/admin/_brick_type_dropdown.html.haml
kuhsaft-1.5.0 app/views/kuhsaft/cms/admin/_brick_type_dropdown.html.haml
kuhsaft-1.4.3 app/views/kuhsaft/cms/admin/_brick_type_dropdown.html.haml
kuhsaft-1.4.2 app/views/kuhsaft/cms/admin/_brick_type_dropdown.html.haml
kuhsaft-1.4.1 app/views/kuhsaft/cms/admin/_brick_type_dropdown.html.haml
kuhsaft-1.4.0 app/views/kuhsaft/cms/admin/_brick_type_dropdown.html.haml
kuhsaft-1.3.1 app/views/kuhsaft/cms/admin/_brick_type_dropdown.html.haml
kuhsaft-1.2.15 app/views/kuhsaft/cms/admin/_brick_type_dropdown.html.haml
kuhsaft-1.2.14 app/views/kuhsaft/cms/admin/_brick_type_dropdown.html.haml
kuhsaft-1.2.13 app/views/kuhsaft/cms/admin/_brick_type_dropdown.html.haml
kuhsaft-1.2.12 app/views/kuhsaft/cms/admin/_brick_type_dropdown.html.haml
kuhsaft-1.2.11 app/views/kuhsaft/cms/admin/_brick_type_dropdown.html.haml