From: samhenri <samuel.guimaraes(a)eldorado.org.br>
Added some new-ui markup to Kimchi. Please note that some pages may stop working since
the new-ui is not finished yet.
Signed-off-by: samhenri <samuel.guimaraes(a)eldorado.org.br>
---
plugins/kimchi/ui/config/tab-ext.xml
| 7 +-
plugins/kimchi/ui/css/theme-default/button.css | 72 +++++++--------
This CSS file is applied for all the buttons in the application, right?
If so it should be into wok instead of kimchi...
All the widgets and style related should be on wok and only reuse in the
plugins.
So unless, Kimchi wants to change the default button style this file
button.css should not exist on kimchi.
Thinking on that direction the CSS should be changed to add 'wok' as CSS
class prefix and moved to wok UI directory.
Same I commented above.
It is related to the grid widget, so should be on wok.
plugins/kimchi/ui/js/src/kimchi.host.js | 2 +
plugins/kimchi/ui/pages/guests.html.tmpl | 6 +-
plugins/kimchi/ui/pages/host.html.tmpl | 33 +++----
plugins/kimchi/ui/pages/network.html.tmpl | 123 +++++++++++++------------
plugins/kimchi/ui/pages/report-add.html.tmpl | 46 ++++-----
plugins/kimchi/ui/pages/storage.html.tmpl | 52 ++++++-----
plugins/kimchi/ui/pages/templates.html.tmpl | 72 ++++++++-------
11 files changed, 211 insertions(+), 215 deletions(-)
diff --git a/plugins/kimchi/ui/config/tab-ext.xml b/plugins/kimchi/ui/config/tab-ext.xml
index ee88c88..e363ebd 100644
--- a/plugins/kimchi/ui/config/tab-ext.xml
+++ b/plugins/kimchi/ui/config/tab-ext.xml
@@ -5,6 +5,7 @@
<access role="user" mode="none"/>
<title>Host</title>
+ <css>host</css>
<path>plugins/kimchi/host.html</path>
</tab>
<tab>
@@ -12,6 +13,7 @@
<access role="user" mode="byInstance"/>
<title>Guests</title>
+ <css>guests</css>
<path>plugins/kimchi/guests.html</path>
</tab>
<tab>
@@ -19,6 +21,7 @@
<access role="user" mode="none"/>
<title>Templates</title>
+ <css>templates</css>
<path>plugins/kimchi/templates.html</path>
</tab>
<tab>
@@ -26,13 +29,15 @@
<access role="user" mode="read-only"/>
<title>Storage</title>
+ <css>storage</css>
<path>plugins/kimchi/storage.html</path>
</tab>
<tab>
<access role="admin" mode="admin"/>
<access role="user" mode="read-only"/>
-
+
<title>Network</title>
+ <css>network</css>
<path>plugins/kimchi/network.html</path>
</tab>
</tabs-ext>
diff --git a/plugins/kimchi/ui/css/theme-default/button.css
b/plugins/kimchi/ui/css/theme-default/button.css
index e774128..9895572 100644
--- a/plugins/kimchi/ui/css/theme-default/button.css
+++ b/plugins/kimchi/ui/css/theme-default/button.css
@@ -17,7 +17,7 @@
*/
/* Generated at
http://colorzilla.com/gradient-editor/ */
-.btn {
+.kimchi.btn {
display: inline-block;
height: 42px;
margin: 3px;
@@ -50,11 +50,11 @@
cursor: pointer;
}
-.btn[disabled] {
+.kimchi.btn[disabled] {
opacity: 0.3;
}
-.btn:not([disabled]):hover {
+.kimchi.btn:not([disabled]):hover {
box-shadow: -2px -2px 2px #dadada, 2px 2px 2px #fff, 3px 3px 3px white
inset, -3px -3px 3px rgba(0, 0, 0, .25) inset;
background: #d5d5d5;
@@ -69,7 +69,7 @@
endColorstr='#eeeeee', GradientType=0);
}
-.btn:not([disabled]):active {
+.kimchi.btn:not([disabled]):active {
box-shadow: -2px -2px 2px #eaeaea, 2px 2px 2px #fff, 3px 3px 3px
rgba(0, 0, 0, .25) inset, -3px -3px 3px white inset;
background: #ffffff;
@@ -84,43 +84,43 @@
endColorstr='#ffffff', GradientType=0);
}
-.btn.loading {
+.kimchi.btn.loading {
box-shadow: none;
cursor: default;
}
-.btn.loading .icon {
+.kimchi.btn.loading .icon {
background: url(../images/theme-default/icon-load.png) center
center no-repeat;
}
-.btn.pause-gray .icon {
+.kimchi.btn.pause-gray .icon {
background: url(../images/theme-default/ac22_pause_grey.png) center
center no-repeat;
}
-.btn.resume-gray .icon {
+.kimchi.btn.resume-gray .icon {
background: url(../images/theme-default/ac24_resume_grey.png) center
center no-repeat;
}
-.btn .text {
+.kimchi.btn .text {
padding: 0 10px;
}
-.btn .icon {
+.kimchi.btn .icon {
display: block;
width: 42px;
height: 42px;
}
-.btn.dropdown {
+.kimchi.btn.dropdown {
text-align: left;
position: relative;
padding-right: 25px;
}
-.btn.dropdown .arrow {
+.kimchi.btn.dropdown .arrow {
position: absolute;
width: 15px;
height: 42px;
@@ -132,12 +132,12 @@
right: 10px;
}
-.btn .input {
+.kimchi.btn .input {
margin-left: 10px;
}
/* Generated at
http://colorzilla.com/gradient-editor/ */
-.btn-tool {
+.kimchi.btn-tool {
display: inline-block;
height: 38px;
margin: 6px 3px;
@@ -169,14 +169,14 @@
cursor: pointer;
}
-.btn-tool:hover {
+.kimchi.btn-tool:hover {
box-shadow: -1px -1px 1px #777, 1px 1px 1px #eee, 2px 2px 2px
rgba(0, 0, 0, .25) inset, -3px -3px 3px
rgba(0, 0, 0, .25) inset;
}
/* Generated at
http://colorzilla.com/gradient-editor/ */
-.btn-tool.left,.btn-tool.right {
+.kimchi.btn-tool.left,.kimchi.btn-tool.right {
-webkit-border-radius: 0;
-moz-border-radius: 0;
border-radius: 0;
@@ -192,12 +192,12 @@
endColorstr='#999999', GradientType=0);
}
-.btn-tool:active,.btn-tool.active {
+.kimchi.btn-tool:active,.kimchi.btn-tool.active {
box-shadow: -1px -1px 1px #777, 1px 1px 1px #eee, 3px 3px 3px
rgba(0, 0, 0, .35) inset;
}
-.btn-tool.left {
+.kimchi.btn-tool.left {
-webkit-border-top-left-radius: 5px;
-moz-border-top-left-radius: 5px;
border-top-left-radius: 5px;
@@ -206,7 +206,7 @@
border-bottom-left-radius: 5px;
}
-.btn-tool.right {
+.kimchi.btn-tool.right {
-webkit-border-top-right-radius: 5px;
-moz-border-top-right-radius: 5px;
border-top-right-radius: 5px;
@@ -215,7 +215,7 @@
border-bottom-right-radius: 5px;
}
-.btn-tool .icon {
+.kimchi.btn-tool .icon {
display: block;
width: 48px;
height: 38px;
@@ -287,7 +287,7 @@
}
/* Generated at
http://colorzilla.com/gradient-editor/ */
-.btn-tool.tree {
+.kimchi.btn-tool.tree {
width: 42px;
margin: 5px 10px;
background: #ffffff;
@@ -304,7 +304,7 @@
inset, -3px -3px 3px rgba(0, 0, 0, .25) inset;
}
-.btn-select {
+.kimchi.btn-select {
display: inline-block;
position: relative;
height: 30px;
@@ -321,7 +321,7 @@
cursor: pointer;
}
-.btn-select .input {
+.kimchi.btn-select .input {
border: 0 solid #CCCCCC;
margin-right: 10px;
font-size: 16px;
@@ -332,10 +332,10 @@
padding: 0 5px;
}
-.btn-select input.invalid-field {
+.kimchi.btn-select input.invalid-field {
border: 1px solid #FF4444;
}
-.btn-select .arrow {
+.kimchi.btn-select .arrow {
position: absolute;
width: 15px;
height: 30px;
@@ -447,7 +447,7 @@
display: none;
}
-.btn-normal {
+.kimchi.btn-normal {
display: inline-block;
height: 38px;
margin: 9px 3px;
@@ -460,25 +460,25 @@
cursor: pointer;
}
-.btn-normal span {
+.kimchi.btn-normal span {
font-family: 'Helvetica Neue', Helvetica, Arial;
font-weight: lighter;
}
-.btn-normal:not([disabled]):hover {
+.kimchi.btn-normal:not([disabled]):hover {
background: #EEEEEE;
}
-.btn-normal:not([disabled]):active {
+.kimchi.btn-normal:not([disabled]):active {
background: #999999;
}
-.btn-normal[disabled] {
+.kimchi.btn-normal[disabled] {
color: #CCCCCC;
cursor: default;
}
-.btn-normal-1 {
+.kimchi.btn-normal-1 {
display: inline-block;
height: 38px;
margin: 9px 3px;
@@ -491,26 +491,26 @@
cursor: pointer;
}
-.btn-normal-1 span {
+.kimchi.btn-normal-1 span {
font-family: 'Helvetica Neue', Helvetica, Arial;
font-weight: lighter;
}
-.btn-normal-1:not([disabled]):active {
+.kimchi.btn-normal-1:not([disabled]):active {
background: #999999;
}
-.btn-normal-1[disabled] {
+.kimchi.btn-normal-1[disabled] {
background: #999999;
cursor: default;
}
-.btn-group {
+.kimchi.btn-group {
float: left;
padding: 0 10px;
}
-.btn-small {
+.kimchi.btn-small {
display: inline-block;
height: 25px;
margin: 6px 3px;
diff --git a/plugins/kimchi/ui/images/logo.ico b/plugins/kimchi/ui/images/logo.ico
index 446143f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s1xD|_k)R-
zrk$Z0-|Gf}&4Au$KhU$k?3YR5by~D9M&-q$=ocNz4!IY&p7%OxuJf&+Ei-G(23hU;
zHTLhMtjFR9ExVbPQVLzBFlROcIZ|#jmX6fm_hsVa3XP<aKAeAt8dqp&oBW=V^+d>Q
zkcNnm%Ds?ggd^Rv2~9_o82cv;p6LSBD_g_s-n1uZ8#<EeLwTm~LE9J!Zdo@M&*jFU
zoM+Z%F5)(8$8y`Wz~%Pd;Nlx@aH{<lk}}CcRMRXZMD&%Uhz3Ze$jpg#uec1IlFMPW
MDQ4iZEk#_;cNAJoqyPW_
diff --git a/plugins/kimchi/ui/js/src/kimchi.grid.js
b/plugins/kimchi/ui/js/src/kimchi.grid.js
index fcd9096..bcd045a 100644
--- a/plugins/kimchi/ui/js/src/kimchi.grid.js
+++ b/plugins/kimchi/ui/js/src/kimchi.grid.js
@@ -398,7 +398,7 @@ kimchi.widget.Grid.prototype = (function() {
var toolbarButtons = this['opts']['toolbarButtons'];
var toolbarNode = null;
if(toolbarButtons) {
- toolbarNode = $('<div
class="grid-toolbar"></div>');
+ toolbarNode = $('<div
class="btn-group"></div>');
if(titleNode) {
titleNode.after(toolbarNode);
}
@@ -407,16 +407,13 @@ kimchi.widget.Grid.prototype = (function() {
}
$.each(toolbarButtons, function(i, button) {
+
var btnHTML = [
- '<button',
+ '<li><a data-toggle="modal"',
button['id'] ? (' id="' +
button['id'] + '"') : '',
- ' class="grid-toolbar-button',
- button['class'] ? (' ' +
button['class']) : '',
- '"',
- button['disabled'] === true ? ' disabled' :
'',
- '>',
+ ' class="', button['class'] ? (' '
+ button['class']) : '', button['disabled'] === true ? '
disabled' : '','">',
button['label'],
- '</button>'
+ '</a></li>'
].join('');
var btnNode = $(btnHTML).appendTo(toolbarNode);
button['onClick'] &&
diff --git a/plugins/kimchi/ui/js/src/kimchi.host.js
b/plugins/kimchi/ui/js/src/kimchi.host.js
index ab02333..0ef7ba8 100644
--- a/plugins/kimchi/ui/js/src/kimchi.host.js
+++ b/plugins/kimchi/ui/js/src/kimchi.host.js
@@ -497,10 +497,12 @@ kimchi.host_main = function() {
});
$('#host-button-shutdown').on('click', function(event) {
+ event.preventDefault();
shutdownHost(null);
});
$('#host-button-restart').on('click', function(event) {
+ event.preventDefault();
shutdownHost({
reboot: true
});
diff --git a/plugins/kimchi/ui/pages/guests.html.tmpl
b/plugins/kimchi/ui/pages/guests.html.tmpl
index b8a1259..75a8f66 100644
--- a/plugins/kimchi/ui/pages/guests.html.tmpl
+++ b/plugins/kimchi/ui/pages/guests.html.tmpl
@@ -35,8 +35,10 @@
<body>
<div id="guests-root-container">
<div class="toolbar">
- <div class="tools" style="display:none">
- <a id="vm-add" class="btn-tool"
href="javascript:void(0);"><span class="icon
add">+</span></a>
+ <div class="container">
+ <div class="tools pull-right"
style="display:none">
+ <a iid="vm-add"
href="javascript:void(0);"><i class="fa
fa-plus-circle"></i><span>Create a Guest</span></a>
+ </div>
</div>
</div>
<div id="guestListField" style="display: none">
diff --git a/plugins/kimchi/ui/pages/host.html.tmpl
b/plugins/kimchi/ui/pages/host.html.tmpl
index d87debc..c639478 100644
--- a/plugins/kimchi/ui/pages/host.html.tmpl
+++ b/plugins/kimchi/ui/pages/host.html.tmpl
@@ -31,7 +31,12 @@
<body>
<div id="host-root-container">
<div class="toolbar">
- <div class="tools">
+ <div class="container">
+ <div class="tools pull-right">
+ <a id="host-button-restart"
href="javascript:void(0);"><i class="fa
fa-refresh"></i><span>$_("Restart")</span></a>
+ <a id="host-button-shutdown"
href="javascript:void(0);"><i class="fa
fa-ban"></i><span>$_("Shut down")</span></a>
+ <!-- <a href="javascript:void(0);"><i
class="fa
fa-desktop"></i><span>$_("Connect")</span></a>
-->
+ </div>
</div>
</div>
<div id="host-content-container"
class="empty-when-logged-off"></div>
@@ -39,25 +44,8 @@
<script id="host-tmpl" type="kimchi/template">
<div class="host-panel">
- <div class="logo-container">
- <div class="logo" style="background-image:
url({logo});"></div>
- </div>
<div id="host-info-container"
class="info-container">
<h2 class="hostname">{hostname}</h2>
- <div class="action-panel">
- <button id="host-button-shutdown" class="btn-normal-1
stop">
- <div class="button-icon
action-icon-stop"></div>
- $_("Shut down")
- </button>
- <button id="host-button-restart" class="btn-normal-1
restart">
- <div class="button-icon
action-icon-restart"></div>
- $_("Restart")
- </button>
- <button class="btn-normal-1 connect"
disabled="disabled">
- <div class="button-icon
action-icon-connect"></div>
- $_("Connect")
- </button>
- </div>
<div class="host-section">
<h3 class="section-header"
aria-expanded="false"
@@ -123,7 +111,7 @@
</div>
</div>
</div>
- <div id="software-update-section" class="host-section
hidden">
+ <div id="software-update-section"
class="host-section">
<h3 class="section-header"
aria-controls="content-software-update">
$_("Software Updates")
@@ -140,7 +128,7 @@
</div>
</div>
</div>
- <div id="repositories-section" class="host-section
hidden">
+ <div id="repositories-section"
class="host-section">
<h3 class="section-header"
aria-controls="content-repositories">
$_("Repositories")
@@ -153,7 +141,7 @@
</div>
</div>
</div>
- <div id="debug-report-section" class="host-section
hidden">
+ <div id="debug-report-section"
class="host-section">
<h3 class="section-header"
aria-controls="content-sys-reports">
$_("Debug Reports")
@@ -169,7 +157,8 @@
</div>
</div>
</script>
-
+<div id="modalWindow" class="modal fade host-modal"
tabindex="-1" role="dialog"
aria-labelledby="hostsModalLabel" aria-hidden="true">
+</div>
<script type="text/javascript">
kimchi.host_main();
</script>
diff --git a/plugins/kimchi/ui/pages/network.html.tmpl
b/plugins/kimchi/ui/pages/network.html.tmpl
index 915feac..59e1552 100644
--- a/plugins/kimchi/ui/pages/network.html.tmpl
+++ b/plugins/kimchi/ui/pages/network.html.tmpl
@@ -29,78 +29,81 @@
<script src="plugins/kimchi/js/kimchi.min.js"></script>
</head>
<body>
-<div class="toolbar">
- <div class="tools" style="display:none">
- <a id="networkAdd" class="btn-tool"
href="javascript:void(0);"><span class="icon
add">+</span></a>
- </div>
-</div>
-<div id="network-content" class="network">
- <div class="grid-control"><input type="text"
class="filter" placeholder="$_("Filter")"></div>
- <div id="networkGrid" class="list">
- <div>
- <span class="column-name">$_("Network
Name")</span><!--
- --><span
class="column-state">$_("State")</span><!--
- --><span class="column-type">$_("Network
Type")</span><!--
- --><span
class="column-interface">$_("Interface")</span><!--
- --><span class="column-space">$_("Address
Space")</span><!--
- --><span
style="display:none">$_("Actions")</span>
+<div id="network-root-container">
+ <div class="toolbar">
+ <div class="container">
+ <div class="tools pull-right"
style="display:none">
+ <a id="networkAdd"
href="javascript:void(0);"><i class="fa
fa-plus-circle"></i><span>Add a Network</span></a>
+ </div>
</div>
- <div id="networkBody"
class="empty-when-logged-off"></div>
</div>
- <div id="networkConfig" class="network-config">
- <div class="section-container">
- <div class="section-header">1. $_("Network
Name")</div>
- <div class="section-content">
- <input type="text" id="networkName" />
- <div class="input-hint">
- <span class="icon-info-circled light-grey c1
help-inline"></span>
- <span class="input-hint-text
help-inline">$_("Name should not contain '/' and
'\"'.")</span>
- </div>
+ <div id="network-content" class="network">
+ <div class="grid-control"><input type="text"
class="filter" placeholder="$_("Filter")"></div>
+ <div id="networkGrid" class="list">
+ <div>
+ <span class="column-name">$_("Network
Name")</span><!--
+ --><span
class="column-state">$_("State")</span><!--
+ --><span class="column-type">$_("Network
Type")</span><!--
+ --><span
class="column-interface">$_("Interface")</span><!--
+ --><span class="column-space">$_("Address
Space")</span><!--
+ --><span
style="display:none">$_("Actions")</span>
</div>
+ <div id="networkBody"
class="empty-when-logged-off"></div>
</div>
- <div class="section-container">
- <div class="section-header">2. $_("Network
Type")</div>
- <div class="section-content">
- <div class="input-container">
- <input type="radio" id="networkTypeIso"
name="networkType" value="isolated" />
- <label for="networkTypeIso">$_("Isolated: no
external network connection")</label>
- </div>
- <div class="input-container">
- <input type="radio" id="networkTypeNat"
name="networkType" value="nat" />
- <label for="networkTypeNat">$_("NAT: outbound
physical network connection only")</label>
+ <div id="networkConfig" class="network-config">
+ <div class="section-container">
+ <div class="section-header">1. $_("Network
Name")</div>
+ <div class="section-content">
+ <input type="text" id="networkName" />
+ <div class="input-hint">
+ <span class="icon-info-circled light-grey c1
help-inline"></span>
+ <span class="input-hint-text
help-inline">$_("Name should not contain '/' and
'\"'.")</span>
+ </div>
</div>
- <div class="input-container">
- <div class="bridged-inline">
- <input type="radio" id="networkTypeBri"
name="networkType" value="bridged" />
+ </div>
+ <div class="section-container">
+ <div class="section-header">2. $_("Network
Type")</div>
+ <div class="section-content">
+ <div class="input-container">
+ <input type="radio" id="networkTypeIso"
name="networkType" value="isolated" />
+ <label for="networkTypeIso">$_("Isolated:
no external network connection")</label>
</div>
- <div class="bridged-inline">
- <label for="networkTypeBri">$_("Bridged:
Virtual machines are connected to physical network directly")</label><br
/>
- <label id="networkBriDisabledLabel"
style="display:none">$_("(No interfaces found)")</label>
+ <div class="input-container">
+ <input type="radio" id="networkTypeNat"
name="networkType" value="nat" />
+ <label for="networkTypeNat">$_("NAT:
outbound physical network connection only")</label>
</div>
- </div>
- <div id="bridgeOptions">
- <div>
- <div class="bridge-option-column">
- <label
for="networkInterface">$_("Destination"): </label>
+ <div class="input-container">
+ <div class="bridged-inline">
+ <input type="radio"
id="networkTypeBri" name="networkType" value="bridged"
/>
+ </div>
+ <div class="bridged-inline">
+ <label
for="networkTypeBri">$_("Bridged: Virtual machines are connected to
physical network directly")</label><br />
+ <label id="networkBriDisabledLabel"
style="display:none">$_("(No interfaces found)")</label>
</div>
- <div class="bridge-option-column">
- <div class="network-type-wrapper-controls">
- <div id ="networkDestinationID">
- <input id="networkDestinationInputId"
name="type" type="hidden"/>
- <span id="networkDestinationLabel"
type="text"></span><span class="arrow"></span>
- <div>
- <ul
id="networkInterface"></ul>
+ </div>
+ <div id="bridgeOptions">
+ <div>
+ <div class="bridge-option-column">
+ <label
for="networkInterface">$_("Destination"): </label>
+ </div>
+ <div class="bridge-option-column">
+ <div
class="network-type-wrapper-controls">
+ <div id ="networkDestinationID">
+ <input
id="networkDestinationInputId" name="type"
type="hidden"/>
+ <span id="networkDestinationLabel"
type="text"></span><span class="arrow"></span>
+ <div>
+ <ul
id="networkInterface"></ul>
+ </div>
</div>
</div>
</div>
</div>
- </div>
- <div>
- <input id="enableVlan" type="checkbox"
value="" />
- <label for="enableVlan"
id="labelEnableVlan">$_("Enable VLAN") </label>
- </div>
- <label for="networkVlanID"
id="labelNetworkVlanID">$_("VLAN ID"): </label>
- <input type="text" id="networkVlanID"
class="network-label"/>
+ <div>
+ <input id="enableVlan"
type="checkbox" value="" />
+ <label for="enableVlan"
id="labelEnableVlan">$_("Enable VLAN") </label>
+ </div>
+ <label for="networkVlanID"
id="labelNetworkVlanID">$_("VLAN ID"): </label>
+ <input type="text" id="networkVlanID"
class="network-label"/>
</div>
</div>
</div>
diff --git a/plugins/kimchi/ui/pages/report-add.html.tmpl
b/plugins/kimchi/ui/pages/report-add.html.tmpl
index 25bf0a9..a1085ed 100644
--- a/plugins/kimchi/ui/pages/report-add.html.tmpl
+++ b/plugins/kimchi/ui/pages/report-add.html.tmpl
@@ -22,35 +22,25 @@
#silent _ = t.gettext
#silent _t = t.gettext
<!DOCTYPE html>
-<div id="report-add-window" class="window">
- <header>
- <h1 class="title h1 grey">$_("Generate a New Debug
Report")</h1>
- </header>
- <div class="content">
- <form id="form-report-add">
- <section class="form-section">
- <h2>
- <label for="report-name-textbox">$_("Report
Name")</label>
- </h2>
- <div class="field">
- <input type="text" class="text"
id="report-name-textbox" name="name" />
- <span class="icon-info-circled light-grey
c1"></span>
- <span class="info-add-debug-report">
- $_("The name used to identify the report. If omitted, a
name will be chosen based on current time. Name can contain: letters, digits, underscore
(\"_\") and hyphen (\"-\").")
- </span>
- </div>
- </section>
- </form>
- </div>
- <footer>
- <div class="btn-group">
- <button id="button-report-add"
class="btn-normal"><span
class="text">$_("Generate")</span></button>
- <button id="button-report-cancel" class="btn-normal
close" type="button">
- <span calss="text">$_("Cancel")</span>
- </button>
+<div class="modal-content">
+ <div class="modal-header">
+ <h4 class="modal-title">$_("Generate a New Debug
Report")</h4>
+ </div>
+ <div class="modal-body">
+ <form id="form-report-add">
+ <label for="report-name-textbox">$_("Report
Name")</label>
+ <div class="form-group">
+ <input type="text" class="form-control"
id="report-name-textbox" name="name" />
+ <p class="help-block"><i class="fa
fa-info-circle"></i> $_("The name used to identify the report. If
omitted, a name will be chosen based on current time. Name can contain: letters, digits,
underscore (\"_\") and hyphen (\"-\").")
+ </p>
</div>
- </footer>
+ </form>
+ </div>
+ <div class="modal-footer">
+ <button type="button" id="button-report-add" class="btn
btn-default">$_("Generate")</button>
+ <button type="button" id="button-report-cancel"
class="btn btn-default"
data-dismiss="modal">$_("Cancel")</button>
+ </div>
</div>
<script>
kimchi.report_add_main();
-</script>
+</script>
\ No newline at end of file
diff --git a/plugins/kimchi/ui/pages/storage.html.tmpl
b/plugins/kimchi/ui/pages/storage.html.tmpl
index 7b51a8b..4a68d1d 100644
--- a/plugins/kimchi/ui/pages/storage.html.tmpl
+++ b/plugins/kimchi/ui/pages/storage.html.tmpl
@@ -28,32 +28,36 @@
<script src="plugins/kimchi/js/kimchi.min.js"></script>
</head>
<body>
-<div class="toolbar">
- <div class="tools" style="display:none">
- <a id="storage-pool-add" class="btn-tool"
href="javascript:void(0);"><span class="icon
add">+</span></a>
+<div id="storage-root-container">
+ <div class="toolbar">
+ <div class="container">
+ <div class="tools pull-right"
style="display:none">
+ <a id="storage-pool-add"
href="javascript:void(0);"><i class="fa
fa-plus-circle"></i><span>Add Storage</span></a>
+ </div>
+ </div>
</div>
-</div>
-<div class='storage'>
-<div class="grid-control"><input type="text"
class="filter" placeholder="$_("Filter")"></div>
-<div id='storageGrid'>
- <div>
- <span class="storage-name">$_("Name")</span>
- <span class="storage-state" >$_("State")</span>
- <span class="storage-type">$_("Type")</span>
- <span
class="storage-capacity">$_("Capacity")</span>
- <span
class="storage-allocate">$_("Allocated")</span>
- <span
class="storage-location">$_("Location")</span>
+ <div class='storage'>
+ <div class="grid-control"><input type="text"
class="filter" placeholder="$_("Filter")"></div>
+ <div id='storageGrid'>
+ <div>
+ <span
class="storage-name">$_("Name")</span>
+ <span class="storage-state"
>$_("State")</span>
+ <span
class="storage-type">$_("Type")</span>
+ <span
class="storage-capacity">$_("Capacity")</span>
+ <span
class="storage-allocate">$_("Allocated")</span>
+ <span
class="storage-location">$_("Location")</span>
+ </div>
+ <div id="storagepoolsList" class="list-storage
empty-when-logged-off"></div>
+ </div>
+ </div>
+ <div id="logicalPoolExtend" title="$_("Device
path")">
+ <p id="loading-info" class="text-help">
+ <img src = "plugins/kimchi/images/theme-default/loading.gif"
/>
+ $_("Looking for available partitions ...")
+ </p>
+ <div class="host-partition">
+ </div>
</div>
- <div id="storagepoolsList" class="list-storage
empty-when-logged-off"></div>
-</div>
-</div>
-<div id="logicalPoolExtend" title="$_("Device
path")">
- <p id="loading-info" class="text-help">
- <img src = "plugins/kimchi/images/theme-default/loading.gif"
/>
- $_("Looking for available partitions ...")
- </p>
- <div class="host-partition">
- </div>
</div>
<script id="storageTmpl" type="html/text">
<div id="{name}" class="storage-li in"
data-name="{name}" data-stat="{state}">
diff --git a/plugins/kimchi/ui/pages/templates.html.tmpl
b/plugins/kimchi/ui/pages/templates.html.tmpl
index af1cf3f..4504669 100644
--- a/plugins/kimchi/ui/pages/templates.html.tmpl
+++ b/plugins/kimchi/ui/pages/templates.html.tmpl
@@ -28,47 +28,51 @@
<script src="plugins/kimchi/js/kimchi.min.js"></script>
</head>
<body>
-<div class="toolbar">
- <div class="tools" style="display:none">
- <a id="template-add" class="btn-tool"
href="javascript:void(0);"><span class="icon
add">+</span></a>
- </div>
-</div>
-<div>
- <div id="noTemplates" class="list-no-result"
style="display: none;">
- $_("No templates found.")
+<div id="templates-root-container">
+ <div class="toolbar">
+ <div class="container">
+ <div class="tools pull-right"
style="display:none">
+ <a id="template-add"
href="javascript:void(0);"><i class="fa
fa-plus-circle"></i><span>Add a Template</span></a>
+ </div>
+ </div>
</div>
+ <div>
+ <div id="noTemplates" class="list-no-result"
style="display: none;">
+ $_("No templates found.")
+ </div>
- <ul id="templateList"
class="empty-when-logged-off"></ul>
+ <ul id="templateList"
class="empty-when-logged-off"></ul>
- <script id="templateTmpl" type="html/text">
+ <script id="templateTmpl" type="html/text">
- <div class="template-box white-box template-border">
- <div class="btn dropdown popable" style="width:
70px">
- <span
class="text">$_("Actions")</span><span
class="arrow"></span>
- <div class="popover actionsheet right-side"
style="width: 250px">
- <a class="button-big template-edit"
data-template='{name}'>$_("Edit")</a>
- <a class="button-big template-clone"
data-template='{name}'>$_("Clone")</a>
- <a class="button-big red template-delete"
data-template='{name}'>$_("Delete")</a>
+ <div class="template-box white-box template-border">
+ <div class="btn dropdown popable" style="width:
70px">
+ <span
class="text">$_("Actions")</span><span
class="arrow"></span>
+ <div class="popover actionsheet right-side"
style="width: 250px">
+ <a class="button-big template-edit"
data-template='{name}'>$_("Edit")</a>
+ <a class="button-big template-clone"
data-template='{name}'>$_("Clone")</a>
+ <a class="button-big red template-delete"
data-template='{name}'>$_("Delete")</a>
+ </div>
</div>
- </div>
- <div class="template-icon template-icon-position">
- <img alt="" src="{icon}">
- <img alt="" src="{location}"
class="template-type-icon-position">
- </div>
- <div class="template-general template-title
template-title-position">
- <h2 class="title"
title="{name}">{name}</h2>
- </div>
- <div class="template-os-position">
- <div class="template-text">$_("OS"):
{os_distro}</div>
- <div class="template-text">$_("Version"):
{os_version}</div>
- </div>
- <div class="template-cpu-position">
- <div class="template-text">$_("CPUs"):
{cpus}</div>
- <div class="template-text">$_("Memory"):
{memory}M</div>
+ <div class="template-icon template-icon-position">
+ <img alt="" src="{icon}">
+ <img alt="" src="{location}"
class="template-type-icon-position">
+ </div>
+ <div class="template-general template-title
template-title-position">
+ <h2 class="title"
title="{name}">{name}</h2>
+ </div>
+ <div class="template-os-position">
+ <div class="template-text">$_("OS"):
{os_distro}</div>
+ <div class="template-text">$_("Version"):
{os_version}</div>
+ </div>
+ <div class="template-cpu-position">
+ <div class="template-text">$_("CPUs"):
{cpus}</div>
+ <div class="template-text">$_("Memory"):
{memory}M</div>
+ </div>
</div>
- </div>
- </script>
+ </script>
+ </div>
</div>
<script>
kimchi.template_main();