Merge pull request #145 from snap-cloud/ticket-purchase-ids
Show ticket IDs on the admin ticket page
This commit is contained in:
commit
3aa00d5afc
3 changed files with 12 additions and 8 deletions
|
|
@ -250,8 +250,9 @@ linters:
|
||||||
|
|
||||||
ConsecutiveComments:
|
ConsecutiveComments:
|
||||||
exclude:
|
exclude:
|
||||||
# This one seems like a bug in haml-lint.
|
# These seems like a bug in haml-lint.
|
||||||
- "app/views/admin/conferences/show.html.haml"
|
- "app/views/admin/conferences/show.html.haml"
|
||||||
|
- "app/views/proposals/index.html.haml"
|
||||||
|
|
||||||
# Offense count: 24
|
# Offense count: 24
|
||||||
ConsecutiveSilentScripts:
|
ConsecutiveSilentScripts:
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@
|
||||||
.col-md-12
|
.col-md-12
|
||||||
%table.datatable
|
%table.datatable
|
||||||
%thead
|
%thead
|
||||||
%th #
|
%th ID
|
||||||
%th Name
|
%th Name
|
||||||
%th Quantity
|
%th Quantity
|
||||||
%th E-Mail
|
%th E-Mail
|
||||||
|
|
@ -32,7 +32,7 @@
|
||||||
- purchases = buyer.ticket_purchases.where(ticket_id: @ticket.id)
|
- purchases = buyer.ticket_purchases.where(ticket_id: @ticket.id)
|
||||||
%tr
|
%tr
|
||||||
%td
|
%td
|
||||||
= index + 1
|
= purchases.length == 1 ? purchases.first.id : purchases.map(&:id)
|
||||||
%td
|
%td
|
||||||
= buyer.name
|
= buyer.name
|
||||||
%td
|
%td
|
||||||
|
|
|
||||||
|
|
@ -33,10 +33,10 @@
|
||||||
|
|
||||||
.row
|
.row
|
||||||
.col-md-12
|
.col-md-12
|
||||||
%p.text-right
|
-# %p.text-right
|
||||||
= link_to '#status-help', class: 'btn btn-default', "data-toggle"=>"collapse" do
|
= link_to '#status-help', class: 'btn btn-default', "data-toggle": "collapse" do
|
||||||
Help?
|
Help?
|
||||||
.collapse#status-help
|
-# .collapse#status-help
|
||||||
%p
|
%p
|
||||||
%strong
|
%strong
|
||||||
What happens next with my proposal?
|
What happens next with my proposal?
|
||||||
|
|
@ -80,8 +80,11 @@
|
||||||
%br
|
%br
|
||||||
= link_to registered_text(event), registrations_conference_program_proposal_path(@conference.short_title, event), class: 'btn btn-xs btn-danger'
|
= link_to registered_text(event), registrations_conference_program_proposal_path(@conference.short_title, event), class: 'btn btn-xs btn-danger'
|
||||||
|
|
||||||
%td.col-md-2{style: "padding:20px 8px 20px 8px;"}
|
-# %td.col-md-2{style: "padding:20px 8px 20px 8px;"}
|
||||||
= link_to 'Complete your proposal', 'javascript: void(0)', "type"=>"button", "data-trigger"=>"focus", "data-toggle"=>"popover", "title"=>"Your todo list", "data-content"=>"#{render partial: 'tooltip', locals: { event: event} }"
|
%a{href: '#', type: "button", "data-trigger": "click focus", "data-toggle": "popover",
|
||||||
|
title: "Your todo list",
|
||||||
|
"data-content": "#{render 'tooltip', event: event}" }
|
||||||
|
Complete your proposal
|
||||||
- if can? :create, @conference.registrations.new
|
- if can? :create, @conference.registrations.new
|
||||||
- progress_percentage = event.calculate_progress
|
- progress_percentage = event.calculate_progress
|
||||||
.progress
|
.progress
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue