Sha256: 709c2d7f550fc0e04353d6ce4f0ee6b8481aadefe43fb18d589d160200c79a29

Contents?: true

Size: 914 Bytes

Versions: 3

Compression:

Stored size: 914 Bytes

Contents

.fields_container{style: (builder.object.try(:marked_for_destruction?) ? 'display:none;' : 'position:relative'), class: 'well'}
  - if !options[:include_id] && builder.object.try(:persisted?)
    = builder.hidden_field :id
  - if options[:sort] || options[:destroy]
    .row.form-group
      .col-md-2.col-xs-2
        - if options[:sort]
          = link_to '#', data: {sort_up: true} do
            %i.glyphicon.glyphicon-arrow-up
          = link_to '#', data: {sort_down: true} do
            %i.glyphicon.glyphicon-arrow-down
      .col-md-1.col-md-offset-9.col-xs-1.col-xs-offset-8
        - if options[:destroy]
          = link_to '#', class: 'btn btn-danger remove_field' do
            %i.glyphicon.glyphicon-trash
  - if options[:destroy]
    = builder.hidden_field :_destroy
  - if block.present?
    = capture(builder, options, &block)
  - else
    = render partial, builder: builder, options: options

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
coalla-cms-0.7.0.0 app/views/admin/common/_nested_fields_for_element.html.haml
coalla-cms-0.6.1.1 app/views/admin/common/_nested_fields_for_element.html.haml
coalla-cms-0.6.0.9 app/views/admin/common/_nested_fields_for_element.html.haml