1*4882a593Smuzhiyun{% extends project_specific|yesno:"baseprojectspecificpage.html,baseprojectpage.html" %} 2*4882a593Smuzhiyun 3*4882a593Smuzhiyun{% load projecttags %} 4*4882a593Smuzhiyun{% load humanize %} 5*4882a593Smuzhiyun{% load static %} 6*4882a593Smuzhiyun 7*4882a593Smuzhiyun{% block title %} Configuration - {{project.name}} - Toaster {% endblock %} 8*4882a593Smuzhiyun{% block projectinfomain %} 9*4882a593Smuzhiyun 10*4882a593Smuzhiyun<script src="{% static 'js/layerDepsModal.js' %}"></script> 11*4882a593Smuzhiyun<script src="{% static 'js/projectpage.js' %}"></script> 12*4882a593Smuzhiyun<script> 13*4882a593Smuzhiyun $(document).ready(function (){ 14*4882a593Smuzhiyun var ctx = { 15*4882a593Smuzhiyun testReleaseChangeUrl: "{% url 'xhr_testreleasechange' project.id %}", 16*4882a593Smuzhiyun }; 17*4882a593Smuzhiyun 18*4882a593Smuzhiyun try { 19*4882a593Smuzhiyun projectPageInit(ctx); 20*4882a593Smuzhiyun } catch (e) { 21*4882a593Smuzhiyun document.write("Sorry, An error has occurred loading this page (project):"+e); 22*4882a593Smuzhiyun console.warn(e); 23*4882a593Smuzhiyun } 24*4882a593Smuzhiyun }); 25*4882a593Smuzhiyun</script> 26*4882a593Smuzhiyun 27*4882a593Smuzhiyun<div id="delete-project-modal" class="modal fade" tabindex="-1" role="dialog" data-backdrop="static" data-keyboard="false"> 28*4882a593Smuzhiyun <div class="modal-dialog"> 29*4882a593Smuzhiyun <div class="modal-content"> 30*4882a593Smuzhiyun <div class="modal-header"> 31*4882a593Smuzhiyun <h4>Are you sure you want to delete this project?</h4> 32*4882a593Smuzhiyun </div> 33*4882a593Smuzhiyun <div class="modal-body"> 34*4882a593Smuzhiyun <p>Deleting the <strong class="project-name"></strong> project 35*4882a593Smuzhiyun will:</p> 36*4882a593Smuzhiyun <ul> 37*4882a593Smuzhiyun <li>Cancel its builds currently in progress</li> 38*4882a593Smuzhiyun <li>Remove its configuration information</li> 39*4882a593Smuzhiyun <li>Remove its imported layers</li> 40*4882a593Smuzhiyun <li>Remove its custom images</li> 41*4882a593Smuzhiyun <li>Remove all its build information</li> 42*4882a593Smuzhiyun </ul> 43*4882a593Smuzhiyun </div> 44*4882a593Smuzhiyun <div class="modal-footer"> 45*4882a593Smuzhiyun <button type="button" class="btn btn-primary" id="delete-project-confirmed"> 46*4882a593Smuzhiyun <span data-role="submit-state">Delete project</span> 47*4882a593Smuzhiyun <span data-role="loading-state" style="display:none"> 48*4882a593Smuzhiyun <span class="fa-pulse"> 49*4882a593Smuzhiyun <i class="fa-pulse icon-spinner"></i> 50*4882a593Smuzhiyun </span> 51*4882a593Smuzhiyun Deleting project... 52*4882a593Smuzhiyun </span> 53*4882a593Smuzhiyun </button> 54*4882a593Smuzhiyun <button type="button" class="btn btn-link" data-dismiss="modal">Cancel</button> 55*4882a593Smuzhiyun </div> 56*4882a593Smuzhiyun </div><!-- /.modal-content --> 57*4882a593Smuzhiyun </div><!-- /.modal-dialog --> 58*4882a593Smuzhiyun</div> 59*4882a593Smuzhiyun 60*4882a593Smuzhiyun 61*4882a593Smuzhiyun<div class="row" id="project-page" style="display:none"> 62*4882a593Smuzhiyun <div class="col-md-6"> 63*4882a593Smuzhiyun <div class="well well-transparent" id="machine-section"> 64*4882a593Smuzhiyun <h3>Machine</h3> 65*4882a593Smuzhiyun 66*4882a593Smuzhiyun <p class="lead"><span id="project-machine-name"></span> <span class="glyphicon glyphicon-edit" id="change-machine-toggle"></span></p> 67*4882a593Smuzhiyun 68*4882a593Smuzhiyun <form id="select-machine-form" style="display:none;" class="form-inline"> 69*4882a593Smuzhiyun <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> 70*4882a593Smuzhiyun <div class="form-group" id="machine-input-form"> 71*4882a593Smuzhiyun <input class="form-control" id="machine-change-input" autocomplete="off" value="" data-provide="typeahead" data-minlength="1" data-autocomplete="off" type="text"> 72*4882a593Smuzhiyun </div> 73*4882a593Smuzhiyun <button id="machine-change-btn" class="btn btn-default" type="button">Save</button> 74*4882a593Smuzhiyun <a href="#" id="cancel-machine-change" class="btn btn-link">Cancel</a> 75*4882a593Smuzhiyun <span class="help-block text-danger" id="invalid-machine-name-help" style="display:none">A valid machine name cannot include spaces.</span> 76*4882a593Smuzhiyun <p class="form-link"><a href="{% url 'projectmachines' project.id %}">View compatible machines</a></p> 77*4882a593Smuzhiyun </form> 78*4882a593Smuzhiyun </div> 79*4882a593Smuzhiyun 80*4882a593Smuzhiyun <div class="well well-transparent" id="distro-section"> 81*4882a593Smuzhiyun <h3>Distro</h3> 82*4882a593Smuzhiyun 83*4882a593Smuzhiyun <p class="lead"><span id="project-distro-name"></span> <span class="glyphicon glyphicon-edit" id="change-distro-toggle"></span></p> 84*4882a593Smuzhiyun 85*4882a593Smuzhiyun <form id="select-distro-form" style="display:none;" class="form-inline"> 86*4882a593Smuzhiyun <span class="help-block">Distro suggestions come from the Layer Index</a></span> 87*4882a593Smuzhiyun <div class="form-group"> 88*4882a593Smuzhiyun <input class="form-control" id="distro-change-input" autocomplete="off" value="" data-provide="typeahead" data-minlength="1" data-autocomplete="off" type="text"> 89*4882a593Smuzhiyun </div> 90*4882a593Smuzhiyun <button id="distro-change-btn" class="btn btn-default" type="button">Save</button> 91*4882a593Smuzhiyun <a href="#" id="cancel-distro-change" class="btn btn-link">Cancel</a> 92*4882a593Smuzhiyun <p class="form-link"><a href="{% url 'projectdistros' project.id %}">View compatible distros</a></p> 93*4882a593Smuzhiyun </form> 94*4882a593Smuzhiyun </div> 95*4882a593Smuzhiyun 96*4882a593Smuzhiyun {% if not project_specific %} 97*4882a593Smuzhiyun <div class="well well-transparent"> 98*4882a593Smuzhiyun <h3>Most built recipes</h3> 99*4882a593Smuzhiyun 100*4882a593Smuzhiyun <div class="alert alert-info" style="display:none" id="no-most-built"> 101*4882a593Smuzhiyun <h4>You haven't built any recipes yet</h4> 102*4882a593Smuzhiyun <p class="form-link"><a href="{% url 'projectimagerecipes' project.id %}">Choose a recipe to build</a></p> 103*4882a593Smuzhiyun </div> 104*4882a593Smuzhiyun 105*4882a593Smuzhiyun <ul class="list-unstyled lead" id="freq-build-list"> 106*4882a593Smuzhiyun </ul> 107*4882a593Smuzhiyun <button class="btn btn-primary" id="freq-build-btn" disabled="disabled">Build selected recipes</button> 108*4882a593Smuzhiyun </div> 109*4882a593Smuzhiyun {% endif %} 110*4882a593Smuzhiyun 111*4882a593Smuzhiyun <div class="well well-transparent"> 112*4882a593Smuzhiyun <h3>Project release</h3> 113*4882a593Smuzhiyun 114*4882a593Smuzhiyun <p class="lead"><span id="project-release-title"></span> 115*4882a593Smuzhiyun 116*4882a593Smuzhiyun <!-- Comment out the ability to change the project release, until we decide what to do with this functionality --> 117*4882a593Smuzhiyun 118*4882a593Smuzhiyun <!--i title="" data-original-title="" id="release-change-toggle" class="icon-pencil"></i--> 119*4882a593Smuzhiyun </p> 120*4882a593Smuzhiyun 121*4882a593Smuzhiyun <!-- Comment out the ability to change the project release, until we decide what to do with this functionality --> 122*4882a593Smuzhiyun 123*4882a593Smuzhiyun <!--form class="form-inline" id="change-release-form" style="display:none;"> 124*4882a593Smuzhiyun <select></select> 125*4882a593Smuzhiyun <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> 126*4882a593Smuzhiyun </form--> 127*4882a593Smuzhiyun </div> 128*4882a593Smuzhiyun </div> 129*4882a593Smuzhiyun 130*4882a593Smuzhiyun <div class="col-md-6"> 131*4882a593Smuzhiyun <div class="well well-transparent" id="layer-container"> 132*4882a593Smuzhiyun <h3>Layers <span class="counter">(<span id="project-layers-count"></span>)</span> 133*4882a593Smuzhiyun <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> 134*4882a593Smuzhiyun </h3> 135*4882a593Smuzhiyun 136*4882a593Smuzhiyun <div class="alert alert-warning" id="no-layers-in-project" style="display:none"> 137*4882a593Smuzhiyun <h4>This project has no layers</h4> 138*4882a593Smuzhiyun In order to build this project you need to add some layers first. For that you can: 139*4882a593Smuzhiyun <ul> 140*4882a593Smuzhiyun <li><a href="{% url 'projectlayers' project.id %}">Choose from the layers compatible with this project</a></li> 141*4882a593Smuzhiyun <li><a href="{% url 'importlayer' project.id %}">Import a layer</a></li> 142*4882a593Smuzhiyun <li><a href="http://docs.yoctoproject.org/dev-manual/common-tasks.html#understanding-and-creating-layers" target="_blank">Read about layers in the documentation</a></li> 143*4882a593Smuzhiyun <li>Or type a layer name below</li> 144*4882a593Smuzhiyun </ul> 145*4882a593Smuzhiyun </div> 146*4882a593Smuzhiyun 147*4882a593Smuzhiyun <form class="form-inline"> 148*4882a593Smuzhiyun <div class="form-group"> 149*4882a593Smuzhiyun <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"> 150*4882a593Smuzhiyun </div> 151*4882a593Smuzhiyun <button id="add-layer-btn" class="btn btn-default" disabled>Add layer</button> 152*4882a593Smuzhiyun <p class="form-link"> 153*4882a593Smuzhiyun <a href="{% url 'projectlayers' project.id %}" id="view-compatible-layers">View compatible layers</a> 154*4882a593Smuzhiyun <span class="text-muted">|</span> 155*4882a593Smuzhiyun <a href="{% url 'importlayer' project.id %}">Import layer</a> 156*4882a593Smuzhiyun </p> 157*4882a593Smuzhiyun </form> 158*4882a593Smuzhiyun 159*4882a593Smuzhiyun <ul class="list-unstyled lead" id="layers-in-project-list"> 160*4882a593Smuzhiyun </ul> 161*4882a593Smuzhiyun </div> 162*4882a593Smuzhiyun 163*4882a593Smuzhiyun</div> 164*4882a593Smuzhiyun{% endblock %} 165