crowbar_framework/app/views/barclamp/proposals.html.haml
.row
.col-xs-12
%h1.page-header
= t(".title", :barclamp => @bc_name.titleize)
.panel.panel-default{ "data-ledupdate" => status_proposal_path }
%table.table.table-hover.barclamp-list
%thead
%tr
%th
= t(:status, :scope => "model.attributes.proposal")
%th
= t(:barclamp, :scope => "model.attributes.proposal")
%th
= t(:name, :scope => "model.attributes.proposal")
%th
= t(:description, :scope => "model.attributes.proposal")
%th
%tbody
- @proposals.sort_by{ |n| "#{n.barclamp}/#{n.name}" }.each do |proposal|
%tr
%td.col-xs-1.status
= display_led_for(proposal.status, "#{proposal.barclamp.parameterize}_#{proposal.name.parameterize}")
%td
= proposal.barclamp.titlecase
%td
= proposal.name
%td
= proposal.description
%td.col-xs-1
= show_barclamp_button(proposal.barclamp, proposal.name, :class => "btn btn-default btn-block")