diff --git a/ietf/static/css/select2.scss b/ietf/static/css/select2.scss new file mode 100644 index 000000000..14e3785ea --- /dev/null +++ b/ietf/static/css/select2.scss @@ -0,0 +1,5 @@ +@import "~/node_modules/bootstrap/scss/functions"; +@import "~/node_modules/bootstrap/scss/variables"; +@import "~/node_modules/bootstrap/scss/mixins"; +@import "node_modules/select2/src/scss/core"; +@import "node_modules/select2-bootstrap-5-theme/src/include-all"; \ No newline at end of file diff --git a/ietf/static/images/nopictureavailable.jpg b/ietf/static/images/nopictureavailable.jpg deleted file mode 100644 index 0895f9f57..000000000 Binary files a/ietf/static/images/nopictureavailable.jpg and /dev/null differ diff --git a/ietf/static/js/flot.js b/ietf/static/js/flot.js index dc382dfb7..545503c25 100644 --- a/ietf/static/js/flot.js +++ b/ietf/static/js/flot.js @@ -1 +1 @@ -import "~/node_modules/flot"; \ No newline at end of file +import "flot"; \ No newline at end of file diff --git a/ietf/static/js/highcharts-export-data.js b/ietf/static/js/highcharts-export-data.js index 35a37c607..804a40c14 100644 --- a/ietf/static/js/highcharts-export-data.js +++ b/ietf/static/js/highcharts-export-data.js @@ -1 +1 @@ -import "~/node_modules/highcharts/modules/export-data"; \ No newline at end of file +import "highcharts/modules/export-data"; \ No newline at end of file diff --git a/ietf/static/js/highcharts-exporting.js b/ietf/static/js/highcharts-exporting.js index 1cc0d8600..85e069513 100644 --- a/ietf/static/js/highcharts-exporting.js +++ b/ietf/static/js/highcharts-exporting.js @@ -1 +1 @@ -import "~/node_modules/highcharts/modules/exporting"; \ No newline at end of file +import "highcharts/modules/exporting"; \ No newline at end of file diff --git a/ietf/static/js/highcharts-highcharts.js b/ietf/static/js/highcharts-highcharts.js index 160fc45b6..27255bd00 100644 --- a/ietf/static/js/highcharts-highcharts.js +++ b/ietf/static/js/highcharts-highcharts.js @@ -1,3 +1,3 @@ -import * as Highcharts from "~/node_modules/highcharts"; +import * as Highcharts from "highcharts"; window.Highcharts = Highcharts; \ No newline at end of file diff --git a/ietf/static/js/highcharts-highstock.js b/ietf/static/js/highcharts-highstock.js index ff140524f..140b587e0 100644 --- a/ietf/static/js/highcharts-highstock.js +++ b/ietf/static/js/highcharts-highstock.js @@ -1,3 +1,3 @@ -import * as Highcharts from "~/node_modules/highcharts/highstock"; +import * as Highcharts from "highcharts/highstock"; window.Highcharts = Highcharts; \ No newline at end of file diff --git a/ietf/static/js/highcharts-offline-exporting.js b/ietf/static/js/highcharts-offline-exporting.js index f0cd077b6..e38ee045d 100644 --- a/ietf/static/js/highcharts-offline-exporting.js +++ b/ietf/static/js/highcharts-offline-exporting.js @@ -1 +1 @@ -import "~/node_modules/highcharts/modules/offline-exporting"; \ No newline at end of file +import "highcharts/modules/offline-exporting"; \ No newline at end of file diff --git a/ietf/static/js/ietf.js b/ietf/static/js/ietf.js index 8a509fa46..a78cca2a2 100644 --- a/ietf/static/js/ietf.js +++ b/ietf/static/js/ietf.js @@ -123,6 +123,11 @@ $(document) var last_level; var nav; + $("body") + .attr("data-bs-spy", "scroll") + .attr("data-bs-target", "#righthand-nav") + .scrollspy("refresh"); + $("#content") .attr("data-bs-offset", 0) .attr("tabindex", 0) diff --git a/ietf/static/js/liaisons.js b/ietf/static/js/liaisons.js new file mode 100644 index 000000000..a12a4532e --- /dev/null +++ b/ietf/static/js/liaisons.js @@ -0,0 +1,334 @@ +var attachmentWidget = { + button: null, + config: {}, + count: 0, + + readConfig: function () { + var buttonFormGroup = attachmentWidget.button.parents('.form-group'); + var disabledLabel = buttonFormGroup.find('.attachDisabledLabel'); + + if (disabledLabel.length) { + attachmentWidget.config.disabledLabel = disabledLabel.html(); + var required = []; + buttonFormGroup.find('.attachRequiredField') + .each(function (index, field) { + required.push('#' + $(field) + .text()); + }); + attachmentWidget.config.basefields = $(required.join(",")); + } + + attachmentWidget.config.showOn = $('#' + buttonFormGroup.find('.showAttachsOn') + .html()); + attachmentWidget.config.showOnDisplay = attachmentWidget.config.showOn.find('.attachedFiles'); + attachmentWidget.count = attachmentWidget.config.showOnDisplay.find('.initialAttach') + .length; + attachmentWidget.config.showOnEmpty = attachmentWidget.config.showOn.find('.showAttachmentsEmpty') + .html(); + attachmentWidget.config.enabledLabel = buttonFormGroup.find('.attachEnabledLabel') + .html(); + }, + + setState: function () { + var enabled = true; + attachmentWidget.config.fields.each(function () { + if (!$(this) + .val()) { + enabled = false; + return; + } + }); + if (enabled) { + attachmentWidget.button.removeAttr('disabled') + .removeClass('disabledAddAttachment'); + attachmentWidget.button.val(attachmentWidget.config.enabledLabel); + } else { + attachmentWidget.button.attr('disabled', 'disabled') + .addClass('disabledAddAttachment'); + attachmentWidget.button.val(attachmentWidget.config.disabledLabel); + } + }, + + cloneFields: function () { + var html = '
The server could not verify that you are authorized to view this page using - the username and password you provided. You can now:
- ++ The server could not verify that you are authorized to view this page using + the username and password you provided. You can now: +
If you think this is a server error, please contact webtools@ietf.org.
-{% endblock %} ++ If you think this is a server error, please contact + webtools@ietf.org + . +
+{% endblock %} \ No newline at end of file diff --git a/ietf/templates/base.html b/ietf/templates/base.html index ca3b72269..c5a5cf91f 100644 --- a/ietf/templates/base.html +++ b/ietf/templates/base.html @@ -35,8 +35,7 @@ href="{% static 'ietf/images/apple-touch-icon.png' %}"/> -