Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Create Page | FrontEnd Design
Flask Intensive Course: Web Development with Python

Create PageCreate Page

We have the option to move the form for creating a new recipe to a separate page. In doing so, we'll leave a convenient button for creating a new recipe on the recipe.html file.

To get started, let's create a fresh file named new-recipe.html. You'll find that it's going to look quite similar to what we had in recipes.html. So, go ahead and copy that piece of code and transfer it to the new file from the very beginning.

The file's name in the example below doesn't correspond to the file's name in our project.

html

index.html

css

index.css

js

index.js

Now we need to create a route first to actually render this template.

Now let's add a button to the recipe.html template for 'New recipe'.

Все було зрозуміло?

Секція 4. Розділ 7
course content

Зміст курсу

Flask Intensive Course: Web Development with Python

Create PageCreate Page

We have the option to move the form for creating a new recipe to a separate page. In doing so, we'll leave a convenient button for creating a new recipe on the recipe.html file.

To get started, let's create a fresh file named new-recipe.html. You'll find that it's going to look quite similar to what we had in recipes.html. So, go ahead and copy that piece of code and transfer it to the new file from the very beginning.

The file's name in the example below doesn't correspond to the file's name in our project.

html

index.html

css

index.css

js

index.js

Now we need to create a route first to actually render this template.

Now let's add a button to the recipe.html template for 'New recipe'.

Все було зрозуміло?

Секція 4. Розділ 7
some-alt