Sha256: c1012089cbb21800e069976f1fc86bf532388b28ef44da1b2fb6621ebc51925a

Contents?: true

Size: 1.58 KB

Versions: 16

Compression:

Stored size: 1.58 KB

Contents

.modal-header
  %button.close{ 'data-dismiss' => 'modal' }
    ×
  %h3= t('.create_new', :brick => @brick.backend_label)

= simple_form_for @brick, :as => :brick, :url => kuhsaft.cms_bricks_path, :method => :post, :remote => true, :html => { :id => nil }, :wrapper => :bootstrap do |form|
  .modal-body
    = form.hidden_field :position, :class => 'position-field'
    = form.hidden_field :type
    = form.hidden_field :brick_list_id
    = form.hidden_field :brick_list_type

    - brick_content = render(@brick.to_edit_partial_path, :brick => @brick, :form => form)

    - unless @brick.available_display_styles.empty?
      #display-styles.btn-group.pull-right
        %a.btn.btn-small.dropdown-toggle{ 'data-toggle' => 'dropdown', 'href' => '#' }
          %i.icon-tint
          %span.caret
        %ul.dropdown-menu.pull-right
          %li
            = form.input :display_styles, :collection => @brick.translated_available_display_styles, :as => :check_boxes

    - if brick.class.include? Kuhsaft::Gridded
      .btn-group.pull-right
        %a.btn.btn-small.dropdown-toggle{ 'data-toggle' => 'dropdown', 'href' => '#' }
          %i.icon-th
          %span.caret
        %ul.dropdown-menu.pull-right
          %li
            = form.input :col_count, collection: brick.class.available_grid_sizes, as: :radio_buttons, label_method: lambda { |col_count| t("kuhsaft.cms.bricks.columns", count: col_count) }

    - if brick_content.present?
      = brick_content
    - else
      = t('.no_content')

  .modal-footer
    .clearfix
      .pull-right
        = form.button :submit, t('.save'), :class => 'btn-success'

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
kuhsaft-2.6.3 app/views/kuhsaft/cms/bricks/_new.html.haml
kuhsaft-2.6.2 app/views/kuhsaft/cms/bricks/_new.html.haml
kuhsaft-2.6.1 app/views/kuhsaft/cms/bricks/_new.html.haml
kuhsaft-2.5.2 app/views/kuhsaft/cms/bricks/_new.html.haml
kuhsaft-2.6.0 app/views/kuhsaft/cms/bricks/_new.html.haml
kuhsaft-2.5.1 app/views/kuhsaft/cms/bricks/_new.html.haml
kuhsaft-2.5.0 app/views/kuhsaft/cms/bricks/_new.html.haml
qbrick-2.5.0.pre app/views/kuhsaft/cms/bricks/_new.html.haml
kuhsaft-2.4.3 app/views/kuhsaft/cms/bricks/_new.html.haml
kuhsaft-2.4.2 app/views/kuhsaft/cms/bricks/_new.html.haml
kuhsaft-2.4.1 app/views/kuhsaft/cms/bricks/_new.html.haml
kuhsaft-2.4.0 app/views/kuhsaft/cms/bricks/_new.html.haml
kuhsaft-2.3.6 app/views/kuhsaft/cms/bricks/_new.html.haml
kuhsaft-2.3.5 app/views/kuhsaft/cms/bricks/_new.html.haml
kuhsaft-2.3.4 app/views/kuhsaft/cms/bricks/_new.html.haml
kuhsaft-2.3.3 app/views/kuhsaft/cms/bricks/_new.html.haml