diff --git a/invenio_theme_tugraz/assets/semantic-ui/js/invenio_theme_tugraz/theme.js b/invenio_theme_tugraz/assets/semantic-ui/js/invenio_theme_tugraz/theme.js index 2b7b2b6..85c1217 100644 --- a/invenio_theme_tugraz/assets/semantic-ui/js/invenio_theme_tugraz/theme.js +++ b/invenio_theme_tugraz/assets/semantic-ui/js/invenio_theme_tugraz/theme.js @@ -8,8 +8,9 @@ $(function() { $.getScript("https://ub-support.tugraz.at/assets/form/form.js", () => { $('#feedback-form').ZammadForm({ - messageTitle: 'Feedback Form', - messageSubmit: 'Send', + messageTitle: 'Contact us', + showTitle: true, + messageSubmit: 'Submit', messageThankYou: 'Thank you for your message, (#%s). We will get back to you as quickly as possible!', modal: true }); diff --git a/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/frontpage.less b/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/frontpage.less index b504117..2f81af0 100644 --- a/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/frontpage.less +++ b/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/frontpage.less @@ -44,3 +44,46 @@ h2 { .badges { float: right; } + +/*Zammad form**/ +.zammad-form{ + h2{ + text-align: center; + } + .form-group{ + label{ + color: @tugrazBlack; + } + input.form-control{ + height: 30px; + // width: auto; + border-radius: 0; + font-family: "Source Sans Pro"; + background: @primaryLinkBackgroundInverted; + border: 1px solid rgba(34, 36, 38, 0.15); + } + textarea{ + border: 1px solid rgba(34, 36, 38, 0.15); + } + } + .btn{ + width: 100% !important; + cursor: pointer; + font-family: "Source Sans Pro"; + min-height: 1em; + line-height: 1em; + padding: 0.78571429em 1.5em 0.78571429em; + background: @greyLight none; + border: 0; + } + .btn:hover{ + background: @primaryLinkHoverBackground; + color: @primaryButton; + font-size: 1rem; + font-weight: bold; + } +}:focus{ + outline: thin; + outline-style: solid; + outline-color: @outlineColor; +} diff --git a/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/variables.less b/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/variables.less index 5b746ac..6786c72 100644 --- a/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/variables.less +++ b/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/variables.less @@ -65,3 +65,6 @@ // record specific @recordVersionBackground : #f2f2f2; @randomRecordsFrontpageArticle: rgba(34, 36, 38, .15); + +// input +@outlineColor: #85B7D9; diff --git a/invenio_theme_tugraz/config.py b/invenio_theme_tugraz/config.py index a4f7496..5a1e498 100644 --- a/invenio_theme_tugraz/config.py +++ b/invenio_theme_tugraz/config.py @@ -26,6 +26,9 @@ INVENIO_THEME_TUGRAZ_ICON = "images/icon_use.png" INVENIO_THEME_TUGRAZ_LOGIN_IMG = "images/login_logo.png" """TU Logo for forms""" +INVENIO_THEME_TUGRAZ_CONTACT_FORM = False +"""Enable/Disable Contact form.""" + # Invenio-theme # ============ # See https://invenio-theme.readthedocs.io/en/latest/configuration.html diff --git a/invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html b/invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html index db3f8ee..1f4acd3 100644 --- a/invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html +++ b/invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html @@ -126,13 +126,14 @@
-

{{_ ("Need help?")}}

- +

{{_ ("Need help?")}}

+ {%- if config.INVENIO_THEME_TUGRAZ_CONTACT_FORM %}
{{_ ("Contact us")}}
+ {%- endif %}

{{config.THEME_SITENAME}} {{_ ("prioritizes all Recent uploads.")}}