aboutsummaryrefslogtreecommitdiff
path: root/qc_app/templates/job_progress.html
blob: 1af07635bd75dd3bcbf91ddd9517e3a1a38e0012 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{%extends "base.html"%}
{%from "errors_display.html" import errors_display%}

{%block extrameta%}
<meta http-equiv="refresh" content="5">
{%endblock%}

{%block title%}Job Status{%endblock%}

{%block contents%}
<h1 class="heading">{{job_name}}</h2>

<div class="row">
  <form action="{{url_for('parse.abort')}}" method="POST">
    <legend class="heading">Status</legend>
    <div class="form-group">
      <label for="job_status" class="form-label">status:</label>
      <span class="form-text">{{job_status}}: {{message}}</span><br />
    </div>

    <div class="form-group">
      <label for="job_{{job_id}}" class="form-label">parsing: </label>
      <progress id="job_{{job_id}}"
                value="{{progress/100}}"
                class="form-control">
        {{progress}}</progress>
      <span class="form-text text-muted">{{"%.2f" | format(progress)}}%</span>
    </div>

    <input type="hidden" name="job_id" value="{{job_id}}" />

    <button type="submit" class="btn btn-danger">Abort</button>
  </form>
</div>

<div class="row">
  {{errors_display(errors, "No errors found so far", "We have found the following errors so far", False)}}
</div>

{%endblock%}