summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/templates
diff options
context:
space:
mode:
authorAlexandru DAMIAN <alexandru.damian@intel.com>2014-06-27 15:09:04 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-07-14 14:10:03 +0100
commit9cfa66bd13afd339760209ad9977c67464118c93 (patch)
tree6fdddb8b7eb052204b8cd5a461e15b4e55e0c85b /bitbake/lib/toaster/toastergui/templates
parentcff19351a8b9d6267177dc548d994e3f28590391 (diff)
downloadast2050-yocto-poky-9cfa66bd13afd339760209ad9977c67464118c93.zip
ast2050-yocto-poky-9cfa66bd13afd339760209ad9977c67464118c93.tar.gz
bitbake: toaster: add automated login in new project page
Toaster uses the Django authentication system to assign user accounts to the projects that are being created. In the current implementation, the user accounts are created/authenticated automatically, on the fly, based on the fields specified in the create new project page. (Bitbake rev: a9062d9692525e24e59b5b2bb4dfdef90b41bf2a) 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/newproject.html35
1 files changed, 19 insertions, 16 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/newproject.html b/bitbake/lib/toaster/toastergui/templates/newproject.html
index e5a6551..ce01800 100644
--- a/bitbake/lib/toaster/toastergui/templates/newproject.html
+++ b/bitbake/lib/toaster/toastergui/templates/newproject.html
@@ -6,36 +6,39 @@
<div class="span6">
<div class="page-header">
<h1>Create a new project</h1>
- </div>
- <form>
+ </div>
+ <div class="container-fluid">
+ {% for a in alerts %}
+ <div class="alert alert-error row-fluid" role="alert">{{a}}</div>
+ {% endfor %}
+ </div>
+ <form method="POST">{% csrf_token %}
<fieldset>
<label>Project name <span class="muted">(required)</span></label>
- <input type="text" class="input-xlarge" required name="projectname">
+ <input type="text" class="input-xlarge" required name="projectname" value="{{projectname}}">
<label class="project-form">
Project owner
- <i class="icon-question-sign get-help" title="The go-to person for this project"></i>
+ <i class="icon-question-sign get-help" title="The go-to person for this project"></i>
</label>
- <form method="POST">
- <input type="text">
+ <input type="text" name="username" value="{{username}}">
<label class="project-form">Owner's email</label>
- <input type="email" class="input-large" name="email">
+ <input type="email" class="input-large" name="email" value="{{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 name="projectversion">
+ <option value="1.7" {%if projectversion == "1.7" %}selected{%endif%}>Yocto Project 1.7 "D?"</option>
+ <option value="1.6" {%if projectversion == "1.6" %}selected{%endif%}>Yocto Project 1.6 "Daisy"</option>
+ <option value="1.5" {%if projectversion == "1.5" %}selected{%endif%}>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>
+ <input type="submit" class="btn btn-primary btn-large" value="Create project"/>
</div>
- </form>
+ </form>
</div>
</div>
- </div>
+ </div>
{% endblock %}
OpenPOWER on IntegriCloud