Sha256: 352f4596e9510baf7b73dd70cb802cf816abfb1340c0d602119334f27c449d91
Contents?: true
Size: 1.23 KB
Versions: 2
Compression:
Stored size: 1.23 KB
Contents
- content_for :js do :javascript $(function() { new BlocksIndexPage(); }); %br %h4 Blocks on page '#{@page.url}' %table.table.table-striped.table-hover %thead %tr %th Active %th Name %th Actions %tbody.block_list - @page.ordered_blocks_pages.each do |blocks_page| - block = blocks_page.block %tr.ui-state-default{'data-block-id' => block.id} -# "Active" switch. %td.action .switch.switch-mini - if blocks_page.active %input{id: "active_#{block.id}", type: 'checkbox', checked: 'checked'} - else %input{id: "active_#{block.id}", type: 'checkbox'} %td.name = link_to block.name, page_block_path(@page, block) %td.action = link_to edit_page_block_path(@page, block), class: 'btn', title: 'edit' do %i.icon-pencil %td.action = link_to page_block_path(@page, block), method: :delete, data: { confirm: 'Are you sure?' }, class: 'btn', title: 'delete' do %i.icon-trash %br = link_to new_page_block_path(@page), class: 'btn btn-success' do %i.icon-plus.icon-white New Block %button#save.btn.btn-primary %i.icon-hdd.icon-white Save
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
flms-0.0.3 | app/views/flms/blocks/index.html.haml |
flms-0.0.2 | app/views/flms/blocks/index.html.haml |