osem-fcy/app/views/proposal/index.html.haml

36 lines
1.6 KiB
Text
Raw Normal View History

2013-01-07 09:04:09 +01:00
.container-fluid
.row-fluid
.span13
%h2.pull-left
2013-01-08 08:36:21 +01:00
= "My Proposals for #{@conference.title}"
2013-01-07 09:04:09 +01:00
.pull-right{:style=>"margin-top:20px;"}
= link_to "New Proposal", new_conference_proposal_path(@conference.short_title), :class => "btn btn-primary"
2013-01-08 08:36:21 +01:00
- if @person.proposal_count(@conference) > 0
2013-01-07 09:04:09 +01:00
.row-fluid
.span12
2013-01-08 08:36:21 +01:00
%table.table.table-bordered.table-striped
%thead
%th
%b Title
%th
%b Status
%th
- @events.each do |event|
%tr
%td
= event.title
%td
= event.public_state
- if event.confirmed? && !@conference.user_registered?(current_user)
%br
= link_to "Register to attend", register_conference_path(@conference.short_title), :style => "font-size:10px;"
%td
.pull-right
- if event.transition_possible? :confirm
= link_to "Confirm", "#", :class => "btn btn-mini btn-success"
- if @conference.cfp_open?
- if !event.unconfirmed? && !event.confirmed?
= link_to "Edit", edit_conference_proposal_path(@conference.short_title, event.id), :class => "btn btn-mini btn-primary"
= link_to "Withdraw", conference_proposal_path(@conference.short_title, event.id), :method => :delete,
:confirm => "Are you sure you want to withdraw this proposal?", :class => "btn btn-mini btn-danger"