Specific Acceptance Criteria

Manually select a related article (if no related article is selected, the system will select by default the next article for that page type)

Select a tag

Create a working page that substantially resembles the page in the mockup

In order to create templates from the mockups, you'll likely need to create new Page Models for Wagtail. The following are the models and fields for each template:

Author

This model will not have its own template, but its data will be needed for other templates/Page models.

Name

Bio

Photo (the admin should be able to upload a file)

Record

Create this model and a corresponding template.

Title

Author (select field, one or many)

Body (styled text)

Date (date field, default to current date)

Category (either create a separate table and associate here, or make an enum. Regardless, the admin should be able to select from the following fields: Advisory Opinions, Commission, Compliance, Litigation, Outreach, Public Funding, Regulations, Reporting, Statistics. The field should be a select field.)

Read Next Article Title (text field. If null, field does not display in the template)

Read Next Article URL (text field. If null, field does not display in the template)

Related Section Title (text field. If null, field does not display in the template)

Related Section URL (text field. If null, field does not display in the template)

Digest

Create this model and a corresponding template.

Title

Author (select field, one or many)

Body (styled text)

Date (date field, default to current date)

Read Next Article Title (text field. If null, field does not display in the template)

Read Next Article URL (text field. If null, field does not display in the template)

News Release

Create this model and a corresponding template.

Title

Author (select field, one or many)

Date (date field, default to current date)

Category (either create a separate table and associate here, or make an enum. Regardless, the admin should be able to select from the following fields: (Audit reports, Campaign finance data summaries, Commission appointments, Disclosure initiatives, Enforcement matters, Hearings, Litigation, Non-filer publications, Open meetings and related matters, Presidential public funds, Rulemakings, Other agency actions). This should be a select field)

Read Next Article Title (text field. If null, field does not display in the template)

Read Next Article URL (text field. If null, field does not display in the template)

General Acceptance Criteria

The delivered pull request will not break the Travis CI build (see the .travis.yml file to see which tests will run.