mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-04-20 01:00:43 -04:00
Remove unused pages with buttons
We had two templates that contained a link styled as an old style button but that weren't being used anywhere (one would actually give a `500` if you tried to visit it). This removes them and the view function for one of them (the other no longer had a view function).
This commit is contained in:
@@ -21,7 +21,7 @@ from app.main.views.sub_navigation_dictionaries import (
|
||||
pricing_nav,
|
||||
using_notify_nav,
|
||||
)
|
||||
from app.utils import get_logo_cdn_domain, user_is_logged_in
|
||||
from app.utils import get_logo_cdn_domain
|
||||
|
||||
|
||||
@main.route('/')
|
||||
@@ -54,12 +54,6 @@ def error(status_code):
|
||||
abort(status_code)
|
||||
|
||||
|
||||
@main.route("/verify-mobile")
|
||||
@user_is_logged_in
|
||||
def verify_mobile():
|
||||
return render_template('views/verify-mobile.html')
|
||||
|
||||
|
||||
@main.route('/cookies')
|
||||
def cookies():
|
||||
return render_template('views/cookies.html')
|
||||
|
||||
@@ -118,7 +118,6 @@ class HeaderNavigation(Navigation):
|
||||
'two_factor_email_sent',
|
||||
'verify',
|
||||
'verify_email',
|
||||
'verify_mobile',
|
||||
},
|
||||
}
|
||||
|
||||
@@ -634,7 +633,6 @@ class MainNavigation(Navigation):
|
||||
'using_notify',
|
||||
'verify',
|
||||
'verify_email',
|
||||
'verify_mobile',
|
||||
'view_job_csv',
|
||||
'view_job_updates',
|
||||
'view_letter_notification_as_preview',
|
||||
@@ -926,7 +924,6 @@ class CaseworkNavigation(Navigation):
|
||||
'using_notify',
|
||||
'verify',
|
||||
'verify_email',
|
||||
'verify_mobile',
|
||||
'view_job_csv',
|
||||
'view_job_updates',
|
||||
'view_letter_notification_as_preview',
|
||||
@@ -1219,7 +1216,6 @@ class OrgNavigation(Navigation):
|
||||
'using_notify',
|
||||
'verify',
|
||||
'verify_email',
|
||||
'verify_mobile',
|
||||
'view_job',
|
||||
'view_job_csv',
|
||||
'view_job_updates',
|
||||
|
||||
@@ -1,29 +0,0 @@
|
||||
{% extends "withoutnav_template.html" %}
|
||||
|
||||
{% block per_page_title %}
|
||||
Check your mobile number
|
||||
{% endblock %}
|
||||
|
||||
{% block maincolumn_content %}
|
||||
|
||||
<!-- this page is just a hack for building out pages - same functionality as text-not-received, but for the register from an invite flow -->
|
||||
|
||||
<div class="grid-row">
|
||||
<div class="column-two-thirds">
|
||||
<h1 class="heading-large">Check your mobile number</h1>
|
||||
|
||||
<p>Check your mobile phone number is correct and then resend the security code.</p>
|
||||
|
||||
<p>
|
||||
<label class="form-label" for="mobile">Mobile phone number</label>
|
||||
<input class="form-control-1-4" id="mobile" type="text" value="08983336666">
|
||||
</p>
|
||||
|
||||
|
||||
<p>
|
||||
<a class="button" href="verify-mobile" role="button">Resend security code</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
@@ -1,27 +0,0 @@
|
||||
{% extends "withoutnav_template.html" %}
|
||||
|
||||
{% block per_page_title %}
|
||||
Confirm your mobile number
|
||||
{% endblock %}
|
||||
|
||||
{% block maincolumn_content %}
|
||||
|
||||
<div class="grid-row">
|
||||
<div class="column-two-thirds">
|
||||
<h1 class="heading-large">Confirm your mobile number</h1>
|
||||
|
||||
<p>We’ve sent you a security code by text message.</p>
|
||||
|
||||
<p>
|
||||
<label class="form-label" for="email">Enter security code<br>
|
||||
<input class="form-control-1-4" id="email" type="text"><br>
|
||||
<span class="font-xsmall"><a href="{{ url_for('.text-not-received-2') }}">I have not received a text</a></span>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<a class="button" href="dashboard" role="button">Continue</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user