aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/webui/templates/console.html
blob: c8cb698b6c6053697f9a7c2b506f33ce0da82ed6 (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
{#
 # Copyright (c) 2016 Weitian LI <liweitianux@live.com>
 # MIT license
 #
 # Console part
 #}
<section id="console">
  <h2 class="heading">
    <span class="icon fa fa-gamepad" aria-hidden="true"></span>
    <span class="text">Console</span>
    <span class="toggle fa fa-chevron-circle-up" title="Collapse contents"></span>
  </h2>
  <div class="body">
    <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>

    <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>  <!-- panel -->
  </div>  <!-- body -->
</section>