<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Hello Aline,</p>
<p>On key press we have validation to display text box in red color
if path is not valid, also when user try to save data message is
getting display as below</p>
<p><br>
</p>
<p><img src="cid:part1.0999400D.4774D203@linux.vnet.ibm.com" alt=""></p>
<p><br>
</p>
<p>Once user input correct path red border will disappear as below <br>
</p>
<p><br>
</p>
<p><img src="cid:part2.03970EFF.DE0700BE@linux.vnet.ibm.com" alt=""></p>
<p><br>
</p>
<p>Thanks and Regards,</p>
<p>Rajat Gupta<br>
</p>
<p><br>
</p>
<div class="moz-cite-prefix">On 11/5/2016 1:37 AM, Aline Manera
wrote:<br>
</div>
<blockquote
cite="mid:db45b0ac-49f2-408c-497e-a568ad5fe0af@linux.vnet.ibm.com"
type="cite">Is there an information somewhere to let user know
that restriction?
<br>
<br>
On 11/02/2016 06:58 AM, <a class="moz-txt-link-abbreviated" href="mailto:rajgupta@linux.vnet.ibm.com">rajgupta@linux.vnet.ibm.com</a> wrote:
<br>
<blockquote type="cite">From: Rajat Gupta
<a class="moz-txt-link-rfc2396E" href="mailto:rajat.triumph@gmail.com"><rajat.triumph@gmail.com></a>
<br>
<br>
Edit template storage path should start with "/"
<br>
<br>
Signed-off-by: Rajat Gupta <a class="moz-txt-link-rfc2396E" href="mailto:rajat.triumph@gmail.com"><rajat.triumph@gmail.com></a>
<br>
---
<br>
ui/js/src/kimchi.template_edit_main.js | 3 ++-
<br>
1 file changed, 2 insertions(+), 1 deletion(-)
<br>
<br>
diff --git a/ui/js/src/kimchi.template_edit_main.js
b/ui/js/src/kimchi.template_edit_main.js
<br>
index 1a6e473..758201f 100644
<br>
--- a/ui/js/src/kimchi.template_edit_main.js
<br>
+++ b/ui/js/src/kimchi.template_edit_main.js
<br>
@@ -339,7 +339,8 @@ kimchi.template_edit_main = function() {
<br>
});
<br>
<br>
$(storageRow + '
input.storage-path').on('change input keyup',function(){
<br>
- if($(storageRow + '
input.storage-path').val()){
<br>
+ var storagepath = $(storageRow + '
input.storage-path').val();
<br>
+ if( storagepath &&
storagepath.charAt(0) == '/'){
<br>
$(storageRow + '
span.storage-path').removeClass('has-error');
<br>
}else{
<br>
$(storageRow + '
span.storage-path').addClass('has-error');
<br>
</blockquote>
<br>
</blockquote>
<br>
</body>
</html>