You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
189 lines
5.8 KiB
189 lines
5.8 KiB
6 years ago
|
<!DOCTYPE html>
|
||
6 years ago
|
<html lang="en">
|
||
7 years ago
|
<head>
|
||
|
<script src="{{base_url}}static/jquery/jquery-latest.min.js"></script>
|
||
|
<script src="{{base_url}}static/semantic/semantic.min.js"></script>
|
||
|
<script src="{{base_url}}static/jquery/tablesort.js"></script>
|
||
|
<link rel="stylesheet" href="{{base_url}}static/semantic/semantic.min.css">
|
||
|
|
||
|
<link rel="apple-touch-icon" sizes="120x120" href="{{base_url}}static/apple-touch-icon.png">
|
||
|
<link rel="icon" type="image/png" sizes="32x32" href="{{base_url}}static/favicon-32x32.png">
|
||
|
<link rel="icon" type="image/png" sizes="16x16" href="{{base_url}}static/favicon-16x16.png">
|
||
|
<link rel="manifest" href="{{base_url}}static/manifest.json">
|
||
|
<link rel="mask-icon" href="{{base_url}}static/safari-pinned-tab.svg" color="#5bbad5">
|
||
|
<link rel="shortcut icon" href="{{base_url}}static/favicon.ico">
|
||
|
<meta name="msapplication-config" content="{{base_url}}static/browserconfig.xml">
|
||
|
<meta name="theme-color" content="#ffffff">
|
||
|
|
||
|
<title>Series Editor - Bazarr</title>
|
||
|
|
||
|
<style>
|
||
|
body {
|
||
|
background-color: #272727;
|
||
|
}
|
||
|
#fondblanc {
|
||
|
background-color: #ffffff;
|
||
6 years ago
|
border-radius: 0;
|
||
|
box-shadow: 0 0 5px 5px #ffffff;
|
||
7 years ago
|
margin-top: 32px;
|
||
|
margin-bottom: 3em;
|
||
|
padding: 2em 3em 2em 3em;
|
||
|
}
|
||
|
#tableseries {
|
||
|
padding-top: 1em;
|
||
|
}
|
||
|
#bottommenu {
|
||
|
background-color: #333333;
|
||
|
box-shadow: 0 0 10px 1px #333;
|
||
|
padding: 10px;
|
||
|
}
|
||
7 years ago
|
#bottomform {
|
||
|
width: 100%;
|
||
|
padding-left: 8em;
|
||
|
margin-bottom: -1em !important;
|
||
|
}
|
||
7 years ago
|
</style>
|
||
|
</head>
|
||
|
<body>
|
||
|
<div id='loader' class="ui page dimmer">
|
||
6 years ago
|
<div id="loader_text" class="ui indeterminate text loader">Loading...</div>
|
||
7 years ago
|
</div>
|
||
|
% include('menu.tpl')
|
||
|
|
||
|
<div id="fondblanc" class="ui container">
|
||
|
<table id="tableseries" class="ui very basic selectable sortable table">
|
||
|
<thead>
|
||
|
<tr>
|
||
|
<th class="no-sort collapsing">
|
||
|
<div class="ui checkbox">
|
||
|
<input id='selectall' type="checkbox">
|
||
|
<label></label>
|
||
|
</div>
|
||
|
</th>
|
||
|
<th class="sorted ascending">Name</th>
|
||
5 years ago
|
<th>Audio Language</th>
|
||
|
<th>Subtitles Language(s)</th>
|
||
|
<th>Hearing-Impaired</th>
|
||
6 years ago
|
<th>Forced</th>
|
||
7 years ago
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
%import ast
|
||
|
%import os
|
||
|
%for row in rows:
|
||
|
<tr class="selectable">
|
||
|
<td class="collapsing">
|
||
|
<div class="ui checkbox">
|
||
5 years ago
|
<input id='{{row['sonarrSeriesId']}}' type="checkbox" class="selected">
|
||
7 years ago
|
<label></label>
|
||
|
</div>
|
||
|
</td>
|
||
5 years ago
|
<td><a href="{{base_url}}episodes/{{row['sonarrSeriesId']}}">{{row['title']}}</a></td>
|
||
|
<td>{{row['audio_language']}}</td>
|
||
7 years ago
|
<td>
|
||
5 years ago
|
%subs_languages = ast.literal_eval(str(row['languages']))
|
||
7 years ago
|
%if subs_languages is not None:
|
||
|
%for subs_language in subs_languages:
|
||
|
<div class="ui tiny label">{{subs_language}}</div>
|
||
|
%end
|
||
|
%end
|
||
|
</td>
|
||
5 years ago
|
<td>{{!"" if row['hearing_impaired'] is None else row['hearing_impaired']}}</td>
|
||
|
<td>{{!"" if row['forced'] is None else row['forced']}}</td>
|
||
7 years ago
|
</tr>
|
||
|
%end
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div id='bottommenu' class="ui inverted bottom fixed menu">
|
||
7 years ago
|
<form id='bottomform' action="{{base_url}}edit_serieseditor" method="POST" class="ui form">
|
||
7 years ago
|
<input type="hidden" name="series" id="checked" />
|
||
|
<div class="fields">
|
||
|
<div class="eight wide field">
|
||
5 years ago
|
<label style='color: white;'>Subtitles Language(s)</label>
|
||
6 years ago
|
<select name="languages" {{!'multiple="" ' if single_language is False else ''}}class="select ui disabled selection dropdown">
|
||
5 years ago
|
<option value="">No Change</option>
|
||
7 years ago
|
<option value="None">None</option>
|
||
|
%for language in languages:
|
||
5 years ago
|
<option value="{{language['code2']}}">{{language['name']}}</option>
|
||
7 years ago
|
%end
|
||
|
</select>
|
||
|
</div>
|
||
|
<div class="field">
|
||
5 years ago
|
<label style='color: white;'>Hearing-Impaired</label>
|
||
7 years ago
|
<select name="hearing_impaired" class="select ui disabled selection dropdown">
|
||
5 years ago
|
<option value="">No Change</option>
|
||
7 years ago
|
<option value="True">True</option>
|
||
|
<option value="False">False</option>
|
||
|
</select>
|
||
|
</div>
|
||
6 years ago
|
<div class="field">
|
||
|
<label style='color: white;'>Forced</label>
|
||
|
<select name="forced" class="select ui disabled selection dropdown">
|
||
|
<option value="">No change</option>
|
||
|
<option value="False">False</option>
|
||
|
<option value="True">True</option>
|
||
|
<option value="Both">Both</option>
|
||
|
</select>
|
||
|
</div>
|
||
7 years ago
|
<div class='field'>
|
||
5 years ago
|
<label style='color: white;'><span id='count'>0</span> Series Selected</label>
|
||
7 years ago
|
<button type="submit" id="save" name="save" value="save" class="ui disabled blue approve button">Save</button>
|
||
|
</div>
|
||
|
</div>
|
||
|
</form>
|
||
|
</div>
|
||
|
|
||
|
% include('footer.tpl')
|
||
|
<br><br><br><br>
|
||
|
</body>
|
||
|
</html>
|
||
|
|
||
|
|
||
|
<script>
|
||
|
if (sessionStorage.scrolly) {
|
||
|
$(window).scrollTop(sessionStorage.scrolly);
|
||
|
sessionStorage.clear();
|
||
|
}
|
||
|
|
||
|
$('table').tablesort();
|
||
|
|
||
6 years ago
|
$('a, button').on('click', function(){
|
||
7 years ago
|
$('#loader').addClass('active');
|
||
6 years ago
|
});
|
||
7 years ago
|
|
||
|
$('.modal')
|
||
|
.modal({
|
||
|
autofocus: false
|
||
6 years ago
|
});
|
||
7 years ago
|
|
||
6 years ago
|
$('.selected').on('change', function() {
|
||
7 years ago
|
$("#count").text($('.selected:checked').length);
|
||
|
if ( $('.selected:checked').length > 0 ) {
|
||
|
$('.select').removeClass('disabled');
|
||
|
$('#save').removeClass('disabled');
|
||
|
}
|
||
|
else {
|
||
|
$('.select').addClass('disabled');
|
||
|
$('#save').addClass('disabled');
|
||
|
}
|
||
|
|
||
6 years ago
|
const result = [];
|
||
7 years ago
|
$('.selected:checked').each(function(i){
|
||
|
result.push($(this).attr('id'));
|
||
|
});
|
||
|
$("#checked").val(result);
|
||
|
});
|
||
|
|
||
6 years ago
|
$('#selectall').on('change', function() {
|
||
7 years ago
|
if ( $('#selectall').is(":checked") ) {
|
||
6 years ago
|
$('.selected').prop('checked', true).trigger('change');
|
||
7 years ago
|
}
|
||
|
else {
|
||
6 years ago
|
$('.selected').prop('checked', false).trigger('change');
|
||
7 years ago
|
}
|
||
|
});
|
||
|
|
||
|
$('.select').dropdown();
|
||
5 years ago
|
</script>
|