From fef6cedab0a33554fdaaa49fcd473d20c3508240 Mon Sep 17 00:00:00 2001 From: Daniel Molina Date: Thu, 9 Jul 2015 18:19:43 +0200 Subject: [PATCH] Fix tips performance in template form panel --- .../create/wizard-tabs/context/html.hbs | 26 +-- .../general/capacity-inputs/html.hbs | 18 +-- .../create/wizard-tabs/general/html.hbs | 16 +- .../form-panels/create/wizard-tabs/hybrid.js | 8 +- .../create/wizard-tabs/io/html.hbs | 16 +- .../create/wizard-tabs/network/html.hbs | 4 +- .../wizard-tabs/network/nic-tab/html.hbs | 56 +++---- .../create/wizard-tabs/os/html.hbs | 48 +++--- .../create/wizard-tabs/other/html.hbs | 6 +- .../create/wizard-tabs/scheduling/html.hbs | 30 ++-- .../wizard-tabs/storage/disk-tab/html.hbs | 152 ++++-------------- .../public/app/templates/helpers/tip.js | 12 ++ src/sunstone/public/app/utils/tips.js | 13 +- 13 files changed, 131 insertions(+), 274 deletions(-) create mode 100644 src/sunstone/public/app/templates/helpers/tip.js diff --git a/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/context/html.hbs b/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/context/html.hbs index aa39dbc5f9..58d6ef048e 100644 --- a/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/context/html.hbs +++ b/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/context/html.hbs @@ -19,9 +19,7 @@ @@ -37,9 +35,7 @@ @@ -48,9 +44,7 @@ @@ -61,9 +55,7 @@
@@ -72,9 +64,7 @@
@@ -90,9 +80,7 @@ {{tr "User Inputs"}} - - {{tr "These attributes must be provided by the user when a new VM is intantatiated using each template. They will be included in the VM context"}} - + {{{tip (tr "These attributes must be provided by the user when a new VM is intantatiated using each template. They will be included in the VM context")}}} @@ -119,4 +107,4 @@ - \ No newline at end of file + diff --git a/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/general/capacity-inputs/html.hbs b/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/general/capacity-inputs/html.hbs index 9ab32f6d3e..e2e94fabd8 100644 --- a/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/general/capacity-inputs/html.hbs +++ b/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/general/capacity-inputs/html.hbs @@ -5,8 +5,7 @@
@@ -25,7 +24,7 @@
@@ -36,9 +35,7 @@
@@ -51,8 +48,7 @@
@@ -63,9 +59,7 @@
@@ -75,4 +69,4 @@
-
\ No newline at end of file +
diff --git a/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/general/html.hbs b/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/general/html.hbs index 85f5258315..05a9fcf2cc 100644 --- a/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/general/html.hbs +++ b/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/general/html.hbs @@ -2,7 +2,7 @@
@@ -22,7 +22,7 @@