Skip to content

Commit 05a1311

Browse files
committed
fix listings in chapter15, update ch15 ch16 submodules
1 parent b6fa923 commit 05a1311

File tree

5 files changed

+24
-20
lines changed

5 files changed

+24
-20
lines changed

chapter_15_advanced_forms.asciidoc

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -815,25 +815,25 @@ use Django instead, it seems like we need to bring back our custom
815815
- {{ form.text }}
816816
- {% csrf_token %}
817817
+ <form
818-
+ class="was-validated"
819-
+ method="POST"
820-
+ action="{% block form_action %}{% endblock %}"
818+
+ class="was-validated" <1>
819+
+ method="POST"
820+
+ action="{% block form_action %}{% endblock %}"
821821
+ >
822-
+ {% csrf_token %}
823-
+ <input
824-
+ id="id_text"
825-
+ name="text"
826-
+ class="form-control
827-
+ form-control-lg
828-
+ {% if form.errors %}is-invalid{% endif %}"
829-
+ placeholder="Enter a to-do item"
830-
+ value="{{ form.text.value }}"
831-
+ aria-describedby="id_text_feedback"
832-
+ required
833-
+ />
822+
+ {% csrf_token %}
823+
+ <input <2>
824+
+ id="id_text"
825+
+ name="text"
826+
+ class="form-control
827+
+ form-control-lg
828+
+ {% if form.errors %}is-invalid{% endif %}" <2>
829+
+ placeholder="Enter a to-do item"
830+
+ value="{{ form.text.value }}"
831+
+ aria-describedby="id_text_feedback"
832+
+ required
833+
+ />
834834
{% if form.errors %}
835835
- <div class="invalid-feedback">{{ form.errors.text }}</div>
836-
+ <div class="invalid-feedback">{{ form.errors.text.0 }}</div>
836+
+ <div class="invalid-feedback">{{ form.errors.text.0 }}</div> <3>
837837
{% endif %}
838838
</form>
839839
</div>

chapter_16_javascript.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ The functional test fails appropriately:
100100

101101

102102

103-
[role="small-code dofirst-ch16l000"]
103+
[role="small-code"]
104104
[subs="specialcharacters,macros"]
105105
----
106106
$ pass:quotes[*python src/manage.py test functional_tests.test_list_item_validation.\

pygments-default.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
pre { line-height: 125%; }
2+
td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
3+
span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
4+
td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
5+
span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
16
pre.pygments .hll { background-color: #ffffcc }
27
pre.pygments { background: #f8f8f8; }
38
pre.pygments .tok-c { color: #3D7B7B; font-style: italic } /* Comment */
@@ -12,7 +17,6 @@ pre.pygments .tok-c1 { color: #3D7B7B; font-style: italic } /* Comment.Single */
1217
pre.pygments .tok-cs { color: #3D7B7B; font-style: italic } /* Comment.Special */
1318
pre.pygments .tok-gd { color: #A00000 } /* Generic.Deleted */
1419
pre.pygments .tok-ge { font-style: italic } /* Generic.Emph */
15-
pre.pygments .tok-ges { font-weight: bold; font-style: italic } /* Generic.EmphStrong */
1620
pre.pygments .tok-gr { color: #E40000 } /* Generic.Error */
1721
pre.pygments .tok-gh { color: #000080; font-weight: bold } /* Generic.Heading */
1822
pre.pygments .tok-gi { color: #008400 } /* Generic.Inserted */

0 commit comments

Comments
 (0)