Skip to content

Commit

Permalink
Merge pull request #2007 from nicolas-eoxia/fix_public_control
Browse files Browse the repository at this point in the history
#1994 [PublicControl] fix: management of external public interface
  • Loading branch information
nicolas-eoxia authored Feb 20, 2025
2 parents c9f1038 + 81bef17 commit 9c208e2
Show file tree
Hide file tree
Showing 9 changed files with 155 additions and 57 deletions.
5 changes: 5 additions & 0 deletions class/actions_digiquali.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,11 @@ public function saturneAdminObjectConst(array $parameters): int
'name' => 'ShowAddControlButtonOnPublicInterface',
'description' => 'ShowAddControlButtonOnPublicInterfaceDescription',
'code' => 'DIGIQUALI_SHOW_ADD_CONTROL_BUTTON_ON_PUBLIC_INTERFACE',
],
'ShowParentLinkedObjectOnPublicInterface' => [
'name' => 'ShowParentLinkedObjectOnPublicInterface',
'description' => 'ShowParentLinkedObjectOnPublicInterfaceDescription',
'code' => 'DIGIQUALI_SHOW_PARENT_LINKED_OBJECT_ON_PUBLIC_INTERFACE',
]
];
$this->results = $constArray;
Expand Down
6 changes: 2 additions & 4 deletions core/tpl/frontend/control_item_frontend_view.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,8 @@

</div>
<div class="card-actions">
<div class="wpeo-gridlayout grid-2 grid-gap-1">
<div class="information-label"><?php echo $controlInfo['view_button']; ?></div>
<div class="information-label"><?php echo $controlInfo['verdict']; ?></div>
</div>
<div class="information-label"><?php echo $controlInfo['view_button']; ?></div>
<div class="information-label"><?php echo $controlInfo['verdict']; ?></div>
</div>
</div>
<?php endforeach; ?>
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

<div class="public-card__header wpeo-gridlayout grid-2">
<div class="header-information">
<div class="information-thumbnail"><?php echo $linkedObjectInfoArray['images'][0]; ?></div>
<div class="information-thumbnail"><?php echo $linkedObjectInfoArray['images']; ?></div>
<div>
<div class="information-type"><?php echo $linkedObjectInfoArray['linkedObject']['title']; ?></div>
<div class="information-label size-l"><?php echo $linkedObjectInfoArray['linkedObject']['name_field']; ?></div>
Expand All @@ -54,10 +54,8 @@
</div>
</div>
<div class="objet-actions">
<div class="wpeo-gridlayout grid-<?php echo isset($controlInfoArray['nextControl']['create_button']) ? '2' : '1'; ?> grid-gap-1">
<?php echo $controlInfoArray['nextControl']['create_button']; ?>
<?php echo $controlInfoArray['nextControl']['verdict']; ?>
</div>
<?php echo $controlInfoArray['nextControl']['create_button']; ?>
<?php echo $controlInfoArray['nextControl']['verdict']; ?>
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion css/digiquali.min.css

Large diffs are not rendered by default.

27 changes: 27 additions & 0 deletions css/scss/page/_public-control.scss
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,25 @@
}
}
.header-objet {
.objet-info {
display: flex;
flex-direction: column;
justify-content: center;
}
.objet-notification {
height: 100%;
align-content: center;
font-size: 14px;
color: rgba(0,0,0,0.5);
}
.objet-actions {
display: flex;
gap: 0.5em;

@media ( max-width: $media__small ) {
flex-direction: column;
}

.wpeo-button {
span {
font-size: 13px;
Expand Down Expand Up @@ -121,6 +139,9 @@
}
}

a.wpeo-button:link {
color: #fff;
}
.wpeo-button {
&.button-disable-hover {
&:hover {
Expand Down Expand Up @@ -206,6 +227,12 @@
.card-actions {
margin: auto 0;
padding: 0.4em 0;
display: flex;
gap: 0.5em;

@media ( max-width: $media__small ) {
flex-direction: column;
}

.wpeo-button {
.button-icon {
Expand Down
32 changes: 18 additions & 14 deletions langs/fr_FR/digiquali.lang
Original file line number Diff line number Diff line change
Expand Up @@ -42,20 +42,22 @@ SheetMainCategory = Choix de la catégorie principale du modèle de
SheetMainCategoryDescription = Cette option permet de choisir quelle catégorie sera utilisée lors du choix de catégorie pendant la création d'un contrôle

# Control - Contrôle
DisplayMediasSample = Afficher les médias d'exemple des questions
DisplayControlMediasSampleDescription = Afficher les médias d'exemple des questions dans le contrôle
ExtrafieldsControlManagement = Gestion des attributs supplémentaires des contrôles
ShowAddControlButtonOnPublicInterface = Afficher le bouton d'ajout de contrôle sur l'interface publique de contrôle
ShowAddControlButtonOnPublicInterfaceDescription = Permet d'afficher le bouton d'ajout de contrôle sur l'interface publique de contrôle
NextControlDateColorManagement = Gestion des couleurs des dates de contrôle
NextControlDateColor0 = Date dépassée
NextControlDateColor30 = Urgent
NextControlDateColor60 = Bientôt requis
NextControlDateColor90 = Date éloignée
NextControlDateColor0Description = Code couleur pour la prochaine date de contrôle - Date dépassée
NextControlDateColor30Description = Code couleur pour la prochaine date de contrôle - Urgent
NextControlDateColor60Description = Code couleur pour la prochaine date de contrôle - Bientôt requis
NextControlDateColor90Description = Code couleur pour la prochaine date de contrôle - Date éloignée
DisplayMediasSample = Afficher les médias d'exemple des questions
DisplayControlMediasSampleDescription = Afficher les médias d'exemple des questions dans le contrôle
ExtrafieldsControlManagement = Gestion des attributs supplémentaires des contrôles
ShowAddControlButtonOnPublicInterface = Afficher le bouton d'ajout de contrôle sur l'interface publique de contrôle
ShowAddControlButtonOnPublicInterfaceDescription = Permet d'afficher le bouton d'ajout de contrôle sur l'interface publique de contrôle
ShowParentLinkedObjectOnPublicInterface = Afficher l'objet parent sur l'interface publique de contrôle
ShowParentLinkedObjectOnPublicInterfaceDescription = Permet d'afficher l'objet parent sur l'interface publique de contrôle
NextControlDateColorManagement = Gestion des couleurs des dates de contrôle
NextControlDateColor0 = Date dépassée
NextControlDateColor30 = Urgent
NextControlDateColor60 = Bientôt requis
NextControlDateColor90 = Date éloignée
NextControlDateColor0Description = Code couleur pour la prochaine date de contrôle - Date dépassée
NextControlDateColor30Description = Code couleur pour la prochaine date de contrôle - Urgent
NextControlDateColor60Description = Code couleur pour la prochaine date de contrôle - Bientôt requis
NextControlDateColor90Description = Code couleur pour la prochaine date de contrôle - Date éloignée

# Survey - Questionnaire
DisplaySurveyMediasSampleDescription = Afficher les médias d'exemple des questions dans le questionnaire
Expand Down Expand Up @@ -376,6 +378,8 @@ ValidationDate = Date de validation
ReOpenDate = Date de réouverture
DraftValidatedLocked = -- (Brouillon + validé + verrouillé) --
CloneControlEquipments = Cloner les moyens de contrôle
NoControl = Aucun contrôle
NoPeriodicityControl = Aucune périodicité de contrôle car contrôle unique



Expand Down
Loading

0 comments on commit 9c208e2

Please sign in to comment.