aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/webui/templates/console.html
blob: 1a682f9d5edf9e3872517e065d9659c9f44c01b4 (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
41
42
43
44
45
46
47
48
49
50
51
{#
 # Copyright (c) 2016 Weitian LI <liweitianux@live.com>
 # MIT license
 #
 # Console part
 #}
<section id="console">
  <h2><span class="fa fa-gamepad" aria-hidden="true"></span> Console</h2>
  <hr />

  <p class="status"><strong>
    <span class="fa fa-dashboard" aria-hidden="true"></span>
    Simulation status:
    <span id="task-status" class="label label-default">
      <span class="icon fa fa-coffee" aria-hidden="true"></span>
      <span class="text">Not started</span>
    </span>
  </strong></p>
  <div id="console-invalid-configs" class="modal" style="display: none;">
    <p>There exist some <strong>invalid</strong> configuration values!</p>
    <p>Please correct the configurations before starting the simulations</p>
  </div>

  <p class="button-group">
    <button type="button" id="task-start"><span class="fa fa-play" aria-hidden="true"></span> Start</button>
    <!-- TODO/FIXME: how to kill a running thread/process?
    <button type="button" class="button button-warning" id="task-stop" disabled="disabled"><span class="fa fa-stop" aria-hidden="true"></span> Stop</button>
       -->
  </p>

  <div class="panel panel-default">
    <div class="panel-heading">
      <span class="panel-title">
        <span class="icon fa fa-comments" aria-hidden="true"></span>
        <span class="text">Logging Messages</span>
        <span class="toggle fa fa-chevron-circle-up" title="Collapse contents"></span>
      </span>
      <span class="panel-control">
        <span id="log-toggle-debug" title="Toggle display of DEBUG messages" class="btn fa fa-comment" aria-hidden="true"></span>
        <span id="log-toggle-info" title="Toggle display of INFO messages" class="btn fa fa-info-circle" aria-hidden="true"></span>
        <span id="log-toggle-warning" title="Toggle display of WARNING messages" class="btn fa fa-warning" aria-hidden="true"></span>
        <span id="log-toggle-error" title="Toggle display of ERROR messages" class="btn fa fa-times-circle" aria-hidden="true"></span>
        <span id="log-delete" title="Delete all messages" class="btn fa fa-trash" aria-hidden="true"></span>
      </span>
    </div>
    <div id="log-messages" class="panel-body">
    </div>
  </div>

  <div id="modal-console" class="modal" style="display: none;"></div>
</section>