blob: 3bda079147fe6da2d8b6f9a9960fcdc25e4a44e8 [file] [log] [blame]
{% extends base_layout %}
{% comment %}
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
{% endcomment %}
{% block page_content %}
<h1>Sync data</h1>
{% for shipment_url, info in shipment_infos %}
<span id="shipment_info_name">
<strong>{{ info.name }} (Shipment)</strong>
</span>
</br>
<span id="shipment_info_status">
Status:
<strong>
{{ info.status }}
</strong>
</span>&nbsp;&nbsp;&nbsp;&nbsp;
<span id="shipment_info_last_sync_time">
Last sync at:
<strong>
{% if info.last_sync_time %}
{{ info.last_sync_time|date:"jS F Y H:i:s"}}
{% else %}
N/A
{% endif %}
</strong>
</span>
<form method="POST" action="{{ shipment_url }}">
{% ifnotequal info.status "syncing" %}
<input type="submit" id="id_button_start_sync" class="button"
value="Start Sync" name="sync"/>
{% endifnotequal %}
</form>
</br>
{% endfor %}
{% endblock page_content %}