added default country
This commit is contained in:
@@ -150,9 +150,9 @@ def check_polish_wl(nip: str):
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@app.get("/")
|
@app.get("/company_data/<country>")
|
||||||
def index():
|
def index(country):
|
||||||
return render_template("company_data.html")
|
return render_template("company_data.html", country=country)
|
||||||
|
|
||||||
|
|
||||||
@app.get("/api/company_lookup")
|
@app.get("/api/company_lookup")
|
||||||
|
|||||||
@@ -14,9 +14,9 @@
|
|||||||
<div class="form-grid">
|
<div class="form-grid">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<select id="country">
|
<select id="country">
|
||||||
<option value="BE">Belgium</option>
|
<option value="BE" {% if country == "BE" %}selected{% endif %}>Belgium</option>
|
||||||
<option value="HR">Croatia</option>
|
<option value="HR" {% if country == "HR" %}selected{% endif %}>Croatia</option>
|
||||||
<option value="PL">Poland</option>
|
<option value="PL" {% if country == "PL" %}selected{% endif %}>Poland</option>
|
||||||
</select>
|
</select>
|
||||||
<input id="vat_number" type="text" placeholder="VAT number">
|
<input id="vat_number" type="text" placeholder="VAT number">
|
||||||
<button type="button" onclick="searchCompany()">Search</button>
|
<button type="button" onclick="searchCompany()">Search</button>
|
||||||
|
|||||||
Reference in New Issue
Block a user