Skip to content

Commit

Permalink
Bump version to 20.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
allait committed Feb 16, 2017
1 parent 2dbbb87 commit 7bd0aac
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 1 deletion.
45 changes: 45 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,51 @@

Records breaking changes from major version bumps

## 20.0.0

PR: [#304](https://github.com/alphagov/digitalmarketplace-frontend-toolkit/pull/304)

## What changed

- The format of the followup questions has changed, so toolkit form macros need to pass in
the `content_question.values_followup` instead of the `content_question.followup`
- Since radio and checkbox questions can have followups too the related macros need to set
`followup=content_question.values_followup`
- Radio and boolean questions can be follow-up questions, so related macros need to set
`hidden=question_content.hidden`

#### Example app change

Old:
```jinja
{% macro boolean(question_content, service_data, errors, question_number=None, get_question=None) -%}
{%
with
...
followup=question_content.followup,
...
%}
{% include "toolkit/forms/selection-buttons.html" %}
{% endwith %}
{%- endmacro %}
```

New:
```jinja
{% macro boolean(question_content, service_data, errors, question_number=None, get_question=None) -%}
{%
with
...
followup=question_content.values_followup,
hidden=question_content.hidden,
...
%}
{% include "toolkit/forms/selection-buttons.html" %}
{% endwith %}
{%- endmacro %}
```


## 19.0.0

PR: [#285](https://github.com/alphagov/digitalmarketplace-frontend-toolkit/pull/285)
Expand Down
2 changes: 1 addition & 1 deletion VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
19.5.0
20.0.0

0 comments on commit 7bd0aac

Please sign in to comment.