Sha256: a468f5b4cedd5da3d7faf8aee3809c9b415b4ac58df71d2254e0f242000aed7a

Contents?: true

Size: 1.05 KB

Versions: 2

Compression:

Stored size: 1.05 KB

Contents

.container-fluid
  %h1 Listing blocks


  .table_responsive
    %table.table.table-hover.table-striped.sortable-theme-minimal{data: {sortable: ''}}
      %thead
        %tr
          %th
            ID
          %th{data:{sorted: 'true', sorted_direction: 'ascending' }}
            Name
          %th Width
          %th Height
          %th Depth
          %th{data:{sortable: 'false'}}

      %tbody
        - @blocks.each do |block|
          %tr
            %td
              = block.id
            %td{data:{value: block.name.gsub(' ', '').downcase, entity: 'Block', action: 'show', id: (block.id) }}
              = link_to block.name, '#'

            %td= block.width
            %td= block.height
            %td= block.depth
            %td
              = link_to '#', :class => 'btn-sm btn-primary', data: { entity: 'Block', action: 'edit', id: (block.id) } do
                %i.fa.fa-edit
                EDIT

  %hr
  %p
    = link_to '#', :class => 'btn btn-success', data: { entity: 'Block', action: 'new' } do
      %i.fa.fa-plus
        = 'New Block'

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bootbox_crud-0.2.1 test/dummy/app/views/blocks/index.html.haml
bootbox_crud-0.2.0 test/dummy/app/views/blocks/index.html.haml