2015-07-31 12:09:12 +00:00
{% extends "baseprojectpage.html" %}
2014-06-26 14:21:42 +00:00
{% load projecttags %}
{% load humanize %}
2014-09-09 10:47:13 +00:00
{% load static %}
2014-06-30 17:33:04 +00:00
2015-10-28 14:22:05 +00:00
{% block title %} Configuration - {{project.name}} - Toaster {% endblock %}
2014-09-09 10:47:13 +00:00
{% block projectinfomain %}
2014-06-30 17:33:04 +00:00
2015-07-31 12:09:12 +00:00
< script src = "{% static 'js/layerDepsModal.js' %}" > < / script >
< script src = "{% static 'js/projectpage.js' %}" > < / script >
< script >
$(document).ready(function (){
var ctx = {
2015-08-04 19:46:36 +00:00
testReleaseChangeUrl: "{% url 'xhr_testreleasechange' project.id %}",
2015-07-31 12:09:12 +00:00
};
try {
projectPageInit(ctx);
} catch (e) {
document.write("Sorry, An error has occurred loading this page");
console.warn(e);
}
});
< / script >
2015-03-23 17:15:01 +00:00
2016-09-26 10:59:31 +00:00
< div id = "delete-project-modal" class = "modal fade" tabindex = "-1" role = "dialog" data-backdrop = "static" data-keyboard = "false" >
2016-04-12 14:56:43 +00:00
< div class = "modal-dialog" >
< div class = "modal-content" >
< div class = "modal-header" >
2016-09-26 10:59:31 +00:00
< h4 > Are you sure you want to delete this project?< / h4 >
2016-04-12 14:56:43 +00:00
< / div >
< div class = "modal-body" >
2016-10-06 00:08:49 +00:00
< p > Deleting the < strong class = "project-name" > < / strong > project
will:< / p >
2016-09-26 10:59:31 +00:00
< ul >
2016-10-06 00:08:49 +00:00
< li > Cancel its builds currently in progress< / li >
< li > Remove its configuration information< / li >
< li > Remove its imported layers< / li >
< li > Remove its custom images< / li >
< li > Remove all its build information< / li >
2016-09-26 10:59:31 +00:00
< / ul >
2016-04-12 14:56:43 +00:00
< / div >
< div class = "modal-footer" >
2016-09-26 10:59:31 +00:00
< button type = "button" class = "btn btn-primary" id = "delete-project-confirmed" >
< span data-role = "submit-state" > Delete project< / span >
< span data-role = "loading-state" style = "display:none" >
< span class = "fa-pulse" >
< i class = "fa-pulse icon-spinner" > < / i >
< / span >
Deleting project...
< / span >
< / button >
< button type = "button" class = "btn btn-link" data-dismiss = "modal" > Cancel< / button >
2016-04-12 14:56:43 +00:00
< / div >
< / div > <!-- /.modal - content -->
< / div > <!-- /.modal - dialog -->
2016-09-26 10:59:31 +00:00
< / div >
2015-06-08 12:36:56 +00:00
2016-04-12 14:56:43 +00:00
< div class = "row" id = "project-page" style = "display:none" >
< div class = "col-md-6" >
2015-07-31 12:09:12 +00:00
< div class = "well well-transparent" id = "machine-section" >
< h3 > Machine< / h3 >
2015-06-08 12:36:56 +00:00
2016-04-12 14:56:43 +00:00
< p class = "lead" > < span id = "project-machine-name" > < / span > < span class = "glyphicon glyphicon-edit" id = "change-machine-toggle" > < / span > < / p >
2015-06-08 12:36:56 +00:00
2016-04-12 14:56:43 +00:00
< form id = "select-machine-form" style = "display:none;" class = "form-inline" >
2016-09-05 14:29:23 +00:00
< span class = "help-block" > Machine suggestions come from the list of layers added to your project. If you don't see the machine you are looking for, < a href = "{% url 'projectmachines' project.id %}" > check the full list of machines< / a > < / span >
2016-04-12 14:56:43 +00:00
< div class = "form-group" >
< input class = "form-control" id = "machine-change-input" autocomplete = "off" value = "" data-provide = "typeahead" data-minlength = "1" data-autocomplete = "off" type = "text" >
2015-07-31 12:09:12 +00:00
< / div >
2016-04-12 14:56:43 +00:00
< button id = "machine-change-btn" class = "btn btn-default" type = "button" > Save< / button >
< a href = "#" id = "cancel-machine-change" class = "btn btn-link" > Cancel< / a >
< p class = "form-link" > < a href = "{% url 'projectmachines' project.id %}" > View compatible machines< / a > < / p >
2015-07-31 12:09:12 +00:00
< / form >
2014-09-09 10:47:13 +00:00
< / div >
2015-07-31 12:09:12 +00:00
< div class = "well well-transparent" >
< h3 > Most built recipes< / h3 >
2014-09-09 10:47:13 +00:00
2015-07-31 12:09:12 +00:00
< div class = "alert alert-info" style = "display:none" id = "no-most-built" >
2016-04-12 14:56:43 +00:00
< h4 > You haven't built any recipes yet< / h4 >
< p class = "form-link" > < a href = "{% url 'projectimagerecipes' project.id %}" > Choose a recipe to build< / a > < / p >
2014-09-09 10:47:13 +00:00
< / div >
2014-11-07 13:26:45 +00:00
2016-04-12 14:56:43 +00:00
< ul class = "list-unstyled lead" id = "freq-build-list" >
2015-07-31 12:09:12 +00:00
< / ul >
< button class = "btn btn-primary" id = "freq-build-btn" disabled = "disabled" > Build selected recipes< / button >
< / div >
2014-06-30 17:33:04 +00:00
2015-07-31 12:09:12 +00:00
< div class = "well well-transparent" >
< h3 > Project release< / h3 >
2014-11-07 13:26:45 +00:00
2016-02-22 09:08:32 +00:00
< p class = "lead" > < span id = "project-release-title" > < / span >
<!-- Comment out the ability to change the project release, until we decide what to do with this functionality -->
<!-- i title="" data - original - title="" id="release - change - toggle" class="icon - pencil"></i -->
< / p >
2014-11-07 13:26:45 +00:00
2016-02-22 09:08:32 +00:00
<!-- Comment out the ability to change the project release, until we decide what to do with this functionality -->
<!-- form class="form - inline" id="change - release - form" style="display:none;">
2015-07-31 12:09:12 +00:00
< select > < / select >
< button class = "btn" style = "margin-left:5px;" id = "change-release-btn" > Change< / button > < a href = "#" id = "cancel-release-change" class = "btn btn-link" > Cancel< / a >
2016-02-22 09:08:32 +00:00
< / form-- >
2014-09-09 10:47:13 +00:00
< / div >
< / div >
2014-06-30 17:33:04 +00:00
2016-04-12 14:56:43 +00:00
< div class = "col-md-6" >
2015-07-31 12:09:12 +00:00
< div class = "well well-transparent" id = "layer-container" >
2016-04-12 14:56:43 +00:00
< h3 > Layers < span class = "counter" > (< span id = "project-layers-count" > < / span > )< / span >
< span title = "OpenEmbedded organises recipes and machines into thematic groups called <strong>layers</strong>. Click on a layer name to see the recipes and machines it includes." class = "glyphicon glyphicon-question-sign get-help" > < / span >
2015-07-31 12:09:12 +00:00
< / h3 >
2014-06-30 17:33:04 +00:00
2016-04-12 14:56:43 +00:00
< div class = "alert alert-warning" id = "no-layers-in-project" style = "display:none" >
< h4 > This project has no layers< / h4 >
In order to build this project you need to add some layers first. For that you can:
2015-07-31 12:09:12 +00:00
< ul >
2016-04-12 14:56:43 +00:00
< li > < a href = "{% url 'projectlayers' project.id %}" > Choose from the layers compatible with this project< / a > < / li >
2015-07-31 12:09:12 +00:00
< li > < a href = "{% url 'importlayer' project.id %}" > Import a layer< / a > < / li >
< li > < a href = "http://www.yoctoproject.org/docs/current/dev-manual/dev-manual.html#understanding-and-creating-layers" target = "_blank" > Read about layers in the documentation< / a > < / li >
2016-04-12 14:56:43 +00:00
< li > Or type a layer name below< / li >
2015-07-31 12:09:12 +00:00
< / ul >
< / div >
2014-09-09 10:47:13 +00:00
2016-04-12 14:56:43 +00:00
< form class = "form-inline" >
< div class = "form-group" >
< input id = "layer-add-input" class = "form-control" autocomplete = "off" placeholder = "Type a layer name" data-minlength = "1" data-autocomplete = "off" data-provide = "typeahead" data-source = "" type = "text" >
2014-09-09 10:47:13 +00:00
< / div >
2016-04-12 14:56:43 +00:00
< button id = "add-layer-btn" class = "btn btn-default" disabled > Add layer< / button >
< p class = "form-link" >
2015-07-31 12:09:12 +00:00
< a href = "{% url 'projectlayers' project.id %}" id = "view-compatible-layers" > View compatible layers< / a >
2016-04-12 14:56:43 +00:00
< span class = "text-muted" > |< / span >
< a href = "{% url 'importlayer' project.id %}" > Import layer< / a >
2015-07-31 12:09:12 +00:00
< / p >
2014-09-09 10:47:13 +00:00
< / form >
2015-07-31 12:09:12 +00:00
2016-04-12 14:56:43 +00:00
< ul class = "list-unstyled lead" id = "layers-in-project-list" >
2015-07-31 12:09:12 +00:00
< / ul >
2014-09-09 10:47:13 +00:00
< / div >
2015-07-31 12:09:12 +00:00
< / div >
2014-06-26 14:21:42 +00:00
{% endblock %}