{% extends "base.html" %} {% block title %} » DC Contracts » {{dc_contract.name}} {% endblock %} {% block nav %} DC Contracts » {{dc_contract.name}} » Edit {% endblock %} {% block content %} {% if request.method == 'GET' and request.values.view == 'confirm_delete' %}

Are you sure you want to delete this contract?

{% else %}

Update Contract

{{input_text('name', dc_contract.name)}}
Charge script
{{input_textarea( 'charge_script', dc_contract.charge_script, 40, 80)}}

Properties
{{ input_textarea( 'properties', dc_contract.properties, 40, 80) }}

Example

For the SFTP protocol:

{
  "enabled": true,
	"protocol": "sftp",
	"file_type": ".df2",
	"hostname": "example.com",
	"username": "username",
	"password": "password",
	"directories": ["downloads1", "downloads2"]}
									

For the HTTPS protocol:

										{% raw %}
{
  "enabled": true,
  "protocol": "https",
  "download_days": 8,
  "result_data_key": "Data",
  "url_template": "https://data.example.com/?from={{chunk_start.strftime('%d/%m/%Y')}}&to={{chunk_finish.strftime('%d/%m/%Y')}}",
  "url_values": {
    "99 4298 4729 917": {
      "name1": val1,
      "name2": val2,
  	}
	}
}

										{% endraw %}
									

Update State


{{input_textarea('state', dc_contract.state, 40, 80)}}

Delete This Contract

Ignore all snags before

{{ input_date('ignore', initial_date) }}
{% endif %} {% endblock %}