aboutsummaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorSujith H <sujith.h@gmail.com>2016-05-10 00:01:49 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-05-11 11:32:58 +0100
commitdc57476d0b6c2c4cb8868b48058e78c24c065217 (patch)
tree456e20dde0a8c5f7dc0eb8393804aa0bc705dae0 /bitbake
parent9bdfed856b2e780cf40342bd22ac35fb28f1b2c4 (diff)
downloadopenembedded-core-contrib-dc57476d0b6c2c4cb8868b48058e78c24c065217.tar.gz
bitbake: toaster: ui handles duplicate project name in new project page
When already existing project name is typed by user, the ui pops up message regarding the existance of the project name. [YOCTO #7005] (Bitbake rev: 83e5be7e74850f1bb019668de07f3f745063fe38) Signed-off-by: Sujith H <sujith.h@gmail.com> Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/toaster/toastergui/templates/newproject.html12
1 files changed, 10 insertions, 2 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/newproject.html b/bitbake/lib/toaster/toastergui/templates/newproject.html
index e83b2bea61..8913057f40 100644
--- a/bitbake/lib/toaster/toastergui/templates/newproject.html
+++ b/bitbake/lib/toaster/toastergui/templates/newproject.html
@@ -19,9 +19,12 @@
<div class="span6">
<form method="POST">{% csrf_token %}
- <fieldset>
+ <fieldset id="validate-project-name">
<label>Project name <span class="muted">(required)</span></label>
- <input type="text" class="input-xlarge" required id="new-project-name" name="projectname">
+ <div>
+ <input type="text" class="input-xlarge" required id="new-project-name" name="projectname">
+ <p class="help-block error" style="display: none;" id="hint-error-project-name">A project with this name exists. Project names must be unique.</p>
+ </div>
</fieldset>
<!--
<fieldset>
@@ -113,6 +116,11 @@
$('#description-' + new_release).fadeIn();
});
+ libtoaster.makeProjectNameValidation($("#new-project-name"),
+ $("#hint-error-project-name"), $("#validate-project-name"),
+ $(".btn-primary"));
+
+
/* // Hide the project release when you select an analysis project
function projectType() {
if ($("input[type='radio']:checked").val() == 'build') {