diff --git a/data/interfaces/default/css/tautulli.css b/data/interfaces/default/css/tautulli.css index dc982489..ca76687d 100644 --- a/data/interfaces/default/css/tautulli.css +++ b/data/interfaces/default/css/tautulli.css @@ -4092,4 +4092,9 @@ a:hover .overlay-refresh-image:hover { } a[data-tab-destination] { cursor: pointer; +} +.modal-config-section { + margin-top: 10px !important; + padding-top: 10px; + border-top: 1px solid #444; } \ No newline at end of file diff --git a/data/interfaces/default/js/script.js b/data/interfaces/default/js/script.js index 1fae01e3..18b8bb30 100644 --- a/data/interfaces/default/js/script.js +++ b/data/interfaces/default/js/script.js @@ -1,5 +1,5 @@ -function initConfigCheckbox(elem, reverse = false) { - var config = $(elem).closest('div').next(); +function initConfigCheckbox(elem, toggleElem = null, reverse = false) { + var config = toggleElem ? $(toggleElem) : $(elem).closest('div').next(); config.css('overflow', 'hidden'); if ($(elem).is(":checked")) { config.toggle(!reverse); @@ -7,7 +7,7 @@ function initConfigCheckbox(elem, reverse = false) { config.toggle(reverse); } $(elem).click(function () { - var config = $(this).closest('div').next(); + var config = toggleElem ? $(toggleElem) : $(this).closest('div').next(); if ($(this).is(":checked")) { config.slideToggleBool(!reverse); } else { diff --git a/data/interfaces/default/newsletter_config.html b/data/interfaces/default/newsletter_config.html index c0bcaf0f..52d54f78 100644 --- a/data/interfaces/default/newsletter_config.html +++ b/data/interfaces/default/newsletter_config.html @@ -20,7 +20,7 @@
@@ -70,7 +70,7 @@

Set the time frame to include in the newsletter. Note: Days uses calendar days (i.e. since midnight).

-
+ -
+ -
+
+
-

Enable to save the newsletter file without sending it to any notification agent.

+

Enable to save the newsletter HTML file without sending it to any notification agent.

-
-
- -

Enable to send the newsletter as an HTML formatted Email. Disable to only send a subject and body message to a different notification agent.

- -
-
- -
-
- -
+
+ +
+
+
-

- Select an existing Email notification agent or enter a new configuration below.
- Note: Make sure HTML support is enabled for the Email notification agent. -

-
-
- -
-
- -
-
-

- Select an existing notification agent where the subject and body text will be sent.
- Note: Self-hosted newsletters must be enabled under Newsletters to include a link to the newsletter. -

+

Optional: Enter the file name to use when saving the newsletter (ending with .html). You may use any of the newsletter text parameters. Leave blank for default.

-
- % for item in newsletter['email_config_options']: - % if item['input_type'] == 'help': -
- -

${item['description'] | n}

-
- % elif item['input_type'] == 'text' or item['input_type'] == 'password': -
- -
-
- -
-
-

${item['description'] | n}

-
- % elif item['input_type'] == 'number': -
- -
-
- -
-
-

${item['description'] | n}

-
- % elif item['input_type'] == 'button': -
- -
-
- -
-
-

${item['description'] | n}

-
- % elif item['input_type'] == 'checkbox' and item['name'] != 'newsletter_email_html_support': + @@ -488,7 +490,7 @@ function validateFilename() { var filename = $('#newsletter_config_filename').val(); if (filename !== '' && !(filename.endsWith('.html'))) { - showMsg(' Failed to save newsletter. Invalid filename.', false, true, 5000, true); + showMsg(' Failed to save newsletter. Invalid file name.', false, true, 5000, true); return false; } else { return true; @@ -532,7 +534,7 @@ var incl_libraries = $incl_libraries[0].selectize; incl_libraries.setValue(${json.dumps(next((c['value'] for c in newsletter['config_options'] if c['name'] == 'newsletter_config_incl_libraries'), [])) | n}); - initConfigCheckbox('#newsletter_config_save_only_checkbox', true); + initConfigCheckbox('#newsletter_config_save_only_checkbox', '#newsletter_agent_options', true); function toggleEmailSelect () { if ($('#newsletter_config_formatted_checkbox').is(':checked')) { diff --git a/data/interfaces/default/notifier_config.html b/data/interfaces/default/notifier_config.html index ea05503c..6cc080a6 100644 --- a/data/interfaces/default/notifier_config.html +++ b/data/interfaces/default/notifier_config.html @@ -123,7 +123,7 @@ % endif % endfor
-
+