diff options
-rw-r--r-- | bitbake/lib/toaster/toastergui/templates/newproject.html | 32 |
1 files changed, 19 insertions, 13 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/newproject.html b/bitbake/lib/toaster/toastergui/templates/newproject.html index 512a8fa68f..0265564762 100644 --- a/bitbake/lib/toaster/toastergui/templates/newproject.html +++ b/bitbake/lib/toaster/toastergui/templates/newproject.html | |||
@@ -22,18 +22,24 @@ | |||
22 | <i class="icon-question-sign get-help" title="The version of the build system you want to use"></i> | 22 | <i class="icon-question-sign get-help" title="The version of the build system you want to use"></i> |
23 | </label> | 23 | </label> |
24 | <select name="projectversion" id="projectversion"> | 24 | <select name="projectversion" id="projectversion"> |
25 | {% for release in releases %} | 25 | {% for release in releases %} |
26 | <option value="{{release.id}}"{%if projectversion == release.id %} selected{%endif%}>{{release.description}}</option> | 26 | <option value="{{release.id}}" |
27 | {% endfor %} | 27 | {%if defaultbranch == release.name %} |
28 | selected | ||
29 | {%endif%} | ||
30 | |||
31 | >{{release.description}}</option> | ||
32 | {% endfor %} | ||
28 | </select> | 33 | </select> |
29 | {% for release in releases %} | 34 | {% for release in releases %} |
30 | <div class="row-fluid helptext" id="description-{{release.id}}" style="display: none"> | 35 | <div class="row-fluid helptext" id="description-{{release.id}}" style="display: none"> |
31 | <span class="help-block span5">{{release.helptext|safe}}</span> | 36 | <span class="help-block span5">{{release.helptext|safe}}</span> |
32 | </div> | 37 | </div> |
33 | {% endfor %} | 38 | {% endfor %} |
34 | {% else %} | 39 | {% else %} |
35 | <input type="hidden" name="projectversion" value="{{releases.0.id}}"/> | 40 | <input type="hidden" name="projectversion" value="{{releases.0.id}}"/> |
36 | {% endif %} | 41 | {% endif %} |
42 | |||
37 | </fieldset> | 43 | </fieldset> |
38 | 44 | ||
39 | <div class="form-actions"> | 45 | <div class="form-actions"> |
@@ -82,11 +88,11 @@ | |||
82 | $("#description-" + selected_release).show(); | 88 | $("#description-" + selected_release).show(); |
83 | 89 | ||
84 | 90 | ||
85 | $('select').change(function(){ | 91 | $('select').change(function(){ |
86 | var new_release = $('select').val(); | 92 | var new_release = $('select').val(); |
87 | $(".helptext").hide(); | 93 | $(".helptext").hide(); |
88 | $('#description-' + new_release).fadeIn(); | 94 | $('#description-' + new_release).fadeIn(); |
89 | }); | 95 | }); |
90 | }) | 96 | }) |
91 | </script> | 97 | </script> |
92 | </div> | 98 | </div> |