added default country

This commit is contained in:
2026-04-01 09:42:54 +02:00
parent 1d7f31eb96
commit 586ac4c5c2
2 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -150,9 +150,9 @@ def check_polish_wl(nip: str):
}
@app.get("/")
def index():
return render_template("company_data.html")
@app.get("/company_data/<country>")
def index(country):
return render_template("company_data.html", country=country)
@app.get("/api/company_lookup")
+3 -3
View File
@@ -14,9 +14,9 @@
<div class="form-grid">
<div class="row">
<select id="country">
<option value="BE">Belgium</option>
<option value="HR">Croatia</option>
<option value="PL">Poland</option>
<option value="BE" {% if country == "BE" %}selected{% endif %}>Belgium</option>
<option value="HR" {% if country == "HR" %}selected{% endif %}>Croatia</option>
<option value="PL" {% if country == "PL" %}selected{% endif %}>Poland</option>
</select>
<input id="vat_number" type="text" placeholder="VAT number">
<button type="button" onclick="searchCompany()">Search</button>