This repository has been archived by the owner on Mar 12, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into production
- Loading branch information
Showing
38 changed files
with
381 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
class PaymentStudentHandler | ||
constructor : -> | ||
@$studentSelect = $('#student_amount') | ||
@$trData = $('#tr_data') | ||
@trDataNormal = $('#tr_data_normal').val() | ||
@trDataStudent = $('#tr_data_student').val() | ||
|
||
bindChanges : -> | ||
@$studentSelect.off('change') | ||
@$studentSelect.on 'change', => | ||
@updateTrData() | ||
|
||
isStudent : -> | ||
return JSON.parse(@$studentSelect.val()) | ||
|
||
updateTrData : -> | ||
if @isStudent() | ||
@$trData.val(@trDataStudent) | ||
@$studentSelect.after('<p class="student-helper-message">Students must present photo ID.</p>') | ||
else | ||
@$trData.val(@trDataNormal) | ||
$('.student-helper-message').remove() | ||
|
||
|
||
$ -> | ||
if $('#student_amount').length > 0 | ||
psh = new PaymentStudentHandler() | ||
psh.bindChanges() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
class AttendeeSerializer < ActiveModel::Serializer | ||
attributes :id, :email_address, :state, :round, :first_name, :last_name | ||
attributes :id, :email_address, :state, :round, :first_name, :last_name, :gender, :age, :profession, :tweet_idea, :scholarship | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
- if @attendee.valid? | ||
$('body').append("<div class='flash flash-notice'>Thanks for registering!</div>"); | ||
$('#new_attendee #inputs input').val(''); | ||
$("#new_attendee #inputs textarea").val(''); | ||
- else | ||
$('body').append("<div class='flash flash-error'>#{@attendee.errors.full_messages.join(', ')}</div>"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
%strong{style: 'font-size: 1.5em;'}= "We'll see you there." | ||
|
||
%p Thanks for confirming your attendence at TEDxBrisbane 2013. | ||
%p Thanks for confirming your attendance at TEDxBrisbane 2013. We're pretty excited that we're going to be seeing you soon. | ||
|
||
= render 'emails/email_footer' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
You have declined your invitation to TEDxBrisbane 2013. | ||
%p= "Hi #{attendee.first_name}," | ||
|
||
= render 'emails/email_footer' | ||
%p Sorry. | ||
|
||
%p We are unable to offer you a place at this year's event due to space limitations at the venue. | ||
|
||
%p= "We do so wish you could join us but you will be able to watch the live stream on the day at #{email_anchor('www.tedxbrisbane.com', 'http://www.tedxbrisbane.com')}" | ||
|
||
%p We've also placed you on the waiting list and if a ticket becomes available, we will check in again and see if you are still keen to come along. |
Oops, something went wrong.