-
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 pull request #267 from fnf-org/mfl/request_cconfirmed
request confirmed mailer
- Loading branch information
Showing
13 changed files
with
223 additions
and
98 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.3.8 | ||
1.3.9 |
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
21 changes: 13 additions & 8 deletions
21
app/views/ticket_request_mailer/request_approved.html.haml
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,21 +1,26 @@ | ||
%p | ||
Hi #{@ticket_request.user.first_name}, | ||
|
||
%p | ||
Your ticket request for | ||
%b #{@event.name} | ||
has been approved! | ||
|
||
%p<> | ||
%p | ||
- if @ticket_request.free? | ||
You're good to go! | ||
- else | ||
You can now | ||
= succeed '.' do | ||
= link_to @payment_url do | ||
purchase your | ||
= 'ticket'.pluralize(@ticket_request.total_tickets) | ||
You can | ||
= link_to @payment_url do | ||
buy your | ||
= 'ticket'.pluralize(@ticket_request.total_tickets) | ||
now! | ||
|
||
%p | ||
Thanks, | ||
With love ❤️, | ||
%br | ||
The FnF Ticket Team | ||
Your FnF Ticket Team | ||
|
||
%p | ||
P.S. You can view the status of your request at any time by visiting | ||
= link_to 'this page', @ticket_request_url |
39 changes: 39 additions & 0 deletions
39
app/views/ticket_request_mailer/request_confirmed.html.haml
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,39 @@ | ||
%p | ||
Hi #{@ticket_request.user.first_name}, | ||
|
||
%p | ||
Your | ||
= 'ticket'.pluralize(@ticket_request.total_tickets) | ||
for | ||
%b #{@event.name} | ||
- @ticket_request.total_tickets > 1 ? ' are ' : ' is ' | ||
confirmed! | ||
|
||
%p | ||
Total Tickets: #{@ticket_request.total_tickets} | ||
- if @ticket_request.ticket_request_event_addons? | ||
%br | ||
Event Addons: | ||
- @ticket_request.active_sorted_addons.each do |tr_event_addon| | ||
= "#{tr_event_addon.name}: #{tr_event_addon.quantity}" | ||
%br | ||
%p | ||
- if @ticket_request.free? | ||
You're good to go! | ||
- else | ||
If you have not already paid for your tickets, | ||
= link_to @payment_url do | ||
buy your tickets now! | ||
|
||
%p | ||
With love ❤️, | ||
%br | ||
Your FnF Ticket Team | ||
|
||
%p | ||
P.S. You can view the status of your request at any time by visiting | ||
= link_to 'this page', @ticket_request_url | ||
|
||
%p | ||
%p | ||
%i This email was generated by a very friendly hamster at: #{Time.now} |
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,13 @@ | ||
%p | ||
Hi #{@ticket_request.user.first_name}, | ||
%p | ||
Your ticket request for | ||
%b #{@event.name} | ||
has been declined or denied. | ||
|
||
%p | ||
If you feel that this is an error, or would like more information, | ||
please reply directly to this email. | ||
|
||
%p | ||
\- The FnF Ticket Team |
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
Oops, something went wrong.