aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/base/report
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2019-07-15 14:22:51 +0100
committerDave Arter <davea@mysociety.org>2019-08-16 12:04:28 +0100
commit48156c475483e6e603bef436abf19f79a2bc277c (patch)
treed78076d23e073d9586719ce2fdb1d4a282703f61 /templates/web/base/report
parentc0c59b1304c8d6dcd8057d8314092f98d20cde59 (diff)
Add type=button to non-submit buttons.
Diffstat (limited to 'templates/web/base/report')
-rw-r--r--templates/web/base/report/_item_expandable.html2
-rw-r--r--templates/web/base/report/form/user.html4
-rw-r--r--templates/web/base/report/new/duplicate_suggestions.html4
-rw-r--r--templates/web/base/report/new/form_user.html2
-rw-r--r--templates/web/base/report/update-form-wrapper.html2
-rw-r--r--templates/web/base/report/update/form_user.html2
6 files changed, 8 insertions, 8 deletions
diff --git a/templates/web/base/report/_item_expandable.html b/templates/web/base/report/_item_expandable.html
index 7723ed54a..ed3ce751c 100644
--- a/templates/web/base/report/_item_expandable.html
+++ b/templates/web/base/report/_item_expandable.html
@@ -47,7 +47,7 @@
</div>
<div class="item-list__item--expandable__actions">
- <button class="btn btn--small js-toggle-expansion" data-more="[% loc('Read more') %]" data-less="[% loc('Read less') %]">[% loc('Read more') %]</button>
+ <button type="button" class="btn btn--small js-toggle-expansion" data-more="[% loc('Read more') %]" data-less="[% loc('Read less') %]">[% loc('Read more') %]</button>
</div>
</li>
diff --git a/templates/web/base/report/form/user.html b/templates/web/base/report/form/user.html
index 5f14d9adc..ca78d93bc 100644
--- a/templates/web/base/report/form/user.html
+++ b/templates/web/base/report/form/user.html
@@ -5,7 +5,7 @@
[% loc('Next:') %] [% loc('Tell us about you') %]
</h2>
[% IF c.user_exists OR NOT c.cobrand.social_auth_enabled %]
- <button class="btn btn--block hidden-nojs js-new-report-user-show">[% loc('Continue') %]</button>
+ <button type="button" class="btn btn--block hidden-nojs js-new-report-user-show">[% loc('Continue') %]</button>
[% ELSE %]
[% IF c.config.FACEBOOK_APP_ID %]
<button name="social_sign_in" id="facebook_sign_in" value="facebook" class="btn btn--block btn--social btn--facebook">
@@ -24,7 +24,7 @@
[% loc('Log in with Twitter') %]
</button>
[% END %]
- <button class="btn btn--block hidden-nojs js-new-report-user-show">[% loc('Log in with email') %]</button>
+ <button type="button" class="btn btn--block hidden-nojs js-new-report-user-show">[% loc('Log in with email') %]</button>
[% END %]
</div>
<!-- /report/form/user.html -->
diff --git a/templates/web/base/report/new/duplicate_suggestions.html b/templates/web/base/report/new/duplicate_suggestions.html
index dd05dc9a4..991c8d5e8 100644
--- a/templates/web/base/report/new/duplicate_suggestions.html
+++ b/templates/web/base/report/new/duplicate_suggestions.html
@@ -3,7 +3,7 @@
version('/js/duplicates.js'),
) -%]
<div id="js-duplicate-reports" class="duplicate-report-suggestions hidden">
- <button class="duplicate-report-suggestions__close js-hide-duplicate-suggestions">[% loc('Close') %]</button>
+ <button type="button" class="duplicate-report-suggestions__close js-hide-duplicate-suggestions">[% loc('Close') %]</button>
<h2 class="form-section-heading">[% loc('Already been reported?') %]</h2>
<div class="form-section-description">
[% IF c.cobrand.is_council %]
@@ -14,7 +14,7 @@
</div>
<ul class="item-list"></ul>
- <button class="btn btn--block js-hide-duplicate-suggestions">[% loc('Continue – report a new problem') %]</button>
+ <button type="button" class="btn btn--block js-hide-duplicate-suggestions">[% loc('Continue – report a new problem') %]</button>
</div>
<div class="js-template-get-updates hidden">
<div id="alerts" class="get-updates js-alert-list">
diff --git a/templates/web/base/report/new/form_user.html b/templates/web/base/report/new/form_user.html
index 2292ed78b..ca4e2e58b 100644
--- a/templates/web/base/report/new/form_user.html
+++ b/templates/web/base/report/new/form_user.html
@@ -10,7 +10,7 @@
<strong class="js-form-section-preview" data-source="#form_title"></strong>
<span class="js-form-section-preview" data-source="#form_detail"></span>
</p>
- <button class="btn btn--block js-new-report-user-hide">[% loc('Edit report details') %]</button>
+ <button type="button" class="btn btn--block js-new-report-user-hide">[% loc('Edit report details') %]</button>
</div>
[% IF c.user_exists %]
diff --git a/templates/web/base/report/update-form-wrapper.html b/templates/web/base/report/update-form-wrapper.html
index 3a75036cc..5347df3c3 100644
--- a/templates/web/base/report/update-form-wrapper.html
+++ b/templates/web/base/report/update-form-wrapper.html
@@ -1,6 +1,6 @@
[% UNLESS c.cobrand.updates_disallowed(problem) %]
[% IF two_column_sidebar %]
- <button class="btn btn--provide-update js-provide-update hidden-nojs">[% loc('Provide an update') %]</button>
+ <button type="button" class="btn btn--provide-update js-provide-update hidden-nojs">[% loc('Provide an update') %]</button>
<div class="hidden-js">
[% END %]
[% INCLUDE 'report/update-form.html' %]
diff --git a/templates/web/base/report/update/form_user.html b/templates/web/base/report/update/form_user.html
index d9a181e26..bfa227293 100644
--- a/templates/web/base/report/update/form_user.html
+++ b/templates/web/base/report/update/form_user.html
@@ -5,7 +5,7 @@
<div class="hidden-nojs form-section-preview">
<h2 class="form-section-heading">[% loc('Your update') %]</h2>
<p class="js-form-section-preview" data-source="#form_update"></p>
- <button class="btn btn--block js-new-report-user-hide">[% loc('Edit your update') %]</button>
+ <button type="button" class="btn btn--block js-new-report-user-hide">[% loc('Edit your update') %]</button>
</div>
[% IF c.user_exists %]