1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2024-12-23 16:23:41 +00:00
bazarr/views/wantedmovies.html

60 lines
1.8 KiB
HTML
Raw Normal View History

2020-02-12 17:41:40 +00:00
{% extends '_main.html' %}
2018-05-02 10:25:42 +00:00
2020-02-12 17:41:40 +00:00
{% block title %}Wanted (Movies) - Bazarr{% endblock %}
2020-02-12 17:41:40 +00:00
{% block bcleft %}
2018-05-02 10:25:42 +00:00
2020-02-12 17:41:40 +00:00
{% endblock bcleft %}
2018-05-02 10:25:42 +00:00
2020-02-12 17:41:40 +00:00
{% block bcright %}
2018-05-02 10:25:42 +00:00
2020-02-12 17:41:40 +00:00
{% endblock bcright %}
2018-05-02 10:25:42 +00:00
2020-02-12 17:41:40 +00:00
{% block body %}
<table id="wanted_movies" class="table table-striped" style="width:100%">
<thead>
<tr>
<th>Movies</th>
<th>Missing Subtitle(s)</th>
</tr>
</thead>
</table>
{% endblock body %}
2018-05-02 10:25:42 +00:00
2020-02-12 17:41:40 +00:00
{% block tail %}
<script>
$(document).ready(function () {
var table = $('#wanted_movies').DataTable({
"processing": true,
"serverSide": true,
language: {
zeroRecords: 'No Missing Movies Subtitles',
processing: "Loading Missing Movies Subtitles..."
},
"searching": false,
"ordering": false,
"lengthChange": false,
"responsive": true,
"pageLength": {{ settings.general.page_size }},
"ajax": "{{ url_for('api.wantedmovies') }}",
"columns": [
{"data": null,
"render": function (data) {
return '<a href="' + "{{ url_for( 'movie', no='tempvalue' ) }}".replace("tempvalue", data.radarrId) + '">' + data.title + '</a>';
}
},
{"data": "missing_subtitles"}
]
});
events.on('event', function(event) {
var event_json = JSON.parse(event);
if (event_json.type === 'movie') {
$('#wanted_movies').DataTable().ajax.reload(resetPaging=false);
$('[data-toggle="tooltip"]').tooltip({html: true});
}
});
});
</script>
{% endblock tail %}