Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | {% extends "baseprojectpage.html" %} |
| 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) { |
| 21 | document.write("Sorry, An error has occurred loading this page"); |
| 22 | console.warn(e); |
| 23 | } |
| 24 | }); |
| 25 | </script> |
| 26 | |
| 27 | <div id="change-release-modal" class="modal hide fade in" tabindex="-1" role="dialog" aria-labelledby="change-release-modal" aria-hidden="false"> |
| 28 | <div class="modal-header"> |
| 29 | <button type="button" class="close" data-dismiss="modal" aria-hidden="true">x</button> |
| 30 | <h3>Changing Yocto Project release to <span class="proposed-release-change-name"></span></h3> |
| 31 | </div> |
| 32 | <div class="modal-body"> |
| 33 | <p>The following added layers do not exist for <span class="proposed-release-change-name"></span>: </p> |
| 34 | <ul id="layers-to-remove-list"> |
| 35 | </ul> |
| 36 | <p>If you change the Yocto Project release to <span class="proposed-release-change-name"></span>, the above layers will be deleted from your added layers.</p> |
| 37 | </div> |
| 38 | <div class="modal-footer"> |
| 39 | <button id="change-release-and-rm-layers" data-dismiss="modal" type="submit" class="btn btn-primary">Change release and delete layers</button> |
| 40 | <button class="btn" data-dismiss="modal" aria-hidden="true">Cancel</button> |
| 41 | </div> |
| 42 | </div> |
| 43 | |
| 44 | |
| 45 | <div class="row-fluid" id="project-page" style="display:none"> |
| 46 | <div class="span6"> |
| 47 | <div class="well well-transparent" id="machine-section"> |
| 48 | <h3>Machine</h3> |
| 49 | |
| 50 | <p class="lead"><span id="project-machine-name"></span> <i title="" data-original-title="" id="change-machine-toggle" class="icon-pencil"></i></p> |
| 51 | |
| 52 | <form id="select-machine-form" style="display:none;"> |
| 53 | <div class="alert alert-info"> |
| 54 | <strong>Machine changes have a big impact on build outcome.</strong> You cannot really compare the builds for the new machine with the previous ones. |
| 55 | </div> |
| 56 | |
| 57 | <div class="input-append"> |
| 58 | <input id="machine-change-input" autocomplete="off" value="" data-provide="typeahead" data-minlength="1" data-autocomplete="off" type="text"> |
| 59 | <button id="machine-change-btn" class="btn" type="button">Save</button> <a href="#" id="cancel-machine-change" class="btn btn-link">Cancel</a> |
| 60 | </div> |
| 61 | |
| 62 | <p><a href="{% url 'projectmachines' project.id %}" class="link">View compatible machines</a></p> |
| 63 | </form> |
| 64 | </div> |
| 65 | |
| 66 | <div class="well well-transparent"> |
| 67 | <h3>Most built recipes</h3> |
| 68 | |
| 69 | <div class="alert alert-info" style="display:none" id="no-most-built"> |
| 70 | <span class="lead">You haven't built any recipes yet</span> |
Patrick Williams | f1e5d69 | 2016-03-30 15:21:19 -0500 | [diff] [blame] | 71 | <p style="margin-top: 10px;"><a href="{% url 'projectsoftwarerecipes' project.id %}">Choose a recipe to build</a></p> |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 72 | </div> |
| 73 | |
| 74 | <ul class="unstyled configuration-list" id="freq-build-list"> |
| 75 | </ul> |
| 76 | <button class="btn btn-primary" id="freq-build-btn" disabled="disabled">Build selected recipes</button> |
| 77 | </div> |
| 78 | |
| 79 | <div class="well well-transparent"> |
| 80 | <h3>Project release</h3> |
| 81 | |
| 82 | <p class="lead"><span id="project-release-title"></span> <i title="" data-original-title="" id="release-change-toggle" class="icon-pencil"></i></p> |
| 83 | |
| 84 | <form class="form-inline" id="change-release-form" style="display:none;"> |
| 85 | <select></select> |
| 86 | <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> |
| 87 | </form> |
| 88 | </div> |
| 89 | </div> |
| 90 | |
| 91 | <div class="span6"> |
| 92 | <div class="well well-transparent" id="layer-container"> |
| 93 | <h3>Layers <span class="muted counter">(<span id="project-layers-count"></span>)</span> |
| 94 | <i data-original-title="OpenEmbedded organises metadata into modules called 'layers'. Layers allow you to isolate different types of customizations from each other. <a href='http://www.yoctoproject.org/docs/current/dev-manual/dev-manual.html#understanding-and-creating-layers' target='_blank'>More on layers</a>" class="icon-question-sign get-help heading-help" title=""></i> |
| 95 | </h3> |
| 96 | |
| 97 | <div class="alert lead" id="no-layers-in-project" style="display:none"> |
| 98 | You need to add some layers. For that you can: |
| 99 | <ul> |
| 100 | <li><a href="{% url 'projectlayers' project.id %}">View all layers compatible with this project</a></li> |
| 101 | <li><a href="{% url 'importlayer' project.id %}">Import a layer</a></li> |
| 102 | <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> |
| 103 | </ul> |
| 104 | <p>Or type a layer name below.</p> |
| 105 | </div> |
| 106 | |
| 107 | <form style="margin-top:20px"> |
| 108 | <!--div class="control-group error"--> |
| 109 | |
| 110 | <div class="input-append"> |
| 111 | <input id="layer-add-input" autocomplete="off" placeholder="Type a layer name" data-minlength="1" data-autocomplete="off" data-provide="typeahead" data-source="" type="text"> |
| 112 | <button id="add-layer-btn" class="btn" disabled>Add</button> |
| 113 | </div> |
| 114 | |
| 115 | <div id="import-alert" class="alert alert-info" style="display:none;"> |
| 116 | Toaster does not know about this layer. Please <a href="#">import it</a> |
| 117 | </div> |
| 118 | |
| 119 | <p> |
| 120 | <a href="{% url 'projectlayers' project.id %}" id="view-compatible-layers">View compatible layers</a> |
| 121 | <i data-original-title="View all the layers you can build with the release selected for this project, which is Yocto Project master" class="icon-question-sign get-help" title=""></i> |
| 122 | | <a href="{% url 'importlayer' project.id %}">Import layer</a> |
| 123 | </p> |
| 124 | </form> |
| 125 | |
| 126 | <ul class="unstyled configuration-list" id="layers-in-project-list"> |
| 127 | </ul> |
| 128 | </div> |
| 129 | </div> |
| 130 | </div> |
| 131 | {% endblock %} |