summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/templates/newproject.html
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates/newproject.html')
-rw-r--r--bitbake/lib/toaster/toastergui/templates/newproject.html53
1 files changed, 26 insertions, 27 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/newproject.html b/bitbake/lib/toaster/toastergui/templates/newproject.html
index bd03bb55d7..7e1ebb382a 100644
--- a/bitbake/lib/toaster/toastergui/templates/newproject.html
+++ b/bitbake/lib/toaster/toastergui/templates/newproject.html
@@ -20,23 +20,19 @@
20 <input type="text" class="form-control" required id="new-project-name" name="projectname"> 20 <input type="text" class="form-control" required id="new-project-name" name="projectname">
21 </div> 21 </div>
22 <p class="help-block text-danger" style="display: none;" id="hint-error-project-name">A project with this name exists. Project names must be unique.</p> 22 <p class="help-block text-danger" style="display: none;" id="hint-error-project-name">A project with this name exists. Project names must be unique.</p>
23<!--
24 <fieldset>
25 <label class="project-form">Project type</label>
26 <label class="project-form radio"><input type="radio" name="ptype" value="analysis" checked/> Analysis Project</label>
27 23
24 <label class="project-form">Project type:</label>
28 {% if releases.count > 0 %} 25 {% if releases.count > 0 %}
29 <label class="project-form radio"><input type="radio" name="ptype" value="build" checked /> Build Project</label> 26 <label class="project-form radio" style="padding-left: 35px;"><input id='type-new' type="radio" name="ptype" value="new"/> New project</label>
30 {% endif %} 27 {% endif %}
31 </fieldset> --> 28 <label class="project-form radio" style="padding-left: 35px;"><input id='type-import' type="radio" name="ptype" value="import"/> Import command line project</label>
32 <input type="hidden" name="ptype" value="build" />
33 29
34 {% if releases.count > 0 %} 30 {% if releases.count > 0 %}
35 <div class="release form-group"> 31 <div class="release form-group">
36 {% if releases.count > 1 %} 32 {% if releases.count > 1 %}
37 <label class="control-label"> 33 <label class="control-label">
38 Release 34 Release
39 <span class="glyphicon glyphicon-question-sign get-help" title="The version of the build system you want to use"></span> 35 <span class="glyphicon glyphicon-question-sign get-help" title="The version of the build system you want to use for this project"></span>
40 </label> 36 </label>
41 <select name="projectversion" id="projectversion" class="form-control"> 37 <select name="projectversion" id="projectversion" class="form-control">
42 {% for release in releases %} 38 {% for release in releases %}
@@ -59,28 +55,26 @@
59 {% else %} 55 {% else %}
60 <input type="hidden" name="projectversion" value="{{releases.0.id}}"/> 56 <input type="hidden" name="projectversion" value="{{releases.0.id}}"/>
61 {% endif %} 57 {% endif %}
62 </div> 58
59 <input type="checkbox" class="checkbox-mergeattr" name="mergeattr" value="mergeattr"> Merged Toaster settings (Command line user compatibility)
60 <span class="glyphicon glyphicon-question-sign get-help" title="Place the Toaster settings into the standard 'local.conf' and 'bblayers.conf' instead of 'toaster_bblayers.conf' and 'toaster.conf'"></span>
61
62 </div>
63 {% endif %} 63 {% endif %}
64
65 <div class="build-import form-group" id="import-project">
66 <label class="control-label">Import existing project directory
67 <span class="glyphicon glyphicon-question-sign get-help" title="Enter a path to an existing build directory, import the existing settings, and create a Toaster Project for it."></span>
68 </label>
69 <input style="width: 33%;"type="text" class="form-control" required id="import-project-dir" name="importdir">
70 </div>
71
64 <div class="top-air"> 72 <div class="top-air">
65 <input type="submit" id="create-project-button" class="btn btn-primary btn-lg" value="Create project"/> 73 <input type="submit" id="create-project-button" class="btn btn-primary btn-lg" value="Create project"/>
66 <span class="help-inline" style="vertical-align:middle;">To create a project, you need to enter a project name</span> 74 <span class="help-inline" style="vertical-align:middle;">To create a project, you need to enter a project name</span>
67 </div> 75 </div>
68 76
69 </form> 77 </form>
70 <!--
71 <div class="col-md-5 well">
72 <span class="help-block">
73 <h4>Toaster project types</h4>
74 <p>With a <strong>build project</strong> you configure and run your builds from Toaster.</p>
75 <p>With an <strong>analysis project</strong>, the builds are configured and run by another tool
76 (something like Buildbot or Jenkins), and the project only collects the information about the
77 builds (packages, recipes, dependencies, logs, etc). </p>
78 <p>You can read more on <a href="#">how to set up an analysis project</a>
79 in the Toaster manual.</p>
80 <h4>Release</h4>
81 <p>If you create a <strong>build project</strong>, you will need to select a <strong>release</strong>,
82 which is the version of the build system you want to use to run your builds.</p>
83 </div> -->
84 </div> 78 </div>
85 </div> 79 </div>
86 80
@@ -89,6 +83,7 @@
89 // hide the new project button 83 // hide the new project button
90 $("#new-project-button").hide(); 84 $("#new-project-button").hide();
91 $('.btn-primary').attr('disabled', 'disabled'); 85 $('.btn-primary').attr('disabled', 'disabled');
86 $('#type-new').attr('checked', 'checked');
92 87
93 // enable submit button when all required fields are populated 88 // enable submit button when all required fields are populated
94 $("input#new-project-name").on('input', function() { 89 $("input#new-project-name").on('input', function() {
@@ -118,20 +113,24 @@
118 $(".btn-primary")); 113 $(".btn-primary"));
119 114
120 115
121/* // Hide the project release when you select an analysis project 116 // Hide the project release when you select an analysis project
122 function projectType() { 117 function projectType() {
123 if ($("input[type='radio']:checked").val() == 'build') { 118 if ($("input[type='radio']:checked").val() == 'new') {
119 $('.build-import').fadeOut();
124 $('.release').fadeIn(); 120 $('.release').fadeIn();
121 $('#import-project-dir').removeAttr('required');
125 } 122 }
126 else { 123 else {
127 $('.release').fadeOut(); 124 $('.release').fadeOut();
125 $('.build-import').fadeIn();
126 $('#import-project-dir').attr('required', 'required');
128 } 127 }
129 } 128 }
130 projectType(); 129 projectType();
131 130
132 $('input:radio').change(function(){ 131 $('input:radio').change(function(){
133 projectType(); 132 projectType();
134 }); */ 133 });
135 }); 134 });
136 </script> 135 </script>
137 136