Skip to content

Commit cdc3c01

Browse files
Merge pull request #2287 from canonical/WD-33852
feat(WD-33852): add static contact form on /anbox-cloud
2 parents 3fd0dff + 8e5b3d6 commit cdc3c01

File tree

4 files changed

+17
-9
lines changed

4 files changed

+17
-9
lines changed

redirects.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
about-canonical/careers/?: "/careers/all"
22
about/?: "/"
33
academy/faq: "/academy/exam-guide"
4+
anbox-cloud/thank-you: "/anbox-cloud#contact-form-success"
45
careers/all-vacancies/?: "/careers/all"
56
contributors/?: "/legal/contributors"
67
projects/directory/?: "/projects"
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{% extends "base_index.html" %}
2+
3+
{% block page_title %}Contact us{% endblock %}
4+
5+
{% block content %}
6+
{{ load_form("/anbox-cloud", isModal=false) | safe }}
7+
{% endblock %}

templates/anbox-cloud/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,7 @@ <h2 class="p-section--shallow">Run Android in the cloud with Anbox Cloud</h2>
683683
class="p-button--positive">Install now</a>
684684
</td>
685685
<td data-heading="Fully managed deployment">
686-
<a href="/contact-us"
686+
<a href="/anbox-cloud/contact-us"
687687
class="p-button--positive js-invoke-modal"
688688
aria-controls="anbox-cloud-modal">Contact us</a>
689689
</td>

tests/test_views.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,13 @@ def test_events_index_success(self, mock_render_template):
6363
{
6464
"topic_name": "Ubuntu 24.04 Release",
6565
"event_location": "San Francisco",
66-
"event_date": "15/02/2026",
66+
"event_date": "15/02/2027",
6767
"path": "/engage/event-1",
6868
},
6969
{
7070
"topic_name": "Cloud Native Conference",
7171
"event_location": "New York",
72-
"event_date": "20/03/2026",
72+
"event_date": "20/03/2027",
7373
"path": "/engage/event-2",
7474
},
7575
]
@@ -98,9 +98,9 @@ def test_events_index_filters_without_topic_name(
9898
{
9999
"topic_name": "Valid Event",
100100
"event_location": "San Francisco",
101-
"event_date": "15/02/2026",
101+
"event_date": "15/02/2027",
102102
},
103-
{"event_location": "New York", "event_date": "20/03/2026"},
103+
{"event_location": "New York", "event_date": "20/03/2027"},
104104
]
105105

106106
mock_engage_docs.get_index.return_value = (events_data, 2, 2, 2)
@@ -127,12 +127,12 @@ def test_events_index_location_search(
127127
{
128128
"topic_name": "Event 1",
129129
"event_location": "San Francisco",
130-
"event_date": "15/02/2026",
130+
"event_date": "15/02/2027",
131131
},
132132
{
133133
"topic_name": "Event 2",
134134
"event_location": "New York",
135-
"event_date": "20/03/2026",
135+
"event_date": "20/03/2027",
136136
},
137137
]
138138

@@ -164,12 +164,12 @@ def test_events_index_keyword_search(
164164
{
165165
"topic_name": "Ubuntu Release Event",
166166
"event_location": "San Francisco",
167-
"event_date": "15/02/2026",
167+
"event_date": "15/02/2027",
168168
},
169169
{
170170
"topic_name": "Kubernetes Workshop",
171171
"event_location": "New York",
172-
"event_date": "20/03/2026",
172+
"event_date": "20/03/2027",
173173
},
174174
]
175175

0 commit comments

Comments
 (0)