diff options
author | Simon Rettberg | 2018-09-26 14:50:32 +0200 |
---|---|---|
committer | Simon Rettberg | 2018-09-26 14:50:32 +0200 |
commit | 84e147f238286c1dff78b5f9b5488167293f6d35 (patch) | |
tree | 6943213877947e644b181296dfedad7af2e96afd /modules-available/serversetup-bwlp/templates | |
parent | [serversetup-bwlp] Detect wether we run our modified iPXE (diff) | |
download | slx-admin-84e147f238286c1dff78b5f9b5488167293f6d35.tar.gz slx-admin-84e147f238286c1dff78b5f9b5488167293f6d35.tar.xz slx-admin-84e147f238286c1dff78b5f9b5488167293f6d35.zip |
[serversetup-bwlp] Don't allow recompilation if already in progress
Diffstat (limited to 'modules-available/serversetup-bwlp/templates')
-rw-r--r-- | modules-available/serversetup-bwlp/templates/ipaddress.html | 4 | ||||
-rw-r--r-- | modules-available/serversetup-bwlp/templates/ipxe_update.html | 5 |
2 files changed, 6 insertions, 3 deletions
diff --git a/modules-available/serversetup-bwlp/templates/ipaddress.html b/modules-available/serversetup-bwlp/templates/ipaddress.html index ef8cc914..ea19c417 100644 --- a/modules-available/serversetup-bwlp/templates/ipaddress.html +++ b/modules-available/serversetup-bwlp/templates/ipaddress.html @@ -20,7 +20,7 @@ {{/default}} {{^default}} <td> - <button class="btn btn-primary btn-xs" name="ip" value="{{ip}}"> + <button class="btn btn-primary btn-xs" name="ip" value="{{ip}}" {{disabled}}> <span class="glyphicon glyphicon-flag"></span> {{lang_set}} </button> @@ -35,7 +35,7 @@ </form> <form method="post" action="?do=ServerSetup"> <input type="hidden" name="token" value="{{token}}"> - <button class="btn btn-default" name="action" value="compile"> + <button class="btn btn-default" name="action" value="compile" {{disabled}}> <span class="glyphicon glyphicon-refresh"></span> {{lang_forceRecompile}} </button> diff --git a/modules-available/serversetup-bwlp/templates/ipxe_update.html b/modules-available/serversetup-bwlp/templates/ipxe_update.html index c5aafa1c..71611085 100644 --- a/modules-available/serversetup-bwlp/templates/ipxe_update.html +++ b/modules-available/serversetup-bwlp/templates/ipxe_update.html @@ -14,7 +14,7 @@ {{lang_generationFailed}} </div> </div> - <div data-tm-id="{{taskid}}" data-tm-log="log" data-tm-log-height="31em" data-tm-callback="ipxeGenCb">{{lang_menuGeneration}}</div> + <div id="tm-compile-div" data-tm-id="{{taskid}}" data-tm-log="log" data-tm-log-height="36em" data-tm-callback="ipxeGenCb">{{lang_menuGeneration}}</div> </div> </div> @@ -27,6 +27,9 @@ if (task.data.pxeDone) $('#built-pxe').removeClass('invisible'); if (task.data.usbDone) $('#built-usb').removeClass('invisible'); } + if (task.statusCode === 'TASK_ERROR' || task.statusCode === 'TASK_FINISHED') { + $('#tm-compile-div').find('pre').hide(); + } if (task.statusCode === 'TASK_ERROR') { var $gf = $('#genfailed'); if (task.data && task.data.errors) { |