diff --git a/resource/css/styles.css b/resource/css/styles.css index 5ec7f9508..42e5828f4 100644 --- a/resource/css/styles.css +++ b/resource/css/styles.css @@ -5,10 +5,6 @@ li, td > a { font-size: 14px; } -label { - font-weight: normal; -} - h1, .prefLabel, .prefLabelLang, .notation { font-family: 'Fira Sans', sans-serif; font-size: 24px; @@ -777,10 +773,20 @@ span.xl-pref-label > img { /* feedback page ***************************/ -#feedback-fields > .missing-value { - border: 1px solid red; +#feedback-fields > p .missing-value { + border: 2px solid #D95F8A; +} + +#feedback-fields label { + font-weight: normal; } +#feedback-fields input::placeholder{ + font-weight: lighter; + font-style: italic; +} + + #message { height: 150px; } diff --git a/resource/js/docready.js b/resource/js/docready.js index 2300065e3..6c9f90097 100644 --- a/resource/js/docready.js +++ b/resource/js/docready.js @@ -833,19 +833,19 @@ $(function() { // DOCUMENT READY // Some form validation for the feedback form $("#send-feedback").click(function() { - $('#email').removeClass('missing-value'); $('#message').removeClass('missing-value'); + $('#msgsubject').removeClass('missing-value'); var emailMessageVal = $("#message").val(); - var emailAddress = $("#email").val(); + var emailSubject = $("#msgsubject").val(); var requiredFields = true; - if (emailAddress !== '' && emailAddress.indexOf('@') === -1) { - $("#email").addClass('missing-value'); - requiredFields = false; - } if (emailMessageVal === '') { $("#message").addClass('missing-value'); requiredFields = false; } + if (emailSubject === '') { + $("#msgsubject").addClass('missing-value'); + requiredFields = false; + } return requiredFields; }); diff --git a/view/feedback.twig b/view/feedback.twig index eb370ff3e..378998e68 100644 --- a/view/feedback.twig +++ b/view/feedback.twig @@ -39,11 +39,13 @@
- - + + +
++ +
- - {{ honeypot.generate('item-description', 'user-captcha')|raw }}