ciclos

commit 0e7f53f2b17013b72817ae7d0571068ad868e727

Author: Pedro Lucas Porcellis <pedrolucasporcellis@gmail.com>

Use the default layout on the cycle page

 src/templates/cycle.html | 5 ++++-


diff --git a/src/templates/cycle.html b/src/templates/cycle.html
index aaf644830a6f5067f25e6911fd2c6f1edf155e4a..98a069feff8240d0f2ecfadb8261d6745a166573 100644
--- a/src/templates/cycle.html
+++ b/src/templates/cycle.html
@@ -1,3 +1,5 @@
+{% extends 'layout.html' %}
+{% block body %}
 <section class="a">
   <h1>{{ cycle.name }}</h1>
   <em>{{ cycle.description }}</em> 
@@ -30,7 +32,7 @@         {% for product in products %}
         <tr>
           <td>
             {% if current_order %}
-                <input type="checkbox" name="product_ids" {{ 'checked' if product.id in selected_product_ids }} value="{{product.id}}"> 
+            <input type="checkbox" name="product_ids" {{ 'checked' if product.id in selected_product_ids }} {{ 'disabled' if current_order.status.value == 'confirmed' }} value="{{product.id}}"> 
               {% endif %}
             </td>
             <td> {{ product.title }} </td>
@@ -63,3 +65,4 @@       {% endif %}
     </div>
   </form> 
 </section>
+{% endblock %}