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

[FEATURE] 💄 Ajoute un tootltip sur un entête de colonne pour préciser un titre (PIX-15016) #10442

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
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
27 changes: 25 additions & 2 deletions orga/app/components/organization-participant/table-headers.gjs
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import PixCheckbox from '@1024pix/pix-ui/components/pix-checkbox';
import PixTooltip from '@1024pix/pix-ui/components/pix-tooltip';
import { on } from '@ember/modifier';
import { service } from '@ember/service';
import FaIcon from '@fortawesome/ember-fontawesome/components/fa-icon';
import Component from '@glimmer/component';
import { t } from 'ember-intl';
import { not } from 'ember-truth-helpers';
import { eq, not } from 'ember-truth-helpers';

import { getColumnName } from '../../helpers/import-format.js';
import Tooltip from '../certificability/tooltip';
Expand Down Expand Up @@ -38,7 +40,28 @@ export default class TableHeaders extends Component {
</HeaderSort>
<Header>{{t "pages.organization-participants.table.column.first-name"}}</Header>
{{#each @customHeadings as |heading|}}
<Header>{{t (getColumnName heading)}}</Header>
<Header>
<div class="organization-participant-list-page__header-with-tooltip">
{{t (getColumnName heading)}}
{{#if (eq heading "ORALIZATION")}}
<PixTooltip @id="organization-participants-oralization-tooltip">
<:triggerElement>
<FaIcon
@icon="circle-info"
tabindex="0"
aria-label={{t "pages.organization-participants.table.oralization-header-tooltip-aria-label"}}
aria-describedby="organization-participants-oralization-tooltip"
/>
</:triggerElement>

<:tooltip>
{{t "pages.organization-participants.table.oralization-header-tooltip"}}
</:tooltip>
</PixTooltip>
{{/if}}

</div>
</Header>
{{/each}}

{{#unless this.currentUser.canAccessMissionsPage}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ $margin-right: 32px;
justify-content: center;
}

&__header-with-tooltip {
display: flex;

.pix-tooltip {
margin-left: 5px;
}
}

&__actions-header {
width: 10%;

Expand Down
1 change: 1 addition & 0 deletions orga/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1109,6 +1109,7 @@
},
"description": "Table of participants, sorted by name.",
"empty": "No participants",
"oralization-header-tooltip": "Activate “read the instruction” to have the student's oral transcription.",
"row-title": "Participant",
"row-value": {
"oralization": {
Expand Down
1 change: 1 addition & 0 deletions orga/translations/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -1115,6 +1115,7 @@
},
"description": "Tableau des participants trié par nom.",
"empty": "Aucun participant",
"oralization-header-tooltip": "Activer “lecture de la consigne” permettra à l'élève d’avoir sa transcription orale.",
"row-title": "Participant",
"row-value": {
"oralization": {
Expand Down
3 changes: 2 additions & 1 deletion orga/translations/nl.json
Original file line number Diff line number Diff line change
Expand Up @@ -1169,7 +1169,8 @@
},
"description": "Tabel met deelnemers gesorteerd op naam.",
"empty": "Geen deelnemers",
"row-title": "Deelnemer"
"row-title": "Deelnemer",
"oralization-header-tooltip": "Door ‘leesinstructies’ te activeren, kan de student zijn mondelinge transcriptie krijgen."
}
},
"participants-list": {
Expand Down
Loading