change "purchase" to "get" in views
This commit is contained in:
parent
6aecf2d446
commit
164101f2fe
5 changed files with 8 additions and 8 deletions
|
|
@ -19,7 +19,7 @@ class PaymentsController < ApplicationController
|
||||||
if @payment.purchase && @payment.save
|
if @payment.purchase && @payment.save
|
||||||
update_purchased_ticket_purchases
|
update_purchased_ticket_purchases
|
||||||
redirect_to conference_conference_registration_path(@conference.short_title),
|
redirect_to conference_conference_registration_path(@conference.short_title),
|
||||||
notice: 'Thanks! You have purchased your tickets successfully.'
|
notice: 'Thanks! Your ticket is booked successfully.'
|
||||||
else
|
else
|
||||||
@total_amount_to_pay = Ticket.total_price(@conference, current_user, paid: false)
|
@total_amount_to_pay = Ticket.total_price(@conference, current_user, paid: false)
|
||||||
@unpaid_ticket_purchases = current_user.ticket_purchases.unpaid.by_conference(@conference)
|
@unpaid_ticket_purchases = current_user.ticket_purchases.unpaid.by_conference(@conference)
|
||||||
|
|
|
||||||
|
|
@ -9,10 +9,10 @@ class TicketPurchasesController < ApplicationController
|
||||||
if message.blank?
|
if message.blank?
|
||||||
if current_user.ticket_purchases.by_conference(@conference).unpaid.any?
|
if current_user.ticket_purchases.by_conference(@conference).unpaid.any?
|
||||||
redirect_to new_conference_payment_path,
|
redirect_to new_conference_payment_path,
|
||||||
notice: 'Please pay here to purchase tickets.'
|
notice: 'Please pay here to get tickets.'
|
||||||
else
|
else
|
||||||
redirect_to conference_tickets_path(@conference.short_title),
|
redirect_to conference_tickets_path(@conference.short_title),
|
||||||
error: 'Please purchase at least one ticket to continue.'
|
error: 'Please get at least one ticket to continue.'
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
redirect_to conference_conference_registration_path(@conference.short_title),
|
redirect_to conference_conference_registration_path(@conference.short_title),
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
.page-header
|
.page-header
|
||||||
%h1 Tickets
|
%h1 Tickets
|
||||||
%p.text-muted
|
%p.text-muted
|
||||||
Tickets to purchase during registration
|
Tickets to get during registration
|
||||||
- if @conference.tickets.any?
|
- if @conference.tickets.any?
|
||||||
.row
|
.row
|
||||||
.col-md-12
|
.col-md-12
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
Support
|
Support
|
||||||
=@conference.short_title
|
=@conference.short_title
|
||||||
%p.lead
|
%p.lead
|
||||||
To support our event you can purchase these tickets
|
To support our event you can get these tickets
|
||||||
- @conference.tickets.each_slice(4) do |slice|
|
- @conference.tickets.each_slice(4) do |slice|
|
||||||
.row.row-centered
|
.row.row-centered
|
||||||
- slice.each do |ticket|
|
- slice.each do |ticket|
|
||||||
|
|
@ -20,6 +20,6 @@
|
||||||
= markdown(ticket.description)
|
= markdown(ticket.description)
|
||||||
%p.text-center
|
%p.text-center
|
||||||
= link_to(conference_tickets_path(@conference.short_title), class: 'btn btn-success') do
|
= link_to(conference_tickets_path(@conference.short_title), class: 'btn btn-success') do
|
||||||
Buy Ticket
|
Get Ticket
|
||||||
= humanized_money_with_symbol ticket.price
|
= humanized_money_with_symbol ticket.price
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -104,10 +104,10 @@
|
||||||
= humanized_money tickets.first.price
|
= humanized_money tickets.first.price
|
||||||
%br
|
%br
|
||||||
- if @tickets.any?
|
- if @tickets.any?
|
||||||
= link_to 'Buy more tickets', conference_tickets_path(@conference.short_title), class: "btn btn-default"
|
= link_to 'Get more tickets', conference_tickets_path(@conference.short_title), class: "btn btn-default"
|
||||||
- else
|
- else
|
||||||
You haven't bought any tickets.
|
You haven't bought any tickets.
|
||||||
= link_to 'Please buy some tickets to support us!', conference_tickets_path(@conference.short_title)
|
= link_to 'Please get some tickets to support us!', conference_tickets_path(@conference.short_title)
|
||||||
%p
|
%p
|
||||||
(Your participation won't be valid without getting a ticket)
|
(Your participation won't be valid without getting a ticket)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue