Skip to content

Commit 7501900

Browse files
authored
Merge pull request #111 from companieshouse/add-order-certificate-feature-flag
add order certificate feature flag
2 parents b87055e + 560a87d commit 7501900

File tree

2 files changed

+25
-22
lines changed

2 files changed

+25
-22
lines changed

appconfig.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ feature:
9494
psc: <PSC_FEATURE>
9595
company_report: <COMPANY_REPORT_FEATURE>
9696
alphabetical_search: <ALPHABETICAL_SEARCH_FEATURE>
97+
order_certificate: <ORDER_CERTIFICATE_FEATURE>
9798

9899
image_service_start_date: <IMAGE_SERVICE_START_DATE>
99100

templates/company/view_all/view.html.tx

Lines changed: 24 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
% cascade base { title=> $company.company_name ~" - View all (free company information from Companies House)", classes=>"profile" }
1+
% cascade base { title=> $company.company_name ~" - More (free company information from Companies House)", classes=>"profile" }
22

33
% around content -> {
44

@@ -52,26 +52,28 @@
5252
% }
5353
% }
5454

55-
% if $show_orders {
56-
<h2 id="order-a-certificate-header" class="heading-large heading-with-border">
57-
Order a certificate
58-
</h2>
59-
<details class="govuk-details" role="group">
60-
<summary class="govuk-details__summary" role="button" aria-controls="details-content" aria-expanded="true">
61-
<span class="govuk-details__summary-text">
62-
What you can order
63-
</span>
64-
</summary>
65-
<div class="govuk-details__text" id="details-content" aria-hidden="false">
66-
<p>You can:</p>
67-
<ul class="govuk-list govuk-list--bullet">
68-
<li>order a certificate of incorporation</li>
69-
<li>include good standing information</li>
70-
<li>pay by debit or credit card</li>
71-
</ul>
72-
</div>
73-
</details>
74-
<a class="govuk-button secondary-button piwik-event" data-event-id="Order a certificate" href="<% $c.url_for('/orderable/certificates') %>">Order certificate</a>
75-
% }
55+
% if $c.config.feature.order_certificate {
56+
% if $show_orders {
57+
<h2 id="order-a-certificate-header" class="heading-large heading-with-border">
58+
Order a certificate
59+
</h2>
60+
<details class="govuk-details" role="group">
61+
<summary class="govuk-details__summary" role="button" aria-controls="details-content" aria-expanded="true">
62+
<span class="govuk-details__summary-text">
63+
What you can order
64+
</span>
65+
</summary>
66+
<div class="govuk-details__text" id="details-content" aria-hidden="false">
67+
<p>You can:</p>
68+
<ul class="govuk-list govuk-list--bullet">
69+
<li>order a certificate of incorporation</li>
70+
<li>include good standing information</li>
71+
<li>pay by debit or credit card</li>
72+
</ul>
73+
</div>
74+
</details>
75+
<a class="govuk-button secondary-button piwik-event" data-event-id="Order a certificate" href="<% $c.url_for('/orderable/certificates') %>">Order certificate</a>
76+
% }
77+
%}
7678
% }
7779
% }

0 commit comments

Comments
 (0)