Skip to content

Commit

Permalink
Merge pull request #76 from gm3dmo/w1
Browse files Browse the repository at this point in the history
Adding missing template
  • Loading branch information
gm3dmo authored Oct 23, 2023
2 parents 83dbf27 + 4039d36 commit 54b5bd5
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions templates/cmp/countries.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{% extends "base.html" %}
{% load static crispy_forms_tags %}
{% block title %}Countries{% endblock %}
{% block content %}

<h1>Countries</h1>

<table>
<thead>
<tr>
<th>Common Name</th>
<th>Flag</th>
</tr>
</thead>
<tbody>
{% for country in countries %}
<tr>
<td>{{ country.name_common }}</td>
<td><h2>{{ country.flag }}</h2></td>
</tr>
{% endfor %}
</tbody>
</table>


{% endblock %}

0 comments on commit 54b5bd5

Please sign in to comment.