diff options
author | Aaron LI <aaronly.me@outlook.com> | 2016-11-01 21:45:21 +0800 |
---|---|---|
committer | Aaron LI <aaronly.me@outlook.com> | 2016-11-01 21:45:21 +0800 |
commit | 0c0272d08d2aa141eb648ccc6d5fc9857a84972f (patch) | |
tree | a9bd2dc5f31a6ce7952fdff1a7fea80d85fa31b8 /fg21sim/webui | |
parent | d090bc576b708068572adc3d9b483f9266c013ac (diff) | |
download | fg21sim-0c0272d08d2aa141eb648ccc6d5fc9857a84972f.tar.bz2 |
webui: Update index template; Add console and results templates
Diffstat (limited to 'fg21sim/webui')
-rw-r--r-- | fg21sim/webui/templates/console.html | 29 | ||||
-rw-r--r-- | fg21sim/webui/templates/index.html | 12 | ||||
-rw-r--r-- | fg21sim/webui/templates/results.html | 12 |
3 files changed, 43 insertions, 10 deletions
diff --git a/fg21sim/webui/templates/console.html b/fg21sim/webui/templates/console.html new file mode 100644 index 0000000..5516242 --- /dev/null +++ b/fg21sim/webui/templates/console.html @@ -0,0 +1,29 @@ +{# + # Copyright (c) 2016 Weitian LI <liweitianux@live.com> + # MIT license + # + # Console part + #} +<section id="console"> + <h2>Console</h2> + <hr /> + + <p class="status"><strong> + Simulation status: + <span id="fg21sim-status" class="label label-default">N/A</span> + </strong></p> + + <p class="button-group"> + <button type="button" id="start-fg21sim"><span class="fa fa-play" aria-hidden="true"></span> Start</button> + <button type="button" class="button button-warning" id="stop-fg21sim" disabled="disabled"><span class="fa fa-stop" aria-hidden="true"></span> Stop</button> + </p> + + <div id="log-messages" class="panel panel-default"> + <div class="panel-heading"> + <span class="panel-title">Logging Messages</span> + </div> + <div class="panel-body"> + <p>messages ...</p> + </div> + </div> +</section> diff --git a/fg21sim/webui/templates/index.html b/fg21sim/webui/templates/index.html index 2d5091e..105c4a0 100644 --- a/fg21sim/webui/templates/index.html +++ b/fg21sim/webui/templates/index.html @@ -21,16 +21,8 @@ {% block main %} {% include "configs.html" %} - - <section id="xxx-results" class="container target"> - <h2 id="results">Results</h2> - <p>Simulation results go here :)</p> - </section> - - <section id="logs" class="container target"> - <h2>Logs</h2> - <p>Logging messages should go here :)</p> - </section> + {% include "console.html" %} + {% include "results.html" %} {% end %} {% block footer %} diff --git a/fg21sim/webui/templates/results.html b/fg21sim/webui/templates/results.html new file mode 100644 index 0000000..4935f28 --- /dev/null +++ b/fg21sim/webui/templates/results.html @@ -0,0 +1,12 @@ +{# + # Copyright (c) 2016 Weitian LI <liweitianux@live.com> + # MIT license + # + # Results part + #} +<section id="results"> + <h2>Results</h2> + <hr /> + + <p>Simulation results go here :)</p> +</section> |