Merge 3502ea7e2b into 7fa007d621
This commit is contained in:
commit
c6a5b802aa
2 changed files with 6 additions and 6 deletions
|
|
@ -25,12 +25,12 @@
|
||||||
= link_to 'Delete', admin_conference_registration_period_path,
|
= link_to 'Delete', admin_conference_registration_period_path,
|
||||||
method: :delete, data: { confirm: 'Are you sure?' }, class: 'btn btn-danger'
|
method: :delete, data: { confirm: 'Are you sure?' }, class: 'btn btn-danger'
|
||||||
- else
|
- else
|
||||||
- unless @conference.tickets.for_registration.empty?
|
- if @conference.tickets.for_registration.empty?
|
||||||
- if can? :create, @conference.build_registration_period
|
h3.text-left
|
||||||
= link_to 'New Registration Period', new_admin_conference_registration_period_path, class: 'btn btn-primary'
|
|
||||||
- else
|
|
||||||
.h3.text-left
|
|
||||||
No Registration Tickets!
|
No Registration Tickets!
|
||||||
%small
|
%small
|
||||||
= link_to 'Create registration tickets', new_admin_conference_ticket_path
|
= link_to 'Create registration tickets', new_admin_conference_ticket_path
|
||||||
before creating the registration period.
|
before creating the registration period.
|
||||||
|
- else
|
||||||
|
if can? :create, @conference.build_registration_period
|
||||||
|
= link_to 'New Registration Period', new_admin_conference_registration_period_path, class: 'btn btn-primary'
|
||||||
|
|
@ -192,7 +192,7 @@ describe Ticket do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
describe 'currency updation' do
|
describe 'currency update' do
|
||||||
context 'when more than one ticket exist for a conference' do
|
context 'when more than one ticket exist for a conference' do
|
||||||
it 'should not allow currency update' do
|
it 'should not allow currency update' do
|
||||||
ticket.update(price_currency: 'INR')
|
ticket.update(price_currency: 'INR')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue