Update wizard_sonarr.tpl

pull/572/head
Kraken 5 years ago committed by GitHub
parent 9ed30f2015
commit e3cea49158
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,4 +1,4 @@
<div class="ui dividing header">Connection settings</div> <div class="ui dividing header">Connection Settings</div>
<div class="twelve wide column"> <div class="twelve wide column">
<div class="ui grid"> <div class="ui grid">
<div class="middle aligned row"> <div class="middle aligned row">
@ -13,7 +13,7 @@
<div class="seven wide column"> <div class="seven wide column">
<div id="sonarr_validated" class="ui read-only checkbox"> <div id="sonarr_validated" class="ui read-only checkbox">
<input id="sonarr_validated_checkbox" type="checkbox"> <input id="sonarr_validated_checkbox" type="checkbox">
<label id="sonarr_validation_result">Not tested recently</label> <label id="sonarr_validation_result">Not Tested Recently</label>
</div> </div>
</div> </div>
</div> </div>
@ -30,7 +30,7 @@
</div> </div>
<div class="collapsed column"> <div class="collapsed column">
<div class="collapsed center aligned column"> <div class="collapsed center aligned column">
<div class="ui basic icon" data-tooltip="Enable Sonarr integration." data-inverted=""> <div class="ui basic icon" data-tooltip="Enable Sonarr Integration." data-inverted="">
<i class="help circle large icon"></i> <i class="help circle large icon"></i>
</div> </div>
</div> </div>
@ -39,7 +39,7 @@
<div class="sonarr_hide middle aligned row"> <div class="sonarr_hide middle aligned row">
<div class="right aligned four wide column"> <div class="right aligned four wide column">
<label>Hostname or IP address</label> <label>Hostname or IP Address</label>
</div> </div>
<div class="five wide column"> <div class="five wide column">
<div class='field'> <div class='field'>
@ -49,7 +49,7 @@
</div> </div>
</div> </div>
<div class="collapsed center aligned column"> <div class="collapsed center aligned column">
<div class="ui basic icon" data-tooltip="Hostname or IP4 address of Sonarr" data-inverted=""> <div class="ui basic icon" data-tooltip="Hostname or IP4 Address of Sonarr" data-inverted="">
<i class="help circle large icon"></i> <i class="help circle large icon"></i>
</div> </div>
</div> </div>
@ -57,7 +57,7 @@
<div class="sonarr_hide middle aligned row"> <div class="sonarr_hide middle aligned row">
<div class="right aligned four wide column"> <div class="right aligned four wide column">
<label>Listening port</label> <label>Listening Port</label>
</div> </div>
<div class="five wide column"> <div class="five wide column">
<div class='field'> <div class='field'>
@ -67,7 +67,7 @@
</div> </div>
</div> </div>
<div class="collapsed center aligned column"> <div class="collapsed center aligned column">
<div class="ui basic icon" data-tooltip="TCP port of Sonarr" data-inverted=""> <div class="ui basic icon" data-tooltip="TCP Port of Sonarr" data-inverted="">
<i class="help circle large icon"></i> <i class="help circle large icon"></i>
</div> </div>
</div> </div>
@ -91,7 +91,7 @@
<div class="sonarr_hide middle aligned row"> <div class="sonarr_hide middle aligned row">
<div class="right aligned four wide column"> <div class="right aligned four wide column">
<label>SSL enabled</label> <label>SSL Enabled</label>
</div> </div>
<div class="one wide column"> <div class="one wide column">
<div id="sonarr_ssl_div" class="ui toggle checkbox"> <div id="sonarr_ssl_div" class="ui toggle checkbox">
@ -103,7 +103,7 @@
<div class="sonarr_hide middle aligned row"> <div class="sonarr_hide middle aligned row">
<div class="right aligned four wide column"> <div class="right aligned four wide column">
<label>API key</label> <label>API Key</label>
</div> </div>
<div class="five wide column"> <div class="five wide column">
<div class='field'> <div class='field'>
@ -113,7 +113,7 @@
</div> </div>
</div> </div>
<div class="collapsed center aligned column"> <div class="collapsed center aligned column">
<div class="ui basic icon" data-tooltip="API key for Sonarr (32 alphanumeric characters)" data-inverted=""> <div class="ui basic icon" data-tooltip="API Key for Sonarr (32 alphanumeric characters)" data-inverted="">
<i class="help circle large icon"></i> <i class="help circle large icon"></i>
</div> </div>
</div> </div>
@ -121,7 +121,7 @@
<div class="sonarr_hide middle aligned row"> <div class="sonarr_hide middle aligned row">
<div class="right aligned four wide column"> <div class="right aligned four wide column">
<label>Download only monitored</label> <label>Download Only Monitored</label>
</div> </div>
<div class="one wide column"> <div class="one wide column">
<div id="settings_only_monitored_sonarr" class="ui toggle checkbox" data-monitored={{settings.sonarr.getboolean('only_monitored')}}> <div id="settings_only_monitored_sonarr" class="ui toggle checkbox" data-monitored={{settings.sonarr.getboolean('only_monitored')}}>
@ -131,7 +131,7 @@
</div> </div>
<div class="collapsed column"> <div class="collapsed column">
<div class="collapsed center aligned column"> <div class="collapsed center aligned column">
<div class="ui basic icon" data-tooltip="Automatic download of subtitles will happen only for monitored episodes in Sonarr." data-inverted=""> <div class="ui basic icon" data-tooltip="Only Download Subtitles For Monitored Episodes in Sonarr." data-inverted="">
<i class="help circle large icon"></i> <i class="help circle large icon"></i>
</div> </div>
</div> </div>
@ -174,12 +174,12 @@
$.getJSON("{{base_url}}test_url/" + protocol + "/" + encodeURIComponent(sonarr_url), function (data) { $.getJSON("{{base_url}}test_url/" + protocol + "/" + encodeURIComponent(sonarr_url), function (data) {
if (data.status) { if (data.status) {
$('#sonarr_validated').checkbox('check'); $('#sonarr_validated').checkbox('check');
$('#sonarr_validation_result').text('Test successful: Sonarr v' + data.version).css('color', 'green'); $('#sonarr_validation_result').text('Test Successful: Sonarr v' + data.version).css('color', 'green');
$('.form').form('validate form'); $('.form').form('validate form');
$('#loader').removeClass('active'); $('#loader').removeClass('active');
} else { } else {
$('#sonarr_validated').checkbox('uncheck'); $('#sonarr_validated').checkbox('uncheck');
$('#sonarr_validation_result').text('Test failed').css('color', 'red'); $('#sonarr_validation_result').text('Test Failed').css('color', 'red');
$('.form').form('validate form'); $('.form').form('validate form');
$('#loader').removeClass('active'); $('#loader').removeClass('active');
} }
@ -188,17 +188,17 @@
$('.sonarr_config').on('keyup', function() { $('.sonarr_config').on('keyup', function() {
$('#sonarr_validated').checkbox('uncheck'); $('#sonarr_validated').checkbox('uncheck');
$('#sonarr_validation_result').text('You must test your Sonarr connection settings before saving settings.').css('color', 'red'); $('#sonarr_validation_result').text('You Must Test Your Sonarr Connection Settings Before Saving.').css('color', 'red');
$('.form').form('validate form'); $('.form').form('validate form');
$('#loader').removeClass('active'); $('#loader').removeClass('active');
}); });
$('#settings_sonarr_ssl').on('change', function() { $('#settings_sonarr_ssl').on('change', function() {
$('#sonarr_validated').checkbox('uncheck'); $('#sonarr_validated').checkbox('uncheck');
$('#sonarr_validation_result').text('You must test your Sonarr connection settings before saving settings.').css('color', 'red'); $('#sonarr_validation_result').text('You Must Test Your Sonarr Connection Settings Before Saving.').css('color', 'red');
$('.form').form('validate form'); $('.form').form('validate form');
$('#loader').removeClass('active'); $('#loader').removeClass('active');
}); });
$("#sonarr_validated").checkbox('check'); $("#sonarr_validated").checkbox('check');
</script> </script>

Loading…
Cancel
Save