diff --git a/curriculum/section14/lectures/07_render_wtform_with_jinja_macros/README.md b/curriculum/section14/lectures/07_render_wtform_with_jinja_macros/README.md index 03491c29..5f4fa1e0 100644 --- a/curriculum/section14/lectures/07_render_wtform_with_jinja_macros/README.md +++ b/curriculum/section14/lectures/07_render_wtform_with_jinja_macros/README.md @@ -50,7 +50,7 @@ For now, the `POST` request does nothing. Let's render our form first, and handl ## How to render a WTForms field -First things first, let's create our `templates/new_form.html` file. This is where our form will live: +First things first, let's create our `templates/new_movie.html` file. This is where our form will live: ```jinja2 {% extends "layout.html" %} @@ -131,7 +131,7 @@ Let's create `templates/macros/fields.html` and place this inside it: {% endmacro %} ``` -Now we can just import that from `templates/new_form.html` and use it three times, once per field: +Now we can just import that from `templates/new_movie.html` and use it three times, once per field: ```jinja2 {% from "macros/fields.html" import render_text_field %} @@ -386,4 +386,4 @@ Finally, we need to add button styling: And with that, we're done! Quite a lot of CSS, but not many new properties that you haven't seen before. -As usual, I recommend you code along with me and play around with the CSS properties we're using. Make the design your own by changing certain parts, and truly understand what each property is doing! \ No newline at end of file +As usual, I recommend you code along with me and play around with the CSS properties we're using. Make the design your own by changing certain parts, and truly understand what each property is doing!