Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Correção dos labels do modal reportar erro. #216

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions opac/webapp/static/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ var Portal = {

$(".floatingBtnError, .floatingBtnErrorHamburguerMenu").on("click", function(e) {
e.preventDefault();
console.log('cliquei para abrir o modal de reportar erro');
//console.log('cliquei para abrir o modal de reportar erro');
var url = $(location).attr('href');
$.get("/error_mail/", {"url": url}, function(html) {
$("#error_modal_id").html(html);
Expand Down Expand Up @@ -1251,7 +1251,7 @@ var Portal = {

// Verifica se lastDays é um número válido
if (isNaN(lastDays) || lastDays <= 0) {
console.error('O valor de lastDays deve ser um número positivo.');
//console.error('O valor de lastDays deve ser um número positivo.');
return; // Interrompe a execução se lastDays não for válido
}

Expand Down
2 changes: 1 addition & 1 deletion opac/webapp/static/js/scielo-bundle-min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion opac/webapp/static/maps/scielo-bundle-min.js.map

Large diffs are not rendered by default.

24 changes: 12 additions & 12 deletions opac/webapp/templates/includes/error_form.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h1 class="h4 modal-title">{% trans %} Reportar erro {% endtrans %}</h1>
<h1 class="h4 modal-title">{% trans %}Acessibilidade / Reportar Erro {% endtrans %}</h1>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>

Expand All @@ -18,35 +18,35 @@ <h1 class="h4 modal-title">{% trans %} Reportar erro {% endtrans %}</h1>
<div class="modal-body">

<div class="mb-0">
<label class="form-label">{% trans %}Seu Nome{% endtrans %}*</label>
<label class="form-label">{% trans %}Seu Nome{% endtrans %} *</label>
{{ g.error.name(class="form-control valid", placeholder=_("Digite seu Nome")) }}
<label class="form-label" id="{{g.error.name.name}}_error"></label>
</div>

<div class="mb-0">
<label class="form-label">{% trans %}Seu e-mail{% endtrans %}*</label>
{{ g.error.your_email(class="form-control valid", placeholder="Digite seu e-mail") }}
<label class="form-label">{% trans %}Seu e-mail{% endtrans %} *</label>
{{ g.error.your_email(class="form-control valid", placeholder=_("Digite seu e-mail")) }}
<label class="form-label" id="{{g.error.your_email.name}}_error"></label>
</div>

<div class="mb-0">
<label class="form-label">{% trans %}Erro referente{% endtrans %}:</label>

<label class="form-label">{% trans %}Erro referente a{% endtrans %}:</label>
<div class="form-check">
<input class="form-check-input" type="radio" name="error_type" id="error_type1" value="content" checked>
<label class="form-check-label" for="error_type1">{% trans %}ao conteúdo{% endtrans %}</label>
<input class="form-check-input" type="radio" name="error_type" id="error_type1" value="acessibility" checked>
<label class="form-check-label" for="error_type1">{% trans %}acessibilidade{% endtrans %}</label>
<span class="form-text d-block mb-3">{% trans %}(por favor, considere responder ao {% endtrans %} <a target="_blank" href="{{ config.get('ACCESSIBILITY_BY_LANGUAGE').get(session.get('lang', config.get('BABEL_DEFAULT_LOCALE')))}}">{% trans %}nosso questionário para mapear o perfil dos usuários do site SciELO - link externo{% endtrans %}</a>)</span>
</div>

<div class="form-check">
<input class="form-check-input" type="radio" name="error_type" id="error_type2" value="application">
<label class="form-check-label" for="error_type2">{% trans %}à aplicação{% endtrans %}</label>
<input class="form-check-input" type="radio" name="error_type" id="error_type2" value="other">
<label class="form-check-label" for="error_type2">{% trans %}outro tipo de erro{% endtrans %} *</label>
<span class="form-text d-block">* {% trans %}Caso o erro esteja no conteúdo de um documento e apresente-se também na versão em PDF do mesmo documento, por favor não utilize este formulário. Entre em contato com o periódico que publicou o documento e reporte o erro diretamente a ele.{% endtrans %}</span>
</div>

<label class="form-label" id="{{g.error.error_type.name}}_error"></label>
</div>

<div class="mb-3">
<label class="form-label">{% trans %}Descrição do erro{% endtrans %} :</label>
<label class="form-label">{% trans %}Descrição do erro{% endtrans %}:</label>
{{ g.error.message(class="form-control valid", placeholder=_("Digite sua mensagem"), rows="10") }}
<label class="form-label" id="{{g.error.message.name}}_error"></label>
<span class="form-text">{% trans %}Obs.: Link e título da página são enviados automaticamente{% endtrans %}.</span>
Expand Down
Loading