Make ticket layout configurable

Added option for conference organizer to switch between ticket layouts (horizontal or vertical). Added test for the same.
This commit is contained in:
siddhantbajaj 2017-06-30 05:26:21 +05:30
parent e25de318bd
commit dd52a9b2ab
10 changed files with 38 additions and 2 deletions

View file

@ -211,7 +211,7 @@ module Admin
:vpositions_attributes, :use_volunteers, :color,
:sponsorship_levels_attributes, :sponsors_attributes,
:targets, :targets_attributes,
:campaigns, :campaigns_attributes, :registration_limit, :organization_id)
:campaigns, :campaigns_attributes, :registration_limit, :organization_id, :ticket_layout)
end
end
end

View file

@ -12,5 +12,6 @@ class PhysicalTicketController < ApplicationController
def show
@file_name = "ticket_for_#{@conference.short_title}"
@user = @physical_ticket.user
@ticket_layout = @conference.ticket_layout.to_sym
end
end