Created
December 12, 2014 06:31
-
-
Save barek2k2/044519a7d5da81a013ac to your computer and use it in GitHub Desktop.
This file contains hidden or 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
<p>Dear <%= @carer.user.first_name.titleize %>,</p> | |
<p><%= @job.user.public_name.titleize %> has posted a new child care job on Kindy, in your area. Here are the details:</p> | |
<p><strong>Job location: </strong><%= @job.user.location.suburb %></p> | |
<p> | |
<strong>Time: </strong> | |
<% job_date = @job.once_off_date || @job.ongoing_start_date %> | |
<%= job_date.strftime("%B %d, %Y @ %I:%H") %> | |
</p> | |
<p><strong>Job type: </strong><%= @job.job_category.title %></p> | |
<p> | |
<%= @job.description %> | |
</p> | |
<p> | |
<strong>Kids:</strong><br/> | |
<% kids = Kid.where("id IN (?)",@job.kid_ids.split(',')) %> | |
<% kids.each do |kid| %> | |
Name: <%= kid.name %>, | |
Age: <%= kid.age %>, | |
Gender: <%= kid.gender %> <br/> | |
<% end %> | |
</p> | |
<p> | |
<strong>Other duties: </strong> | |
<%= @job.other_duties.join(",") %> | |
</p> | |
<p>To apply for this job, open the Kindy app and tap on the "jobs" tab."</p> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment