diff --git a/contactform/app.py b/contactform/app.py index 26d1bf3..3b3af4e 100644 --- a/contactform/app.py +++ b/contactform/app.py @@ -83,7 +83,7 @@ class LeadForm(FlaskForm): job_position = StringField("Job Position") phone = TelField() country = SelectField("Country", choices=load_countries(odoo_client)) - notes = TextAreaField("What can VSHN help you with?") + notes = TextAreaField("What can VSHN help you with?", render_kw={"rows": 5}) submit = SubmitField() @@ -140,12 +140,8 @@ def index(): logging.error(f"Couldn't create Lead in Odoo: {e}") if config.PRINTING_ENABLED: - name_splitted = form.name.data.replace(" ","\n") - label_text = ( - f"{config.LABEL_HEADER}\n" - "☺☺☺\n" - f"{name_splitted}" - ) + name_splitted = form.name.data.replace(" ", "\n") + label_text = f"{config.LABEL_HEADER}\n" "☺☺☺\n" f"{name_splitted}" parameters = LabelParameters( configuration=printer_config, @@ -190,7 +186,9 @@ def config_endpoint(): if form.validate_on_submit(): try: - config.CAMPAIGN_ID = odoo_client.find_id_by_name("utm.campaign", form.campaign_name.data) + config.CAMPAIGN_ID = odoo_client.find_id_by_name( + "utm.campaign", form.campaign_name.data + ) config.CAMPAIGN_NAME = form.campaign_name.data config.PRINTING_ENABLED = form.printing_enabled.data config.ODOO_CREATELEAD_ENABLED = form.odoo_leadcreation_enabled.data diff --git a/contactform/static/css/styles.css b/contactform/static/css/styles.css index 703feef..a993a32 100644 --- a/contactform/static/css/styles.css +++ b/contactform/static/css/styles.css @@ -7,6 +7,23 @@ @media (max-width: 767px) { .bg-image { - background-image: url('/static/images/background-mobile.webp'); + background-image: none; + background-color: #4081CB; } +} + +.container { + max-width: 850px; +} + +.form-label { + color: white; +} + +footer { + color: white; +} + +footer a { + color: white; } \ No newline at end of file diff --git a/contactform/static/favicon.png b/contactform/static/favicon.png index 0cf7ac1..48277fd 100644 Binary files a/contactform/static/favicon.png and b/contactform/static/favicon.png differ diff --git a/contactform/templates/base.html b/contactform/templates/base.html index 7a7d1d3..b0af14d 100644 --- a/contactform/templates/base.html +++ b/contactform/templates/base.html @@ -21,7 +21,8 @@