feat: add editable company details page and nav link
This commit is contained in:
15
app.py
15
app.py
@@ -27,6 +27,15 @@ DEFAULT_SETTINGS = {
|
||||
"telegram_chat_id": "",
|
||||
"geo_primary": "Казань и Татарстан — выезд в день запроса",
|
||||
"geo_secondary": "Россия — удалённая поддержка",
|
||||
"company_legal_name": "ООО «ИнфраИТ»",
|
||||
"company_inn": "",
|
||||
"company_kpp": "",
|
||||
"company_ogrn": "",
|
||||
"company_bank_name": "",
|
||||
"company_bik": "",
|
||||
"company_account": "",
|
||||
"company_correspondent_account": "",
|
||||
"company_legal_address": "",
|
||||
}
|
||||
|
||||
app = Flask(__name__)
|
||||
@@ -204,6 +213,12 @@ def index():
|
||||
return render_template("index.html", success=success, error=error, settings=settings)
|
||||
|
||||
|
||||
@app.route("/company-details")
|
||||
def company_details():
|
||||
settings = get_settings()
|
||||
return render_template("company_details.html", settings=settings)
|
||||
|
||||
|
||||
@app.route("/admin/login", methods=["GET", "POST"])
|
||||
def admin_login():
|
||||
error = None
|
||||
|
||||
Reference in New Issue
Block a user