diff options
author | Alexandru DAMIAN <alexandru.damian@intel.com> | 2014-06-26 15:21:42 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-07-14 14:10:03 +0100 |
commit | cff19351a8b9d6267177dc548d994e3f28590391 (patch) | |
tree | f8fba60b5b395035c534f2169b3f3ea1e08905f9 /bitbake/lib/toaster/toastergui/templates | |
parent | 6b62a0fd6eb9a609f71857f5793b0696f7a790b4 (diff) | |
download | ast2050-yocto-poky-cff19351a8b9d6267177dc548d994e3f28590391.zip ast2050-yocto-poky-cff19351a8b9d6267177dc548d994e3f28590391.tar.gz |
bitbake: toaster: add project pages
We add the new project and project page skeletons.
In the process, we add an identifier in the settings.py
to detect whenever Toaster is running in managed mode,
and a context processor to make this value available
to the template processor.
(Bitbake rev: 927a27c68e24cfe13f62ca5f0e60878b04fa4e24)
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates')
-rw-r--r-- | bitbake/lib/toaster/toastergui/templates/base.html | 13 | ||||
-rw-r--r-- | bitbake/lib/toaster/toastergui/templates/newproject.html | 41 | ||||
-rw-r--r-- | bitbake/lib/toaster/toastergui/templates/project.html | 6 |
3 files changed, 60 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/base.html b/bitbake/lib/toaster/toastergui/templates/base.html index 9ca9c9a..1407d64 100644 --- a/bitbake/lib/toaster/toastergui/templates/base.html +++ b/bitbake/lib/toaster/toastergui/templates/base.html @@ -58,6 +58,19 @@ function reload_params(params) { <div class="navbar-inner"> <a class="brand logo" href="#"><img src="{% static 'img/logo.png' %}" class="" alt="Yocto logo project"/></a> <a class="brand" href="/">Toaster</a> + {%if MANAGED %} + <div class="btn-group pull-right"> + <a class="btn" href="{% url 'newproject' %}">New project</a> + <button class="btn dropdown-toggle" data-toggle="dropdown"> + <i class="icon-caret-down"></i> + </button> + <ul class="dropdown-menu"> + <li><a href="#">Clone project</a></li> + <li><a href="#">Export project</a></li> + <li><a href="#">Import project</a></li> + </ul> + </div> + {%endif%} <a class="pull-right manual" target="_blank" href="http://www.yoctoproject.org/documentation/toaster-manual"> <i class="icon-book"></i> Toaster manual diff --git a/bitbake/lib/toaster/toastergui/templates/newproject.html b/bitbake/lib/toaster/toastergui/templates/newproject.html new file mode 100644 index 0000000..e5a6551 --- /dev/null +++ b/bitbake/lib/toaster/toastergui/templates/newproject.html @@ -0,0 +1,41 @@ +{% extends "base.html" %} +{% load projecttags %} +{% load humanize %} +{% block pagecontent %} +<div class="row-fluid"> + <div class="span6"> + <div class="page-header"> + <h1>Create a new project</h1> + </div> + <form> + <fieldset> + <label>Project name <span class="muted">(required)</span></label> + <input type="text" class="input-xlarge" required name="projectname"> + <label class="project-form"> + Project owner + <i class="icon-question-sign get-help" title="The go-to person for this project"></i> + </label> + <form method="POST"> + <input type="text"> + <label class="project-form">Owner's email</label> + <input type="email" class="input-large" name="email"> + <label class="project-form"> + Yocto Project version + <i class="icon-question-sign get-help" title="This sets the branch for the Yocto Project core layers (meta, meta-yocto and meta-yocto-bsp), and for the layers you use from the OpenEmbedded Metadata Index"></i> + </label> + <select> + <option>Yocto Project 1.7 "D?"</option> + <option>Yocto Project 1.6 "Daisy"</option> + <option>Yocto Project 1.5 "Dora"</option> + </select> + </form> + </fieldset> + + <div class="form-actions"> + <a href="project-with-targets.html" class="btn btn-primary btn-large">Create project</a> + </div> + </form> + </div> + </div> + </div> +{% endblock %} diff --git a/bitbake/lib/toaster/toastergui/templates/project.html b/bitbake/lib/toaster/toastergui/templates/project.html new file mode 100644 index 0000000..71adb54 --- /dev/null +++ b/bitbake/lib/toaster/toastergui/templates/project.html @@ -0,0 +1,6 @@ +{% extends "base.html" %} +{% load projecttags %} +{% load humanize %} +{% block pagecontent %} + +{% endblock %} |