Преглед на файлове

Fix open/close of `block content-body` in some places

Scot Hacker преди 8 години
родител
ревизия
acb109439a
променени са 3 файла, в които са добавени 4 реда и са изтрити 4 реда
  1. 1 1
      bakerydemo/templates/base/form_page.html
  2. 1 1
      bakerydemo/templates/base/home_page.html
  3. 2 2
      bakerydemo/templates/breads/bread_page.html

+ 1 - 1
bakerydemo/templates/base/form_page.html

@@ -6,7 +6,7 @@
     {{ page.intro|richtext }}
 {% endblock content-header %}
 
-{% endblock content-body %}
+{% block content-body %}
     <form action="{% pageurl page %}" method="POST">
         {% csrf_token %}
         {{ form.as_p }}

+ 1 - 1
bakerydemo/templates/base/home_page.html

@@ -10,6 +10,6 @@
     </div>
 {% endblock content-header %}
 
-{% endblock content-body %}
+{% block content-body %}
     {{ page.body }}
 {% endblock content-body %}

+ 2 - 2
bakerydemo/templates/breads/bread_page.html

@@ -8,8 +8,8 @@
     </figure>
 {% endblock content-header %}
 
-{% endblock content %}
+{% block content-body %}
     <p>{{ page.origin }}</p>
     <p>{{ page.bread_type }}</p>
     {{ page.description }}
-{% endblock content %}
+{% endblock content-body %}