summaryrefslogtreecommitdiffstats
path: root/templates/serversetup/ipxe_update.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/serversetup/ipxe_update.html')
-rw-r--r--templates/serversetup/ipxe_update.html20
1 files changed, 20 insertions, 0 deletions
diff --git a/templates/serversetup/ipxe_update.html b/templates/serversetup/ipxe_update.html
new file mode 100644
index 00000000..9c598667
--- /dev/null
+++ b/templates/serversetup/ipxe_update.html
@@ -0,0 +1,20 @@
+<div class="panel panel-default">
+ <div class="panel-heading">{{lang_menuGeneration}}</div>
+ <div class="panel-body">
+ <div data-tm-id="{{taskid}}" data-tm-log="error" data-tm-callback="restartCb">{{lang_menuGeneration}}</div>
+ <div id="genfailed" class="alert alert-danger" style="display:none">
+ {{lang_generationFailed}}
+ </div>
+ </div>
+</div>
+
+<script type="text/javascript">
+ function restartCb(task)
+ {
+ if (!task || !task.statusCode)
+ return;
+ if (task.statusCode === 'TASK_ERROR') {
+ $('#genfailed').show('slow');
+ }
+ }
+</script>