aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/webui/templates
diff options
context:
space:
mode:
authorAaron LI <aaronly.me@outlook.com>2016-11-13 17:18:51 +0800
committerAaron LI <aaronly.me@outlook.com>2016-11-13 17:18:51 +0800
commit013c815abfa4fd0391b79b2653d989588b170e86 (patch)
tree64d3845363fc58255d9845cbd2fd07607fd1b461 /fg21sim/webui/templates
parent81434114e4d03cce101d3a732795afa4835fe7c8 (diff)
downloadfg21sim-013c815abfa4fd0391b79b2653d989588b170e86.tar.bz2
webui: Show a modal box indicating there are invalid configs
Diffstat (limited to 'fg21sim/webui/templates')
-rw-r--r--fg21sim/webui/templates/base.html2
-rw-r--r--fg21sim/webui/templates/console.html4
2 files changed, 6 insertions, 0 deletions
diff --git a/fg21sim/webui/templates/base.html b/fg21sim/webui/templates/base.html
index 35b55dd..c8a4f17 100644
--- a/fg21sim/webui/templates/base.html
+++ b/fg21sim/webui/templates/base.html
@@ -16,6 +16,7 @@
<link rel="stylesheet" href="{{ static_url('css/font-awesome.css') }}" />
<link rel="stylesheet" href="{{ static_url('css/milligram.css') }}" />
<link rel="stylesheet" href="{{ static_url('css/fonts.css') }}" />
+ <link rel="stylesheet" href="{{ static_url('css/jquery.modal.css') }}" />
<link rel="stylesheet" href="{{ static_url('css/main.css') }}" />
{% block extra_css %}{% end %}
{% end %}
@@ -41,6 +42,7 @@
{% block script %}
<script src="{{ static_url('js/jquery-3.1.1.js') }}"></script>
+ <script src="{{ static_url('js/jquery.modal.js') }}"></script>
<script src="{{ static_url('js/main.js') }}"></script>
{% block extra_script %}{% end %}
{% end %}
diff --git a/fg21sim/webui/templates/console.html b/fg21sim/webui/templates/console.html
index ca082cc..54a6744 100644
--- a/fg21sim/webui/templates/console.html
+++ b/fg21sim/webui/templates/console.html
@@ -16,6 +16,10 @@
<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>