diff options
Diffstat (limited to 'bitbake/lib/toaster')
| -rw-r--r-- | bitbake/lib/toaster/toastergui/templates/newproject.html | 12 |
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 @@ | |||
| 19 | <div class="span6"> | 19 | <div class="span6"> |
| 20 | <form method="POST">{% csrf_token %} | 20 | <form method="POST">{% csrf_token %} |
| 21 | 21 | ||
| 22 | <fieldset> | 22 | <fieldset id="validate-project-name"> |
| 23 | <label>Project name <span class="muted">(required)</span></label> | 23 | <label>Project name <span class="muted">(required)</span></label> |
| 24 | <input type="text" class="input-xlarge" required id="new-project-name" name="projectname"> | 24 | <div> |
| 25 | <input type="text" class="input-xlarge" required id="new-project-name" name="projectname"> | ||
| 26 | <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> | ||
| 27 | </div> | ||
| 25 | </fieldset> | 28 | </fieldset> |
| 26 | <!-- | 29 | <!-- |
| 27 | <fieldset> | 30 | <fieldset> |
| @@ -113,6 +116,11 @@ | |||
| 113 | $('#description-' + new_release).fadeIn(); | 116 | $('#description-' + new_release).fadeIn(); |
| 114 | }); | 117 | }); |
| 115 | 118 | ||
| 119 | libtoaster.makeProjectNameValidation($("#new-project-name"), | ||
| 120 | $("#hint-error-project-name"), $("#validate-project-name"), | ||
| 121 | $(".btn-primary")); | ||
| 122 | |||
| 123 | |||
| 116 | /* // Hide the project release when you select an analysis project | 124 | /* // Hide the project release when you select an analysis project |
| 117 | function projectType() { | 125 | function projectType() { |
| 118 | if ($("input[type='radio']:checked").val() == 'build') { | 126 | if ($("input[type='radio']:checked").val() == 'build') { |
