In template edit window, the label of disk size contains unit information (GB)
though there is no unit information for memory size. Add it in this patch, and
update API.md for GET /templates/:id of corresponding section.
v1 -> v2:
2a) Updated API.md in corresponding section of memory unit
(Sheldon's comment)
Hongliang Wang (2):
Add Unit (MB) to Memory in Template Edit Window
Update API.md
docs/API.md | 2 +-
ui/pages/template-edit.html.tmpl | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
--
1.8.1.4
Show replies by date
Memory unit is lost and add it.
Signed-off-by: Hongliang Wang <hlwang(a)linux.vnet.ibm.com>
---
ui/pages/template-edit.html.tmpl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ui/pages/template-edit.html.tmpl b/ui/pages/template-edit.html.tmpl
index 8a4f0e4..05a0820 100644
--- a/ui/pages/template-edit.html.tmpl
+++ b/ui/pages/template-edit.html.tmpl
@@ -65,7 +65,7 @@
</div>
<div>
<div class="template-edit-wrapper-label">
- <label
for="template-edit-memory-textbox">$_("Memory")</label>
+ <label
for="template-edit-memory-textbox">$_("Memory (MB)")</label>
</div>
<div class="template-edit-wrapper-controls">
<input id="template-edit-memory-textbox"
name="memory" type="text" />
--
1.8.1.4
Updated API.md of template memory unit MB.
Signed-off-by: Hongliang Wang <hlwang(a)linux.vnet.ibm.com>
---
docs/API.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/docs/API.md b/docs/API.md
index 9217a37..ef5bf14 100644
--- a/docs/API.md
+++ b/docs/API.md
@@ -258,7 +258,7 @@ A interface represents available network interface on VM.
* os_distro: The operating system distribution
* os_version: The version of the operating system distribution
* cpus: The number of CPUs assigned to the VM
- * memory: The amount of memory assigned to the VM
+ * memory: The amount of memory assigned to the VM in the unit of MB
* cdrom: A volume name or URI to an ISO image
* storagepool: URI of the storagepool where template allocates vm storage.
* networks *(optional)*: list of networks will be assigned to the new VM.
--
1.8.1.4
Applied. Thanks.
Regards,
Aline Manera