klintorg_site/__init__.py
2021-10-24 09:41:33 +03:00

35 lines
2.1 KiB
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

from flask import Flask, render_template
app = Flask(__name__, static_folder='static', static_url_path='')
menu = [
{"name": "Главная", "url": "home", "active": "active"},
{"name": "ЭЦП + Отчетность", "url": "astral", "active": "active"},
{"name": "Программы 1С", "url": "1c", "active": "disabled"},
{"name": "Онлайн-кассы", "url": "atol", "active": "disabled"},
{"name": "Контакты", "url": "contacts", "active": "active"}
]
product_astral = [{"name": "Для регистрации ККТ", "description": "Для регистрации ККТ на сайте налоговой инспекции и для государственных порталов", "price": "от 900", "img": "images/ofd.png", "alt": "Регистрация ККТ клин, эцп налоговая клин"},
{"name": "Для ЕГАИС", "description": "Квалифицированная ЭП для работы на портале ЕГАИС", "price": "от 2 000", "img": "images/egais.png", "alt": "ЭЦП для ЕГАИС Клин"},
{"name": "Для отчетности", "description": "Квалифицированная ЭП для сдачи отчетности", "price": "от 1 800", "img": "images/otchet.png", "alt": "ЭЦП сдача отчетности Клин"},
{"name": "Для торгов", "description": "Для участия в электронных торгах", "price": "от 5000", "img": "images/torgi.png", "alt": "ЭЦП для торгов в клину, эцп клин"}]
@app.route("/home")
@app.route("/")
def home():
return render_template("home.html", menu=menu, product=product_astral, title="УЦ Калуга Астрал в Клину")
@app.route("/astral")
def astral_page():
return render_template("astral.html", menu=menu, product=product_astral, title="ЭЦП в Клину")
@app.route("/contacts")
def contacts_page():
return render_template("contacts.html", menu=menu, title="Контакты")
if __name__ == '__main__':
app.run(debug=False)