Skip to content

Commit

Permalink
8-cities_by_states.html
Browse files Browse the repository at this point in the history
  • Loading branch information
wizkiye committed Oct 24, 2022
1 parent 396456f commit 9a98ed1
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions web_flask/templates/8-cities_by_states.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<!DOCTYPE html>
<HTML lang="en">
<HEAD>
<TITLE>HBNB</TITLE>
</HEAD>
<BODY>
<H1>States</H1>
<UL>
{% for state in states|sort(attribute='name') %}
<LI>{{ state.id }}: <B>{{ state.name }}</B>
<UL>
{% for city in state.cities|sort(attribute='name') %}
<LI>{{ city.id }}: <B>{{ city.name }}</B></LI>
{% endfor %}
</UL>
</LI>
{% endfor %}
</UL>
</BODY>
</HTML>

0 comments on commit 9a98ed1

Please sign in to comment.