Sha256: 1e058dc24f24d692e5e4ed49592ec373d48b664cc2bc7364d597244f66d8fa51
Contents?: true
Size: 1.1 KB
Versions: 2
Compression:
Stored size: 1.1 KB
Contents
- content_for :js do :javascript $(function() { new PageEditPage(); }); %legend Blocks %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, edit_block_path(block) %td.action = link_to edit_block_path(block), class: 'btn', title: 'edit' do %i.icon-pencil %td.action = link_to page_remove_block_path(@page, block_id: block.id), method: :delete, class: 'btn', id: "remove-block-#{block.id}", title: 'remove' do %i.icon-remove %button#save.btn.btn-primary %i.icon-hdd.icon-white Save %br
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
flms-0.9.0 | app/views/flms/pages/_block_list.html.haml |
flms-0.1.0 | app/views/flms/pages/_block_list.html.haml |