diff options
author | Belen Barros Pena <belen.barros.pena@linux.intel.com> | 2016-04-12 15:56:43 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-06-15 08:35:03 +0100 |
commit | 443f7b39158c891015a791814b9b1fe2324edc41 (patch) | |
tree | 3f570a138594273bc7498225e066b7f9a99bf0c5 /bitbake/lib/toaster/toastergui/templates/newproject.html | |
parent | 79e0eb9e52e9b954aa3b6bc6dee15a75b5eb990c (diff) | |
download | poky-443f7b39158c891015a791814b9b1fe2324edc41.tar.gz |
bitbake: toaster: Migrate project configuration from bootstrap 2 to bootstrap 3
Convert all the HTML templates, JS and CSS in the project parts of
toaster to use bootstrap 3.
(Bitbake rev: 69527a731eada699d3f604ff8f3ae9410981ba9b)
Signed-off-by: Belen Barros Pena <belen.barros.pena@linux.intel.com>
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates/newproject.html')
-rw-r--r-- | bitbake/lib/toaster/toastergui/templates/newproject.html | 51 |
1 files changed, 24 insertions, 27 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/newproject.html b/bitbake/lib/toaster/toastergui/templates/newproject.html index 8913057f40..acb614e9d3 100644 --- a/bitbake/lib/toaster/toastergui/templates/newproject.html +++ b/bitbake/lib/toaster/toastergui/templates/newproject.html | |||
@@ -5,27 +5,21 @@ | |||
5 | {% block title %} Create a new project - Toaster {% endblock %} | 5 | {% block title %} Create a new project - Toaster {% endblock %} |
6 | 6 | ||
7 | {% block pagecontent %} | 7 | {% block pagecontent %} |
8 | <div class="row-fluid"> | 8 | <div class="row"> |
9 | <div class="col-md-12"> | ||
9 | <div class="page-header"> | 10 | <div class="page-header"> |
10 | <h1>Create a new project</h1> | 11 | <h1>Create a new project</h1> |
11 | </div> | 12 | </div> |
12 | <div class="container-fluid"> | ||
13 | {% if alert %} | 13 | {% if alert %} |
14 | <div class="alert alert-error row-fluid" role="alert">{{alert}}</div> | 14 | <div class="alert alert-danger" role="alert">{{alert}}</div> |
15 | {% endif %} | 15 | {% endif %} |
16 | </div> | ||
17 | 16 | ||
18 | <div class="row-fluid"> | ||
19 | <div class="span6"> | ||
20 | <form method="POST">{% csrf_token %} | 17 | <form method="POST">{% csrf_token %} |
21 | 18 | <div class="form-group" id="validate-project-name"> | |
22 | <fieldset id="validate-project-name"> | 19 | <label class="control-label">Project name <span class="text-muted">(required)</span></label> |
23 | <label>Project name <span class="muted">(required)</span></label> | 20 | <input type="text" class="form-control" required id="new-project-name" name="projectname"> |
24 | <div> | 21 | </div> |
25 | <input type="text" class="input-xlarge" required id="new-project-name" name="projectname"> | 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> |
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> | ||
28 | </fieldset> | ||
29 | <!-- | 23 | <!-- |
30 | <fieldset> | 24 | <fieldset> |
31 | <label class="project-form">Project type</label> | 25 | <label class="project-form">Project type</label> |
@@ -38,13 +32,13 @@ | |||
38 | <input type="hidden" name="ptype" value="build" /> | 32 | <input type="hidden" name="ptype" value="build" /> |
39 | 33 | ||
40 | {% if releases.count > 0 %} | 34 | {% if releases.count > 0 %} |
41 | <fieldset class="release"> | 35 | <div class="release form-group"> |
42 | {% if releases.count > 1 %} | 36 | {% if releases.count > 1 %} |
43 | <label class="project-form"> | 37 | <label class="control-label"> |
44 | Release | 38 | Release |
45 | <i class="icon-question-sign get-help" title="The version of the build system you want to use"></i> | 39 | <span class="glyphicon glyphicon-question-sign get-help" title="The version of the build system you want to use"></span> |
46 | </label> | 40 | </label> |
47 | <select name="projectversion" id="projectversion"> | 41 | <select name="projectversion" id="projectversion" class="form-control"> |
48 | {% for release in releases %} | 42 | {% for release in releases %} |
49 | <option value="{{release.id}}" | 43 | <option value="{{release.id}}" |
50 | {%if defaultbranch == release.name %} | 44 | {%if defaultbranch == release.name %} |
@@ -53,25 +47,28 @@ | |||
53 | >{{release.description}}</option> | 47 | >{{release.description}}</option> |
54 | {% endfor %} | 48 | {% endfor %} |
55 | </select> | 49 | </select> |
50 | <div class="row"> | ||
51 | <div class="col-md-4"> | ||
56 | {% for release in releases %} | 52 | {% for release in releases %} |
57 | <div class="row-fluid helptext" id="description-{{release.id}}" style="display: none"> | 53 | <div class="helptext" id="description-{{release.id}}" style="display: none"> |
58 | <span class="help-block span5">{{release.helptext|safe}}</span> | 54 | <span class="help-block">{{release.helptext|safe}}</span> |
59 | </div> | 55 | </div> |
60 | {% endfor %} | 56 | {% endfor %} |
61 | {% else %} | 57 | {% else %} |
62 | <input type="hidden" name="projectversion" value="{{releases.0.id}}"/> | 58 | <input type="hidden" name="projectversion" value="{{releases.0.id}}"/> |
63 | {% endif %} | 59 | {% endif %} |
60 | </div> | ||
61 | </div> | ||
64 | </fieldset> | 62 | </fieldset> |
65 | {% endif %} | 63 | {% endif %} |
66 | 64 | <div class="top-air"> | |
67 | <div class="form-actions"> | 65 | <input type="submit" id="create-project-button" class="btn btn-primary btn-lg" value="Create project"/> |
68 | <input type="submit" id="create-project-button" class="btn btn-primary btn-large" value="Create project"/> | ||
69 | <span class="help-inline" style="vertical-align:middle;">To create a project, you need to enter a project name</span> | 66 | <span class="help-inline" style="vertical-align:middle;">To create a project, you need to enter a project name</span> |
70 | </div> | 67 | </div> |
68 | |||
71 | </form> | 69 | </form> |
72 | </div> | ||
73 | <!-- | 70 | <!-- |
74 | <div class="span5 well"> | 71 | <div class="col-md-5 well"> |
75 | <span class="help-block"> | 72 | <span class="help-block"> |
76 | <h4>Toaster project types</h4> | 73 | <h4>Toaster project types</h4> |
77 | <p>With a <strong>build project</strong> you configure and run your builds from Toaster.</p> | 74 | <p>With a <strong>build project</strong> you configure and run your builds from Toaster.</p> |
@@ -84,7 +81,7 @@ | |||
84 | <p>If you create a <strong>build project</strong>, you will need to select a <strong>release</strong>, | 81 | <p>If you create a <strong>build project</strong>, you will need to select a <strong>release</strong>, |
85 | which is the version of the build system you want to use to run your builds.</p> | 82 | which is the version of the build system you want to use to run your builds.</p> |
86 | </div> --> | 83 | </div> --> |
87 | </div> | 84 | </div> |
88 | </div> | 85 | </div> |
89 | 86 | ||
90 | <script type="text/javascript"> | 87 | <script type="text/javascript"> |