Making the user workflow easier
This commit is contained in:
parent
6d415d44e3
commit
3181c1c0d8
6 changed files with 92 additions and 20 deletions
|
|
@ -2,18 +2,34 @@
|
|||
.row-fluid
|
||||
.span13
|
||||
%h2.pull-left
|
||||
My Proposals
|
||||
= "My Proposals for #{@conference.title}"
|
||||
.pull-right{:style=>"margin-top:20px;"}
|
||||
= link_to "New Proposal", new_conference_proposal_path(@conference.short_title), :class => "btn btn-primary"
|
||||
- @events.each do |event|
|
||||
- if @person.proposal_count(@conference) > 0
|
||||
.row-fluid
|
||||
.span12
|
||||
.well
|
||||
.row-fluid
|
||||
.span10
|
||||
= event.title
|
||||
.pull-right
|
||||
- if @conference.cfp_open?
|
||||
= 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"
|
||||
%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"
|
||||
|
|
|
|||
|
|
@ -1,2 +1,6 @@
|
|||
.container
|
||||
.row
|
||||
.span12
|
||||
.center-text
|
||||
= @conference.call_for_papers.description
|
||||
= render 'proposal_form'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue