File tree 2 files changed +22
-10
lines changed
2 files changed +22
-10
lines changed Original file line number Diff line number Diff line change 1
- < form action ="{{ url_for('user') }} " method ="post ">
2
- < label for ="name "> Name</ label >
3
- < input id ="name " type ="text " name ="name " placeholder ="John Smith "/>
4
- < label for ="email "> Email</ label >
5
- < input id ="
email "
type ="
text "
name ="
email "
placeholder ="
[email protected] "
/>
6
- < button type ="submit "> Save</ button >
7
- </ form >
8
- {% for u in users %}
9
- < p > {{ u.name }} -- {{ u.email }}</ p >
10
- {% endfor %}
1
+ {% extends "layout.html" %}
2
+
3
+ {% block body %}
4
+ < form action ="{{ url_for('user') }} " method ="post ">
5
+ < label for ="name "> Name</ label >
6
+ < input id ="name " type ="text " name ="name " placeholder ="John Smith "/>
7
+ < label for ="email "> Email</ label >
8
+ < input id ="
email "
type ="
text "
name ="
email "
placeholder ="
[email protected] "
/>
9
+ < button type ="submit "> Save</ button >
10
+ </ form >
11
+ {% for u in users %}
12
+ < p > {{ u.name }} -- {{ u.email }}</ p >
13
+ {% endfor %}
14
+ {% endblock %}
Original file line number Diff line number Diff line change
1
+ <!DOCTYPE html>
2
+ < html lang ="en ">
3
+ < head >
4
+ </ head >
5
+ < body >
6
+ {% block body %}{% endblock %}
7
+ </ body >
8
+ </ html >
You can’t perform that action at this time.
0 commit comments