summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/templates
diff options
context:
space:
mode:
authorMichael Wood <michael.g.wood@intel.com>2016-02-02 17:46:31 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-02-10 13:29:21 +0000
commit0fee829932fe0263bdc0b61cd3546743e726a2d7 (patch)
tree439220a7d6e6a4ffac7055fc05b7c40979ed79e9 /bitbake/lib/toaster/toastergui/templates
parentcb6d290d0b93e0f6673d315075152fcef8a4b416 (diff)
downloadpoky-0fee829932fe0263bdc0b61cd3546743e726a2d7.tar.gz
bitbake: toaster: newcustomimage_modal add frontend name validation
Add front end handling of validation response from create new CustomImageRecipe api. (Bitbake rev: eff66b502df8e001cd0abc25bcbd742687169619) Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: brian avery <avery.brian@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates')
-rw-r--r--bitbake/lib/toaster/toastergui/templates/newcustomimage_modal.html7
1 files changed, 3 insertions, 4 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/newcustomimage_modal.html b/bitbake/lib/toaster/toastergui/templates/newcustomimage_modal.html
index 93cf9d7e02..fed489fad9 100644
--- a/bitbake/lib/toaster/toastergui/templates/newcustomimage_modal.html
+++ b/bitbake/lib/toaster/toastergui/templates/newcustomimage_modal.html
@@ -22,12 +22,11 @@
22 <span class="help-block span8">Image names must be unique. They should not contain spaces or capital letters, and the only allowed special character is dash (-).<p></p> 22 <span class="help-block span8">Image names must be unique. They should not contain spaces or capital letters, and the only allowed special character is dash (-).<p></p>
23 </span></div> 23 </span></div>
24 <div class="control-group controls"> 24 <div class="control-group controls">
25 <input type="text" class="huge span5" placeholder="Type the name, something like 'core-image-myimage'"> 25 <input type="text" class="huge span5" placeholder="Type the name, something like 'core-image-myimage'" required>
26 <span class="help-block" style="display:none">Image names cannot contain spaces or capital letters. The only allowed special character is dash (-)</span> 26 <span class="help-block error" id="invalid-name-help" style="display:none"></span>
27 <span class="help-block" style="display: none">An image with this name already exists. Image names must be unique: try a different one.</span>
28 </div> 27 </div>
29 </div> 28 </div>
30 <div class="modal-footer"> 29 <div class="modal-footer">
31 <a href="#" id="create-new-custom-image-btn" class="btn btn-primary btn-large" data-original-title="" title="">Create custom image</a> 30 <button id="create-new-custom-image-btn" class="btn btn-primary btn-large" data-original-title="" title="" disabled>Create custom image</button>
32 </div> 31 </div>
33</div> 32</div>