mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-08 08:28:15 -04:00
Fixed casing for modules, removed unused page
This commit is contained in:
@@ -220,6 +220,6 @@
|
|||||||
this.summary.bindEvents(this);
|
this.summary.bindEvents(this);
|
||||||
};
|
};
|
||||||
|
|
||||||
NotifyModules.CollapsibleCheckboxes = CollapsibleCheckboxes;
|
NotifyModules['collapsible-checkboxes'] = CollapsibleCheckboxes;
|
||||||
|
|
||||||
}(window));
|
}(window));
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
if (!document.queryCommandSupported('copy')) return;
|
if (!document.queryCommandSupported('copy')) return;
|
||||||
|
|
||||||
Modules.CopyToClipboard = function() {
|
Modules['copy-to-clipboard'] = function() {
|
||||||
|
|
||||||
const states = {
|
const states = {
|
||||||
'valueVisible': (options) => `
|
'valueVisible': (options) => `
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
const tagPattern = /\(\(([^\)\((\?)]+)(\?\?)?([^\)\(]*)\)\)/g;
|
const tagPattern = /\(\(([^\)\((\?)]+)(\?\?)?([^\)\(]*)\)\)/g;
|
||||||
|
|
||||||
window.NotifyModules.EnhancedTextbox = function() {
|
window.NotifyModules['enhanced-textbox'] = function() {
|
||||||
|
|
||||||
this.start = function(textarea) {
|
this.start = function(textarea) {
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
(function(window) {
|
(function(window) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
window.NotifyModules.TrackError = function() {
|
window.NotifyModules['track-error'] = function() {
|
||||||
|
|
||||||
this.start = function(component) {
|
this.start = function(component) {
|
||||||
|
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ function initUploadStatusAnnouncer() {
|
|||||||
(function(Modules) {
|
(function(Modules) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
Modules.FileUpload = function() {
|
Modules['file-upload'] = function() {
|
||||||
this.submit = () => this.$form.trigger('submit');
|
this.submit = () => this.$form.trigger('submit');
|
||||||
|
|
||||||
this.showCancelButton = () => {
|
this.showCancelButton = () => {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
(function(Modules) {
|
(function(Modules) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
Modules.FullscreenTable = function() {
|
Modules['fullscreen-table'] = function() {
|
||||||
|
|
||||||
this.start = function(component) {
|
this.start = function(component) {
|
||||||
|
|
||||||
|
|||||||
@@ -216,7 +216,7 @@
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
Modules.ListEntry = function () {
|
Modules['list-entry'] = function () {
|
||||||
|
|
||||||
this.start = component => lists.push(new ListEntry($(component)));
|
this.start = component => lists.push(new ListEntry($(component)));
|
||||||
|
|
||||||
|
|||||||
@@ -70,7 +70,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
Modules.LiveSearch = function() {
|
Modules['live-search'] = function() {
|
||||||
|
|
||||||
this.start = function(component) {
|
this.start = function(component) {
|
||||||
|
|
||||||
|
|||||||
@@ -79,7 +79,7 @@
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
Modules.RadioSelect = function() {
|
Modules['radio-select'] = function() {
|
||||||
|
|
||||||
this.start = function(component) {
|
this.start = function(component) {
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
global.NotifyModules.RadioSlider = function() {
|
global.NotifyModules['radio-slider'] = function() {
|
||||||
|
|
||||||
this.start = function(component) {
|
this.start = function(component) {
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
(function(Modules) {
|
(function(Modules) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
Modules.TemplateFolderForm = function() {
|
Modules['template-folder-form'] = function() {
|
||||||
|
|
||||||
this.start = function(templateFolderForm) {
|
this.start = function(templateFolderForm) {
|
||||||
this.$form = $(templateFolderForm);
|
this.$form = $(templateFolderForm);
|
||||||
|
|||||||
@@ -106,7 +106,7 @@
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
global.NotifyModules.UpdateContent = function() {
|
global.NotifyModules['update-content'] = function() {
|
||||||
|
|
||||||
this.start = component => {
|
this.start = component => {
|
||||||
var $component = $(component);
|
var $component = $(component);
|
||||||
@@ -144,6 +144,6 @@
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
global.NotifyModules.UpdateContent.calculateBackoff = calculateBackoff;
|
global.NotifyModules['update-content'].calculateBackoff = calculateBackoff;
|
||||||
|
|
||||||
})(window);
|
})(window);
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
(function(window) {
|
(function(window) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
window.NotifyModules.UpdateStatus = function() {
|
window.NotifyModules['update-status'] = function() {
|
||||||
|
|
||||||
const getRenderer = $component => response => $component.html(
|
const getRenderer = $component => response => $component.html(
|
||||||
response.html
|
response.html
|
||||||
|
|||||||
@@ -35,18 +35,3 @@ def how_to_pay():
|
|||||||
"views/pricing/how-to-pay.html",
|
"views/pricing/how-to-pay.html",
|
||||||
navigation_links=using_notify_nav(),
|
navigation_links=using_notify_nav(),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@main.route("/pricing/billing-details")
|
|
||||||
@user_is_logged_in
|
|
||||||
def billing_details():
|
|
||||||
if current_user.is_authenticated:
|
|
||||||
return render_template(
|
|
||||||
"views/pricing/billing-details.html",
|
|
||||||
billing_details=current_app.config["NOTIFY_BILLING_DETAILS"],
|
|
||||||
navigation_links=using_notify_nav(),
|
|
||||||
)
|
|
||||||
return render_template(
|
|
||||||
"views/pricing/billing-details-signed-out.html",
|
|
||||||
navigation_links=using_notify_nav(),
|
|
||||||
)
|
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ Error
|
|||||||
<div class="usa-alert usa-alert--error" role="alert">
|
<div class="usa-alert usa-alert--error" role="alert">
|
||||||
<div class="usa-alert__body">
|
<div class="usa-alert__body">
|
||||||
<h1 class="usa-alert__heading banner-title" data-module="track-error" data-error-type="Missing recipient columns"
|
<h1 class="usa-alert__heading banner-title" data-module="track-error" data-error-type="Missing recipient columns"
|
||||||
data-error-label="{{ upload_id }}">There’s a problem with your column names</h1>
|
data-error-label="{{ upload_id }}">There's a problem with your column names</h1>
|
||||||
<p class="usa-alert-text">
|
<p class="usa-alert-text">
|
||||||
Your file needs a column called ‘{{ first_recipient_column }}’.
|
Your file needs a column called ‘{{ first_recipient_column }}’.
|
||||||
</p>
|
</p>
|
||||||
@@ -85,7 +85,7 @@ Error
|
|||||||
<div class="usa-alert usa-alert--error" role="alert">
|
<div class="usa-alert usa-alert--error" role="alert">
|
||||||
<div class="usa-alert__body">
|
<div class="usa-alert__body">
|
||||||
<h1 class="usa-alert__heading banner-title" data-module="track-error" data-error-type="Duplicate recipient columns"
|
<h1 class="usa-alert__heading banner-title" data-module="track-error" data-error-type="Duplicate recipient columns"
|
||||||
data-error-label="{{ upload_id }}">There’s a problem with your column names</h1>
|
data-error-label="{{ upload_id }}">There's a problem with your column names</h1>
|
||||||
<p class="usa-alert__text">
|
<p class="usa-alert__text">
|
||||||
We found more than one column called {{ (
|
We found more than one column called {{ (
|
||||||
recipients.duplicate_recipient_column_headers
|
recipients.duplicate_recipient_column_headers
|
||||||
|
|||||||
@@ -1,26 +0,0 @@
|
|||||||
{% extends "base.html" %}
|
|
||||||
{% from "components/page-header.html" import page_header %}
|
|
||||||
|
|
||||||
{% block per_page_title %}
|
|
||||||
Billing details
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
{% block content_column_content %}
|
|
||||||
|
|
||||||
{{ page_header('Billing details') }}
|
|
||||||
|
|
||||||
<p>
|
|
||||||
<a class="usa-link" href="{{ url_for('.sign_in', next=url_for('.billing_details')) }}">Sign in</a> to see our:
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<ul class="usa-list usa-list--bullet">
|
|
||||||
<li>supplier details</li>
|
|
||||||
<li>bank details</li>
|
|
||||||
<li>invoice address</li>
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
<p>
|
|
||||||
You can use this information to add the Cabinet Office as a supplier. Your organization may need to do this before you can raise a purchase order.
|
|
||||||
</p>
|
|
||||||
|
|
||||||
{% endblock %}
|
|
||||||
@@ -1,138 +0,0 @@
|
|||||||
{% extends "base.html" %}
|
|
||||||
{% from "components/page-header.html" import page_header %}
|
|
||||||
|
|
||||||
{% from "components/copy-to-clipboard.html" import copy_to_clipboard %}
|
|
||||||
|
|
||||||
{% block per_page_title %}
|
|
||||||
Billing details
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
{% block content_column_content %}
|
|
||||||
|
|
||||||
{{ page_header('Billing details') }}
|
|
||||||
|
|
||||||
<p>
|
|
||||||
You can use the information on this page to add the Cabinet Office as a supplier. Your organization may need to do this before you can raise a purchase order (PO).
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<p>
|
|
||||||
<a class="usa-link" href="{{ url_for('main.support') }}">Contact us</a> if you need any other details.
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<h2 class="heading-medium" id="supplier-details">
|
|
||||||
Supplier details
|
|
||||||
</h2>
|
|
||||||
|
|
||||||
<p>
|
|
||||||
Cabinet Office
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<p>
|
|
||||||
The White Chapel Building <br>
|
|
||||||
10 Whitechapel High Street <br>
|
|
||||||
London <br>
|
|
||||||
E1 8QS
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<h3 class="font-body-lg" id="email-addresses">
|
|
||||||
Email addresses
|
|
||||||
</h3>
|
|
||||||
|
|
||||||
<ul class="usa-list usa-list--bullet">
|
|
||||||
{% for email in billing_details['notify_billing_email_addresses'] %}
|
|
||||||
<li>
|
|
||||||
{{ email }}
|
|
||||||
</li>
|
|
||||||
{% endfor %}
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
<h3 class="font-body-lg" id="vat-number">
|
|
||||||
<abbr title="Value Added Tax">VAT</abbr> number
|
|
||||||
</h3>
|
|
||||||
|
|
||||||
<div>
|
|
||||||
{{ copy_to_clipboard(
|
|
||||||
'GB 88 88 010 80',
|
|
||||||
thing='<abbr title="Value Added Tax">VAT</abbr> number',
|
|
||||||
) }}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<h2 class="heading-medium" id="bank-details">
|
|
||||||
Bank details
|
|
||||||
</h2>
|
|
||||||
|
|
||||||
<p>
|
|
||||||
National Westminster Bank PLC (part of RBS group) <br>
|
|
||||||
Government Banking Services Branch <br>
|
|
||||||
2nd Floor <br>
|
|
||||||
280 Bishopsgate <br>
|
|
||||||
London <br>
|
|
||||||
EC2M 4RB
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<h3 class="font-body-lg" id="account-name">
|
|
||||||
Account name
|
|
||||||
</h3>
|
|
||||||
|
|
||||||
<p>
|
|
||||||
Cabinet Office
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<h3 class="font-body-lg" id="account-number">
|
|
||||||
Account number
|
|
||||||
</h3>
|
|
||||||
|
|
||||||
<div>
|
|
||||||
{{ copy_to_clipboard(
|
|
||||||
billing_details['account_number'],
|
|
||||||
thing='account number',
|
|
||||||
) }}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<h3 class="font-body-lg" id="sort-code">
|
|
||||||
Sort code
|
|
||||||
</h3>
|
|
||||||
|
|
||||||
<div>
|
|
||||||
{{ copy_to_clipboard(
|
|
||||||
billing_details['sort_code'],
|
|
||||||
thing='sort code',
|
|
||||||
) }}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<h3 class="font-body-lg" id="iban">
|
|
||||||
<abbr title="International Bank Account Number">IBAN</abbr>
|
|
||||||
</h3>
|
|
||||||
<div>
|
|
||||||
{{ copy_to_clipboard(
|
|
||||||
billing_details['IBAN'],
|
|
||||||
thing='IBAN',
|
|
||||||
) }}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<h3 class="font-body-lg" id="swift-code">
|
|
||||||
Swift code
|
|
||||||
</h3>
|
|
||||||
|
|
||||||
<div>
|
|
||||||
{{ copy_to_clipboard(
|
|
||||||
billing_details['swift'],
|
|
||||||
thing='Swift code',
|
|
||||||
) }}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<h2 class="heading-medium" id="invoice-address">
|
|
||||||
Invoice address
|
|
||||||
</h2>
|
|
||||||
|
|
||||||
<p>
|
|
||||||
SSCL – Accounts Receivable <br>
|
|
||||||
PO Box 221 <br>
|
|
||||||
Thornton-Cleveleys <br>
|
|
||||||
Blackpool <br>
|
|
||||||
Lancashire <br>
|
|
||||||
FY1 9JN
|
|
||||||
</p>
|
|
||||||
|
|
||||||
{% endblock %}
|
|
||||||
Reference in New Issue
Block a user