ministryofjustice/prison-visits

View on GitHub
app/views/visitor_mailer/booking_receipt_email.text.erb

Summary

Maintainability
Test Coverage
Dear <%= @visit.visitors.first.first_name %>,

YOUR VISIT IS NOT BOOKED YET

You can check the status of your request here:
<%= visit_status_url(@visit.visit_id, state: @token) %>

We'll email you by <%= when_to_expect_reply %> to confirm the date and time of your visit. Please don't contact us any sooner than that, as we won't be able to comment on booking requests that are being processed.

If you don’t receive a confirmation email by <%= when_to_expect_reply %>, please check your spam or junk folder for it. You need to do this on a computer or tablet (rather than a smart phone).

Add this email to your address book

To stop visit confirmation emails going to your spam or junk folder please add no-reply@email.prisonvisits.service.gov.uk to your address book or safe senders list.

Visit request details

You have requested a visit to <%= @visit.prison_name %> for <%= @visit.visitors.size %> <%= @visit.visitors.size > 1 ? 'people' : 'person' %>:

<% @visit.slots.each_with_index do |slot, index| %>
<% if slot.date.present? %>
<% if index == 0 %>First choice: <% else %>Alternative <%= index %>:<% end %> <%= date_and_duration_of_slot(slot) %>
<% end %>
<% end %>
Prisoner: <%= @visit.prisoner.first_name %> <%= @visit.prisoner.last_initial %>.
Prisoner number: <%= @visit.prisoner.number.upcase %>

Cancel this visit request

If you no longer want to visit on this date, you can cancel this request using the following link.
<%= visit_status_url(@visit.visit_id, state: @token) %>

Visitors with special requirements

If you have any special requirements, eg wheelchair access, please contact us.

* telephone: <%= prison_phone %>
* email: <%= prison_email %>

Need help or have a question?

If you have a question or need any help with the online visits service, please contact us: <%= new_feedback_url %>

Visit ID: <%= @visit.visit_id %>