alphagov/whitehall — pull request #21 by heathd (2012-08-09 13:09:14+00:00)
Title: Allow requesting publications in alternative format

This branch adds a field `alternative_format_contact_email` to organisations, and adds `alternative_format_provider_id` to editions. Attachments associated with Publications, Specialist Guidance, Consultations and Consultation Responses, or Supporting pages of a Policy will display instructions on how to request alternative formats by writing to this address.

The instructions are 'visually hidden', and can be revealed by clicking. They should read naturally in a screen reader.

Consultation responses get the contact email from the associated Consultation.

Supporting pages get the contact email from the Policy.

Known issues:

* there's no validation that an organisation has an email address configured, and if none is set then the instructions are still shown, but don't make much sense.
* there's no validation that an 'Alternative format provider' should be one of the 'Publishing organisation'. This may lead to mistakes if people set one but not the other.