diff --git a/RELEASE_NOTES b/RELEASE_NOTES index 023f6d0..6dd38be 100644 --- a/RELEASE_NOTES +++ b/RELEASE_NOTES @@ -1,3 +1,7 @@ +- Improvement: Updates 500 error page with js support form submission [#qubIT-Omnis-8481] +- Improvement: Adds 403 and 404 error pages [#qubIT-Omnis-8252] +- Improvement: Adds default userNotFound html [#qubIT-Omnis-8411] + 2.12.2 (05-11-2024) - Refactor: Replaces calls to helpdesk report controller with calls to default support request handler [#qubIT-Support-8445] diff --git a/base-theme/src/main/resources/resources/ULisboaThemeResources_en.properties b/base-theme/src/main/resources/resources/ULisboaThemeResources_en.properties index 9b5bb3d..4a06f71 100644 --- a/base-theme/src/main/resources/resources/ULisboaThemeResources_en.properties +++ b/base-theme/src/main/resources/resources/ULisboaThemeResources_en.properties @@ -35,4 +35,22 @@ label.orLoginWith=Or login with label.quality.mode=Quality Environment: All changes made will be lost on the next update label.development.mode=Development Environment -label.database.last.tick=Data from: \ No newline at end of file +label.database.last.tick=Data from: + +label.error.backButtonCaption=Back to Homepage + +#Error 403 labels +title.not.authorized = Unauthorized +error.not.authorized = You are not authorized to view this information. + +#Error 404 labels +title.not.found = Resource Not Found +error.not.found = Resource not found +error.not.found.message = Please verify the URL and that you are allowed to view the selected content or try again later. + +#Error 500 labels +label.error.occurred=An error occured +label.error.occurred.detail=An unexpected error occured. We're sorry for the inconvenience. Please try again later. +label.error.500.successSupportSubmition=Report sent successfully! +label.error.500.errorSupportSubmition=Report submition failed, please try again. +label.error.500.reportError=Send us the error \ No newline at end of file diff --git a/base-theme/src/main/resources/resources/ULisboaThemeResources_pt.properties b/base-theme/src/main/resources/resources/ULisboaThemeResources_pt.properties index 45c599a..e00a76e 100644 --- a/base-theme/src/main/resources/resources/ULisboaThemeResources_pt.properties +++ b/base-theme/src/main/resources/resources/ULisboaThemeResources_pt.properties @@ -1,13 +1,13 @@ link.helpdeskReport = Apoio Fenix (Formulário) label.helpdesk.form = Formulário de Suporte -label.helpdesk.form.welcome = Este formulário serve para contactar o suporte técnico do sistema. Utilize-o se detectou um erro, tem uma sugestão/pedido ou uma dúvida de utilização. +label.helpdesk.form.welcome = Este formulário serve para contactar o suporte técnico do sistema. Utilize-o se detectou um erro, tem uma sugestão/pedido ou uma dívida de utilização. label.helpdesk.report.subject = Assunto label.helpdesk.report.description = Descrição label.helpdesk.report.description.tooltip = Seja o mais detalhado possível na descrição do problema. Se está a reportar um erro indique os passos necessários para o reproduzir, o resultado esperado e o resultado ocorrido. label.helpdesk.report.type = Tipo label.helpdesk.report.type.error = Erro label.helpdesk.report.type.request = Pedido -label.helpdesk.report.type.question = Dúvida +label.helpdesk.report.type.question = Dívida label.helpdesk.report.attachment = Anexo label.helpdesk.report.attachment.file.too.large = O tamanho do anexo carregado excede o tamanho máximo (5MB)! label.helpdesk.report.attachment.tooltip = De forma a ajudar a equipa de suporte a entender de forma mais precisa a situação reportada, anexe um ficheiro (com o máximo de 5 MB) que ilustre o problema identificado. @@ -36,3 +36,21 @@ label.orLoginWith=Ou fazer login com label.quality.mode=Ambiente de Qualidade: As alterações realizadas serão perdidas na próxima actualização label.development.mode=Ambiente de Desenvolvimento label.database.last.tick=Dados de: + +label.error.backButtonCaption=Voltar à página inicial + +#Error 403 labels +title.not.authorized = Não autorizado +error.not.authorized = Não tem autorização para visualizar esta informação. + +#Error 404 labels +title.not.found = Recurso Não Encontrado +error.not.found = O recurso que procura não foi encontrado +error.not.found.message = Por favor verifique que o URL está correcto e que tem permissão para aceder ao conteúdo, ou tente mais tarde. + +#Error 500 labels +label.error.occurred=Ocorreu um erro +label.error.occurred.detail=Aconteceu um erro inesperado. Lamentos qualquer inconveniente causado. Por favor, tente mais tarde. +label.error.500.successSupportSubmition=Pedido submetido com sucesso! +label.error.500.errorSupportSubmition=Pedido não enviado, por favor tente novamente. +label.error.500.reportError=Envie-nos o erro \ No newline at end of file diff --git a/base-theme/src/main/webapp/themes/ulisboa/403.html b/base-theme/src/main/webapp/themes/ulisboa/403.html new file mode 100644 index 0000000..f384e7f --- /dev/null +++ b/base-theme/src/main/webapp/themes/ulisboa/403.html @@ -0,0 +1,98 @@ + + + + + + + {{i18n('resources.ULisboaThemeResources', 'title.not.authorized')}} + + + + + + + + +
+
+
+ {% if logoResource != null %} + + {% else %} + + {% endif %} +
+
+ {{i18n('resources.ULisboaThemeResources', 'title.not.authorized')}} +
+
+
+

{{i18n('resources.ULisboaThemeResources', 'error.not.authorized')}}

+
+ {% if currentUser is empty %} +

Login

+ + {% else %} +

{{i18n('resources.ULisboaThemeResources', 'label.error.backButtonCaption')}}

+ {% endif %} +
+
+ diff --git a/base-theme/src/main/webapp/themes/ulisboa/404.html b/base-theme/src/main/webapp/themes/ulisboa/404.html new file mode 100644 index 0000000..ca68b3c --- /dev/null +++ b/base-theme/src/main/webapp/themes/ulisboa/404.html @@ -0,0 +1,97 @@ + + + + + + + {{i18n('resources.ULisboaThemeResources', 'title.not.found')}} + + + + + + + + +
+
+
+ {% if logoResource != null %} + + {% else %} + + {% endif %} +
+
+ {{i18n('resources.ULisboaThemeResources', 'error.not.found')}} +
+
+
+

{{i18n('resources.ULisboaThemeResources', 'error.not.found.message')}}

+
+ {% if currentUser is empty %} +

Login

+ + {% else %} +

{{i18n('resources.ULisboaThemeResources', 'label.error.backButtonCaption')}}

+ {% endif %} +
+
+ diff --git a/base-theme/src/main/webapp/themes/ulisboa/500.html b/base-theme/src/main/webapp/themes/ulisboa/500.html index 55d5b50..250d093 100644 --- a/base-theme/src/main/webapp/themes/ulisboa/500.html +++ b/base-theme/src/main/webapp/themes/ulisboa/500.html @@ -1,162 +1,272 @@ - - - {{i18n('resources.BennuPortalResources', 'label.error.occurred')}} · {{config.applicationTitle.content}} - - - - - - -
-
- - +{% if config.fenixeduPortalConfiguration.supportActive and config.fenixeduPortalConfiguration.supportAccessibleToCurrentUser %} + + + + {{i18n('resources.BennuPortalResources', 'label.error.occurred')}} · {{config.applicationTitle.content}} + + + + + + + + + + + + + + + +
+
+ {% if logoResource != null %} + + {% else %} + + {% endif %} + {{i18n('resources.BennuPortalResources', 'label.error.occurred')}} - + +
+
+

+ {{i18n('resources.ULisboaThemeResources', 'label.error.page.welcome')}} +

+
+ {% for formField in formFields %} + {% if formField.hidden %} + + {% elseif formField.textArea %} +
+ +
+ +
-
-

- {{i18n('resources.ULisboaThemeResources', 'label.error.page.welcome')}} -

- - - -
- -
- {% if loggedUser is null %} - - {% else %} - - {% endif %} -
-
-
- -
- -
-
-
- -
- - {{i18n('resources.ULisboaThemeResources', 'label.error.page.help')}} -
-
- - - + {% elseif formField.options is not empty %} +
+ +
+ +
-
-

{{i18n('resources.ULisboaThemeResources', 'label.helpdesk.report.submitted')}}

- {{i18n('resources.ULisboaThemeResources', 'label.helpdesk.report.submitted.body')}} {{config.supportEmailAddress}}. + {% else %} +
+ +
+ +
-
- + {% endif %} + {% endfor %} + + + +
+
+ + + + + +{% else %} + + + + + {{i18n('resources.ULisboaThemeResources', 'label.error.occurred')}} + + + + + + - - \ No newline at end of file + +
+
+
+ {% if logoResource != null %} + + {% else %} + + {% endif %} +
+
+ {{i18n('resources.ULisboaThemeResources', 'label.error.occurred')}} +
+
+
+

{{i18n('resources.ULisboaThemeResources', 'label.error.occurred.detail')}}

+ {% if currentUser is null %} +
+

Login

+ + {% endif %} +
+
+ + + +{% endif %}