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