Skip to content

Instantly share code, notes, and snippets.

@barek2k2
Created December 12, 2014 06:31
Show Gist options
  • Save barek2k2/044519a7d5da81a013ac to your computer and use it in GitHub Desktop.
Save barek2k2/044519a7d5da81a013ac to your computer and use it in GitHub Desktop.
<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