Add basic functionality

This commit is contained in:
Bogdan Bagno
2024-09-16 02:10:08 +01:00
parent 4def3ac97f
commit 8630218c41
16 changed files with 130 additions and 2 deletions
+11
View File
@@ -0,0 +1,11 @@
h1 Countries
table
tr
th Name
th ISO 3166-1 alpha-2 code
th ISO 3166-1 alpha-3 code
- for country in countries
tr
td = country.name
td = country.iso2
td = country.iso3
+9
View File
@@ -0,0 +1,9 @@
h1 = country.name
b ID &nbsp
= country.id
br
b ISO 3166-1 alpha-2 code &nbsp
= country.iso2
br
b ISO 3166-1 alpha-2 code &nbsp
= country.iso3
+15
View File
@@ -0,0 +1,15 @@
h1= person.name
table
thead
tr
th Country
th Arrival
th Departure
th Duration (days)
tbody
- for stay in person.stays
tr
td = stay[:country].name + " (" + stay[:country].iso2 + ")"
td = stay[:arrival]
td = stay[:departure]
td = stay[:duration]