-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
65 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
lib/importer/nunjucks/importer/macros/mapping_error_list.njk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
|
||
|
||
{# | ||
Shows errors generated when attempting to | ||
perform a mapping | ||
#} | ||
{% macro importerMappingErrorList(data) %} | ||
{% set errors = importerMappingErrors(data) %} | ||
{% if errors %} | ||
<div> | ||
<h2 class="govuk-heading-m">Errors</h2> | ||
<ul> | ||
{% for error in errors %} | ||
<li>{{ error }}</li> | ||
{% endfor %} | ||
</ul> | ||
<div> | ||
{% endif %} | ||
{% endmacro %} |
This file was deleted.
Oops, something went wrong.
19 changes: 19 additions & 0 deletions
19
lib/importer/nunjucks/importer/macros/mapping_warning_list.njk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
|
||
|
||
{# | ||
Shows warnings generated when attempting to | ||
perform a mapping | ||
#} | ||
{% macro importerMappingWarningList(data) %} | ||
{% set warnings = importerMappingWarnings(data) %} | ||
{% if warnings %} | ||
<div> | ||
<h2 class="govuk-heading-m">Warnings</h2> | ||
<ul> | ||
{% for warning in warnings %} | ||
<li>{{ warning }}</li> | ||
{% endfor %} | ||
</ul> | ||
<div> | ||
{% endif %} | ||
{% endmacro %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters