{% extends "admin/layout_compact.html" %}
{% load i18n %}
{% load url from future %}
{% import "_forms.html" as form_theme with context %}
{% from "admin/macros.html" import page_title, draw_message_icon %}

{% block title %}{{ page_title(title=target_name,parent=task_name) }}{% endblock %}

{% block header %}<strong>{{ target_name }}</strong>{% endblock %}
      
{% block content %}
          <form class="form-vertical" action="{{ admin_index|url() }}" method="post">
          	<div class="form-container">
          	  <p class="lead">{{ task_name }}...</p>
              <div class="progress progress-striped active">
                <div class="bar" style="width: {{ progress }}%;"></div>
              </div>
          	  <p>{{ message }}</p>
            </div>
            <div class="form-actions">
              <a href="{{ cancel_url }}" class="btn pull-right"><i class="icon-home"></i> {% trans %}Cancel Task{% endtrans %}</a>
            </div>
          </form>
{% endblock %}