{% extends '_base_list.html' %} {% load i18n %} {% load static %} {% block content_left_head %} {% endblock %} {% block table_search %}
to
{% endblock %} {% block table_head %} {% trans 'Name' %} {% trans 'Asset' %} {% trans 'Success' %} {% trans 'Finished' %} {% trans 'Date start' %} {% trans 'Time' %} {% trans 'Action' %} {% endblock %} {% block table_body %} {% for object in task_record_list %} {{ object.name }} {{ object.total_assets|length }} {% if object.is_success %} {% else %} {% endif %} {% if object.is_finished %} {% else %} {% endif %} {{ object.date_start }} {{ object.timedelta }} s {% trans "Repush" %} {% endfor %} {% endblock %} {# comment #} {% block custom_foot_js %} {# function terminateConnection(data) {#} {# function success() {#} {# window.setTimeout(function () {#} {# window.location.reload()#} {# }, 300)#} {# }#} {# var the_url = "{% url 'api-applications:terminate-connection' %}";#} {# APIUpdateAttr({url: the_url, method: 'POST', body: JSON.stringify(data), success: success, success_message: 'Terminate success'});#} {# }#} {# $(document).ready(function() {#} {# $('table').DataTable({#} {# "searching": false,#} {# "paging": false,#} {# "bInfo" : false,#} {# "order": []#} {# });#} {# $('.select2').select2();#} {# $('#date .input-daterange').datepicker({#} {# dateFormat: 'mm/dd/yy',#} {# keyboardNavigation: false,#} {# forceParse: false,#} {# autoclose: true#} {# });#} {# }).on('click', '.btn-term', function () {#} {# var $this = $(this);#} {# var proxy_log_id = $this.attr('value');#} {# var data = {#} {# proxy_log_id: proxy_log_id#} {# };#} {# terminateConnection(data)#} {# }).on('click', '#btn_bulk_update', function () {#} {# var data = [];#} {# $('.cbx-term:checked').each(function () {#} {# data.push({proxy_log_id: $(this).attr('value')})#} {# });#} {# terminateConnection(data)#} {# })#} {# #} {% endblock %}