Commit 9056eee7 authored by Danny Rehl's avatar Danny Rehl
Browse files

added validation errors in rick and morty form

parent f880dd42
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -6,3 +6,7 @@ body {
    background-image: url("../images/rickandmortybackground-800x800.png");
    background-repeat: repeat;
}

.error {
    color: red;
}
+2 −2
Original line number Diff line number Diff line
@@ -11,8 +11,8 @@
    <form action="" method="post" novalidate>
        {{ form.hidden_tag() }}
        <p>
            {{ form.paragraphs.label }}: {{ form.paragraphs }}<br>
            {{ form.citations.label }}: {{ form.citations }}
            {{ form.paragraphs.label }}: {{ form.paragraphs }} <span class="error">{{ form.paragraphs.errors | join(", ") }}</span><br>
            {{ form.citations.label }}: {{ form.citations }} <span class="error">{{ form.citations.errors | join(", ") }}</span>
        </p>
        <p>
            {{ form.submit() }}