Skip to content

Commit

Permalink
Adding CPU setup help text in Edit Guest/Template
Browse files Browse the repository at this point in the history
This patch adds help texts in both dialogs to explain
the user the logic being used in the current CPU and
maximum CPU values.

Signed-off-by: Daniel Henrique Barboza <danielhb@linux.vnet.ibm.com>
  • Loading branch information
danielhb authored and alinefm committed Nov 24, 2016
1 parent feb5f88 commit 52e9396
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ui/pages/guest-edit.html.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -192,10 +192,18 @@
<div id="guest-processor">
<label for="vcpus">$_("Current CPU Number")</label>
<input id="vcpus" class="form-control" name="processor" type="number" min="1" />
<p class="help-block">
<i class="fa fa-info-circle"></i>
$_("Current CPU must be equal or lower than the Maximum CPU value. If a topology is set, it must be also be a multiple of the 'threads' value.")
</p>
</div>
<div id="guest-max-processor-panel" class="form-group">
<label for="guest-edit-max-processor-textbox">$_("Max CPU")</label>
<input id="guest-edit-max-processor-textbox" class="form-control" name="max-processor" type="number" min="1" />
<p class="help-block">
<i class="fa fa-info-circle"></i>
$_("If a topology is set, this value will be the product of sockets * times * cores.")
</p>
</div>
</div>
<div class="manual form-group">
Expand Down
8 changes: 8 additions & 0 deletions ui/pages/template-edit.html.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,18 @@
<div id="guest-processor">
<label for="vcpus">$_("Current CPU Number")</label>
<input id="vcpus" class="form-control" name="processor" type="number" min="1" />
<p class="help-block">
<i class="fa fa-info-circle"></i>
$_("Current CPU must be equal or lower than the Maximum CPU value. If a topology is set, it must be also be a multiple of the 'threads' value.")
</p>
</div>
<div id="guest-max-processor-panel" class="form-group">
<label for="guest-edit-max-processor-textbox">$_("Max CPU")</label>
<input id="guest-edit-max-processor-textbox" class="form-control" name="max-processor" type="number" min="1" />
<p class="help-block">
<i class="fa fa-info-circle"></i>
$_("If a topology is set, this value will be the product of sockets * times * cores.")
</p>
</div>
</div>
<div class="manual form-group">
Expand Down

0 comments on commit 52e9396

Please sign in to comment.