Skip to content

Commit

Permalink
Add default content to the templates.
Browse files Browse the repository at this point in the history
  • Loading branch information
simonwo committed Sep 20, 2024
1 parent 74144f1 commit e6f5480
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 12 deletions.
9 changes: 7 additions & 2 deletions lib/importer/templates/mapping.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,12 @@
{% block content %}
<div class="govuk-grid-row">
<div class="govuk-grid-column-full">
<h1 class="govuk-heading-l">Map columns</h1>
<h1 class="govuk-heading-l">Identify columns</h1>
<p>
Select which columns in your sheet contain the information required
by this service. You can ignore any columns that contain information
that this service doesn't need.
</p>

<h2 class="govuk-heading-m">{{sheet}}</h2>

Expand All @@ -27,4 +32,4 @@ <h2 class="govuk-heading-m">{{sheet}}</h2>
</form>
</div>
</div>
{% endblock %}
{% endblock %}
13 changes: 11 additions & 2 deletions lib/importer/templates/select_footer_row.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,16 @@
<div class="govuk-grid-column-three-quarters">
<legend class="govuk-fieldset__legend govuk-fieldset__legend--l">
<h1 class="govuk-fieldset__heading">
Select cells containing footer data
Select cells containing footers, counts or totals
</h1>
<p>
Select any extra information after the rows if your sheet
contains it. It won't be used for this service.
</p>
<p>
You can skip this step if your sheet doesn't contain any extra
information.
</p>
</legend>

<form action="{{ importerSelectFooterPath('/mapping') }}" method="post">
Expand All @@ -27,9 +35,10 @@ <h1 class="govuk-fieldset__heading">
</div>

<div class="govuk-button-group">
{{ govukButton({ text: "Skip", classes: "govuk-button--secondary"}) }}
{{ govukButton({ text: "Next" }) }}
</div>
</form>
</div>
</div>
{% endblock %}
{% endblock %}
12 changes: 10 additions & 2 deletions lib/importer/templates/select_header_row.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,16 @@
<div class="govuk-grid-column-three-quarters">
<legend class="govuk-fieldset__legend govuk-fieldset__legend--l">
<h1 class="govuk-fieldset__heading">
Select cells containing column headings
Select cells containing column names
</h1>
<p>
Column names are the descriptive labels usually found at the top
of a column.
</p>
<p>
You can select a whole row or just the column names that are
needed for this service.
</p>
</legend>

<form action="{{ importerSelectHeaderPath('/select_footer_row') }}" method="post">
Expand All @@ -32,4 +40,4 @@ <h1 class="govuk-fieldset__heading">
</form>
</div>
</div>
{% endblock %}
{% endblock %}
9 changes: 7 additions & 2 deletions prototypes/basic/app/views/mapping.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,12 @@
{% block content %}
<div class="govuk-grid-row">
<div class="govuk-grid-column-full">
<h1 class="govuk-heading-l">Map columns</h1>
<h1 class="govuk-heading-l">Identify columns</h1>
<p>
Select which columns in your sheet contain the information required
by this service. You can ignore any columns that contain information
that this service doesn't need.
</p>

<h2 class="govuk-heading-m">{{sheet}}</h2>

Expand All @@ -27,4 +32,4 @@ <h2 class="govuk-heading-m">{{sheet}}</h2>
</form>
</div>
</div>
{% endblock %}
{% endblock %}
12 changes: 10 additions & 2 deletions prototypes/basic/app/views/select_footer_row.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,16 @@
<div class="govuk-grid-column-three-quarters">
<legend class="govuk-fieldset__legend govuk-fieldset__legend--l">
<h1 class="govuk-fieldset__heading">
Select cells containing footer data
Select cells containing footers, counts or totals
</h1>
<p>
Select any extra information after the rows if your sheet
contains it. It won't be used for this service.
</p>
<p>
You can skip this step if your sheet doesn't contain any extra
information.
</p>
</legend>

<form action="{{ importerSelectFooterPath('/mapping') }}" method="post">
Expand All @@ -33,4 +41,4 @@ <h1 class="govuk-fieldset__heading">
</form>
</div>
</div>
{% endblock %}
{% endblock %}
12 changes: 10 additions & 2 deletions prototypes/basic/app/views/select_header_row.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,16 @@
<div class="govuk-grid-column-three-quarters">
<legend class="govuk-fieldset__legend govuk-fieldset__legend--l">
<h1 class="govuk-fieldset__heading">
Select cells containing column headings
Select cells containing column names
</h1>
<p>
Column names are the descriptive labels usually found at the top
of a column.
</p>
<p>
You can select a whole row or just the column names that are
needed for this service.
</p>
</legend>

<form action="{{ importerSelectHeaderPath('/select_footer_row') }}" method="post">
Expand All @@ -32,4 +40,4 @@ <h1 class="govuk-fieldset__heading">
</form>
</div>
</div>
{% endblock %}
{% endblock %}

0 comments on commit e6f5480

Please sign in to comment.