Skip to content

Commit

Permalink
Merge pull request #216 from abes-esr/develop
Browse files Browse the repository at this point in the history
THE-1280 THE-1261 Accessibilité tableau + formulaire
  • Loading branch information
theo-chmbn authored Apr 18, 2024
2 parents 01bd85a + 09ddf31 commit f76111e
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 20 deletions.
24 changes: 12 additions & 12 deletions components/theses/ThesisTable.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<template>
<table class="table" v-if="these.auteurs" title="meta-données de la thèse">
<table class="table" v-if="these.auteurs" aria-label="meta-données de la thèse" title="meta-données de la thèse">
<tbody class="table-body">
<!-- Auteur -->
<tr v-if="these.auteurs && these.auteurs.length > 0" class="table-rows">
<td><strong>{{ $t('theseView.auteur') }}&nbsp;:{{ '\xa0' }}</strong></td>
<td role="rowheader"><strong>{{ $t('theseView.auteur') }}&nbsp;:{{ '\xa0' }}</strong></td>
<td role="list">
<template v-for="(auteur, index) in these.auteurs" :key="auteur.ppn">
<nuxt-link v-if="auteur.ppn" class="clickable orange" :to="'/' + auteur.ppn" role="listitem">
Expand All @@ -18,7 +18,7 @@
</tr>
<!-- Direction -->
<tr v-if="these.directeurs && these.directeurs.length > 0" class="table-rows">
<td><strong>{{ $t('theseView.direction') }}&nbsp;:{{ '\xa0' }}</strong></td>
<td role="rowheader"><strong>{{ $t('theseView.direction') }}&nbsp;:{{ '\xa0' }}</strong></td>
<td role="list">
<template v-for="(directeur, index) in these.directeurs" :key="directeur.ppn">
<nuxt-link v-if="directeur.ppn" class="clickable lightblue" :to="'/' + directeur.ppn" role="listitem">
Expand All @@ -33,19 +33,19 @@
</tr>
<!-- Type -->
<tr class="table-rows">
<td><strong>{{ $t('theseView.type') }}&nbsp;:{{ '\xa0' }}</strong></td>
<td role="rowheader"><strong>{{ $t('theseView.type') }}&nbsp;:{{ '\xa0' }}</strong></td>
<td>
<span>{{ these.status === "enCours" ? $t('theseView.projet') : $t('theseView.doctorat') }}</span>
</td>
</tr>
<!-- Discipline -->
<tr v-if="these.discipline" class="table-rows">
<td><strong>{{ $t('theseView.disciplines') }}&nbsp;:{{ '\xa0' }}</strong></td>
<td role="rowheader"><strong>{{ $t('theseView.disciplines') }}&nbsp;:{{ '\xa0' }}</strong></td>
<td>{{ these.discipline }}</td>
</tr>
<!-- Date soutenance -->
<tr v-if="these.dateSoutenance || these.datePremiereInscriptionDoctorat" class="table-rows">
<td><strong>{{ $t('theseView.dateSoutenance') }}&nbsp;:{{ '\xa0' }}</strong></td>
<td role="rowheader"><strong>{{ $t('theseView.dateSoutenance') }}&nbsp;:{{ '\xa0' }}</strong></td>
<!-- Cas STAR : date de soutenance complete -->
<td v-if="these.source === 'star'"> {{ $t('theseView.soutenue') }} {{
these.dateSoutenance }}</td>
Expand All @@ -58,16 +58,16 @@
{{ $t('theseView.inscription') }}
{{ these.datePremiereInscriptionDoctorat }}
</span>
<td v-if="these.isSoutenue">
<span v-if="these.isSoutenue">
<br />
<span> {{ $t('theseView.soutenue') }}</span>
{{ these.dateSoutenance }}
</td>
</span>
</td>
</tr>
<!-- Etablissement de soutenance et cotutelle-->
<tr v-if="these.etabSoutenance && these.etabSoutenance.nom" class="table-rows">
<td>
<td role="rowheader">
<strong>{{ $t('theseView.etablissements') }}&nbsp;:{{ '\xa0' }}</strong>
</td>
<td>
Expand All @@ -91,7 +91,7 @@
</tr>
<!-- Ecoles doctorales -->
<tr v-if="these.ecolesDoctorales && these.ecolesDoctorales.length > 0" class="table-rows">
<td><strong>{{ $t('theseView.ecoles') }}&nbsp;:{{ '\xa0' }}</strong></td>
<td role="rowheader"><strong>{{ $t('theseView.ecoles') }}&nbsp;:{{ '\xa0' }}</strong></td>
<td role="list">
<template v-for="(ecole, index) in these.ecolesDoctorales" :key="ecole.ppn">
<strong>
Expand All @@ -109,7 +109,7 @@
<!-- Partenariat -->
<!-- Première ligne -->
<tr v-if="these.partenairesRecherche && these.partenairesRecherche.length > 0" class="table-rows">
<td>
<td role="rowheader">
<strong>{{ $t('theseView.partenariat') }}&nbsp;:{{ '\xa0' }}</strong>
</td>
<td role="list">
Expand Down Expand Up @@ -146,7 +146,7 @@
<!-- Jury -->
<!-- Première ligne -->
<tr v-if="(Object.keys(juryMembersGroupedByType).length > 0)" class="table-rows">
<td>
<td role="rowheader">
<strong>{{ $t('theseView.jury') }}&nbsp;:{{ '\xa0' }}</strong>
</td>
<td role="list">
Expand Down
5 changes: 3 additions & 2 deletions locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,10 @@
"envoyer": "Send",
"annuler": "Cancel",
"requis": "This field is required",
"mailInvalide": "Invalid email address",
"mailInvalide": "Invalid email address (example@abes.fr)",
"info": "The data you see in theses.fr is the responsibility of the institutions authorized to award doctoral degrees. This form allows you to contact the relevant service within the institution responsible for the thesis:",
"msg": "Your message has been successfully transmitted."
"msg": "Your message has been successfully transmitted.",
"mandatory": "Asterisked (*) marked fields are mandatory."
},
"footer": {
"texte": "Theses.fr is a search engine that lists all doctoral thesis defended in France since 1985, thesis topics prepared within French higher education institutions, and individuals involved in French doctoral research. The database is constantly evolving.",
Expand Down
5 changes: 3 additions & 2 deletions locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,10 @@
"envoyer": "Envoyer",
"annuler": "Annuler",
"requis": "Ce champ est obligatoire",
"mailInvalide": "Adresse mail invalide",
"mailInvalide": "Adresse mail invalide (exemple@abes.fr)",
"info" : "Les données que vous voyez dans theses.fr sont placées sous la responsabilité des établissements habilités à délivrer le doctorat. Ce formulaire vous permet de contacter directement l'établissement qui gère la thèse : ",
"msg": "Votre message a bien été transmis."
"msg": "Votre message a bien été transmis.",
"mandatory": "Les champs marqués d'un astérisque (*) sont obligatoires."
},
"footer": {
"texte": "Le moteur de recherche theses.fr recense l’ensemble des thèses de doctorat soutenues en France depuis 1985, les sujets de thèse préparés au sein des établissements de l’enseignement supérieur français, et les personnes impliquées dans la recherche doctorale française. La base de données est en constante évolution.",
Expand Down
14 changes: 10 additions & 4 deletions pages/signaler.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,16 @@
<div class="signaler-erreur-container">
<h1 class="sr-only">Formulaire de signalement d'erreur</h1>
<p>{{ $t("reportErrorView.info") }}<a target="_blank" :href="href">{{ href }}</a></p>
<p>{{ $t("reportErrorView.mandatory") }}</p>
<v-form id="form" ref="form">
<div class="form-row shortened">
<v-text-field :label="$t('reportErrorView.nom')" v-model="nom"
<v-text-field :label="$t('reportErrorView.nom')" v-model="nom" aria-autocomplete="given-name"
:rules=requiredRule variant="outlined" density="compact" class="item first-item"></v-text-field>
<v-text-field :label="$t('reportErrorView.prenom')" v-model="prenom" :rules=requiredRule variant="outlined"
<v-text-field :label="$t('reportErrorView.prenom')" v-model="prenom" aria-autocomplete="family-name" :rules=requiredRule variant="outlined"
density="compact" class="item"></v-text-field>
</div>
<div class="form-row shortened">
<v-text-field :label="$t('reportErrorView.mail')" v-model="mail" :rules="mailRule" variant="outlined"
<v-text-field :label="$t('reportErrorView.mail')" placeholder="exemple@abes.fr" v-model="mail" aria-autocomplete="email" :rules="mailRule" variant="outlined"
density="compact" required></v-text-field>
</div>
<div class="form-row shortened">
Expand Down Expand Up @@ -250,7 +251,7 @@ p {
.privacy {
font-size: 0.8rem;
color: rgb(var(--v-theme-gris-fonce));
color: rgb(var(--v-theme-text-dark-blue));
padding-top: 0.8rem;
}
Expand Down Expand Up @@ -288,6 +289,11 @@ p {
flex-direction: column;
}
:deep(.v-label) {
color: rgb(var(--v-theme-text-dark-blue));
opacity: 1 !important;
}
.v-btn {
margin-right: 10px;
}
Expand Down

0 comments on commit f76111e

Please sign in to comment.