{% extends "layout2.html" %} {% load i18n %} {% load static %} {% block css_include %} {% endblock %} {% block js_include %} {% endblock %} {% block content %} {% csrf_token %} {% translate "Redis log forwarder" %} {# Print form errors correctly #} {% if form.non_field_errors %} Form errors {{ form.non_field_errors|safe }} {% endif %} {# If there is save/configuration errors #} {% if save_error %} Advanced informations Message Configuration error {{ save_error.0 }} {{ save_error.1 }} {% endif %} {% translate "Enable forwarder" %} {{form.enabled}} {{form.enabled.errors|safe}} {% translate "Friendly name" %} {{form.name}} {{form.name.errors|safe}} {% translate "Broker" %} {{form.broker}} {{form.broker.errors|safe}} {% translate "Topic" %} {{form.topic}} {{form.topic.errors|safe}} {% translate "Key" %} {{form.key}} {{form.key.errors|safe}} {% translate "Dynamic key" %} {{form.dynaKey}} {{form.dynaKey.errors|safe}} {% translate "Dynamic topic" %} {{form.dynaTopic}} {{form.dynaTopic.errors|safe}} {% translate "Partition to which data is produced" %} {{form.partitions_useFixed}} {{form.partitions_useFixed.errors|safe}} {% translate "Automatic partitioning" %} {{form.partitions_auto}} {{form.partitions_auto.errors|safe}} {% translate "Kafka parameters" %} {{form.confParam}} {{form.confParam.errors|safe}} {% translate "Kafka topic parameters" %} {{form.topicConfParam}} {{form.topicConfParam.errors|safe}} {% trans "Advanced" %} {{form.queue_size.label}} {{form.queue_size}} {{form.queue_size.errors|safe}} {{form.dequeue_size.label}} {{form.dequeue_size}} {{form.dequeue_size.errors|safe}} {{form.max_workers.label}} {{form.max_workers}} {{form.max_workers.errors|safe}} {{form.queue_timeout_shutdown.label}} {{form.queue_timeout_shutdown}} {{form.queue_timeout_shutdown.errors|safe}} {{form.new_worker_minimum_messages.label}} {{form.new_worker_minimum_messages}} {{form.new_worker_minimum_messages.errors|safe}} {{form.worker_timeout_shutdown.label}} {{form.worker_timeout_shutdown}} {{form.worker_timeout_shutdown.errors|safe}} {{form.enable_retry.label}} {{form.enable_retry}} {{form.enable_retry.errors|safe}} {{form.enable_disk_assist.label}} {{form.enable_disk_assist}} {{form.enable_disk_assist.errors|safe}} {{form.high_watermark.label}} {{form.high_watermark}} {{form.high_watermark.errors|safe}} {{form.low_watermark.label}} {{form.low_watermark}} {{form.low_watermark.errors|safe}} {{form.max_file_size.label}} {{form.max_file_size}} {{form.max_file_size.errors|safe}} {{form.max_disk_space.label}} {{form.max_disk_space}} {{form.max_disk_space.errors|safe}} {{form.spool_directory.label}} {{form.spool_directory}} {{form.spool_directory.errors|safe}} {% endblock %} {% block jquery_code %} if (!String.prototype.endsWith) { String.prototype.endsWith = function(searchString, position) { var subjectString = this.toString(); if (typeof position !== 'number' || !isFinite(position) || Math.floor(position) !== position || position > subjectString.length) { position = subjectString.length; } position -= searchString.length; var lastIndex = subjectString.lastIndexOf(searchString, position); return lastIndex !== -1 && lastIndex === position; }; } $(function() { $('.select2').select2(); /* Switchery mandatory code */ var elems = Array.prototype.slice.call(document.querySelectorAll('.js-switch')); elems.forEach(function(html) { var switchery = new Switchery(html, { 'color': '#FA9834' }); }); $("#id_confParam").tagsinput(); $("#id_topicConfParam").tagsinput(); $('#id_enable_retry').on('change', function(e){ if ($(this).is(':checked')) { $('#tab-queue').show(); } else { $('#tab-queue').hide(); } }).trigger('change'); $('#id_enable_disk_assist').on('change', function(e){ if ($(this).is(':checked')) { $('#tab-disk').show(); } else { $('#tab-disk').hide(); } }).trigger('change'); }); // end of function() {% endblock %}
{{ save_error.0 }}
{{ save_error.1 }}