{% extends "script/script_base.html" %} {% load static %} {% load i18n %} {% load utility_tags %} {% block head %} {{block.super}} {% endblock %} {% block title %}{% blocktrans with name=script.name|unquote_plus run=run.name|unquote_plus %}Edit run {{run}} of script {{name}}{% endblocktrans %}{% endblock %} {% block content %}

{% blocktrans with name=script.name|unquote_plus run=run.name|unquote_plus %}Edit run {{run}} of script {{name}}{% endblocktrans %}

{% if not run.scheduled or run.completed %}
{% csrf_token %}
{% endif %}

{% if run.scheduled %} {% blocktrans with time=run.scheduled %}Scheduled at {{time}}{% endblocktrans %} {% elif run.hosts %}

{% csrf_token %}
{% endif %} {% if run.scheduled %} {% if run.completed %} {% blocktrans with time=run.completed %}Completed at {{time}}{% endblocktrans %} {% else %} {% trans "Not completed yet" %} {% endif %} {% endif %}

{% if not run.scheduled %}
{% csrf_token %} {{form.as_p}}
{% endif %}
{% if not run.scheduled %}

{% trans "Host list" %}

{% for host in run.hosts %} {% empty %} {% endfor %}
{{host.name}}
{% csrf_token %}
{% trans "There are no hosts in this run yet." %}
{% else %}

{% trans "Host list" %}

{% for host in run.hosts %} {% endfor %}
Name Started Ended Result Output
{{host.name}} {{host.started|default:"--"}} {{host.ended|default:"--"}} {% if host.result == 0 %} {% trans "Ok" %} {% else %} {{host.result|default:"--"}} {% endif %} {{host.output}}
{% endif %}
{% endblock %}