Refactor CSS and PHP for badge layout and rendering improvements
This commit updates the CSS to enhance the layout of auto badges, positioning them to the right and adjusting the grid structure. In the PHP code, the badge description is modified for clarity, and the rendering logic is streamlined by removing unnecessary elements. These changes improve the user interface by providing a more organized and visually appealing display of sequence information.
This commit is contained in:
@ -1813,11 +1813,10 @@ a.ms1-trad-link.btn-aide-trad{
|
||||
width:100%;
|
||||
}
|
||||
|
||||
/* MSIN-4379 — Badge auto par séquence + view/OK/stats ; colonne auto masquée en batch. */
|
||||
/* MSIN-4379 — View/OK/Suppr icônes ; stats regroupées ; badge auto à droite. */
|
||||
.epr-line{
|
||||
display:grid;
|
||||
grid-template-columns:
|
||||
minmax(0, max-content)
|
||||
40px
|
||||
58px
|
||||
58px
|
||||
@ -1842,17 +1841,6 @@ a.ms1-trad-link.btn-aide-trad{
|
||||
28px;
|
||||
}
|
||||
|
||||
.bib-container.batch-mode .epr-col-auto{
|
||||
display:none;
|
||||
}
|
||||
|
||||
.epr-col-auto{
|
||||
display:flex;
|
||||
align-items:center;
|
||||
justify-content:flex-start;
|
||||
min-width:0;
|
||||
}
|
||||
|
||||
.epr-col-stats{
|
||||
display:grid;
|
||||
grid-template-columns:56px 48px 48px;
|
||||
@ -1892,6 +1880,10 @@ a.ms1-trad-link.btn-aide-trad{
|
||||
.epr-col-batch{
|
||||
overflow:hidden;
|
||||
min-width:0;
|
||||
display:flex;
|
||||
align-items:center;
|
||||
justify-content:flex-end;
|
||||
gap:4px;
|
||||
}
|
||||
|
||||
.epr-line .btn-view-range{
|
||||
|
||||
@ -3057,7 +3057,7 @@ function fxBibAssignHeaderSummary($intSeqCount, $blnAutoActive = false) {
|
||||
return $html;
|
||||
}
|
||||
|
||||
/** Badge « Auto actif » sur une ligne de séquence (epr_bib_auto = 1). */
|
||||
/** Badge « Assignation automatique » sur une ligne de séquence (epr_bib_auto = 1). */
|
||||
function fxBibRenderRangeAutoBadge(array $range, $mode = 'assign') {
|
||||
if ($mode !== 'assign') {
|
||||
return '';
|
||||
@ -3070,9 +3070,9 @@ function fxBibRenderRangeAutoBadge(array $range, $mode = 'assign') {
|
||||
}
|
||||
|
||||
return '<span class="bib-auto-badge bib-auto-badge--row badge badge-bib-auto-seq"'
|
||||
. fxBibTippyAttr('bib_v4_auto_badge')
|
||||
. fxBibTippyAttr('bib_v4_auto')
|
||||
. '>'
|
||||
. fxBibEsc(fxBibTexte('bib_v4_auto_badge', 0))
|
||||
. fxBibEsc(fxBibTexte('bib_v4_auto', 0))
|
||||
. '</span>';
|
||||
}
|
||||
|
||||
@ -3280,7 +3280,6 @@ function renderBibRangeHeader() {
|
||||
ob_start();
|
||||
?>
|
||||
<div class="epr-line epr-line-header">
|
||||
<div class="epr-col-auto"></div>
|
||||
<div><?php echo fxBibColHeader('bib_v4_col_view'); ?></div>
|
||||
<div><?php echo fxBibColHeader('bib_v4_col_start'); ?></div>
|
||||
<div><?php echo fxBibColHeader('bib_v4_col_end'); ?></div>
|
||||
@ -4073,10 +4072,6 @@ $mem_dispo = max(0, $nb_total - $nb_utilises);
|
||||
|
||||
<div class="bib-range epr-line" data-id="<?php echo $range['epr_bib_id']; ?>">
|
||||
|
||||
<div class="epr-col-auto">
|
||||
<?php echo fxBibRenderRangeAutoBadge($range, $mode); ?>
|
||||
</div>
|
||||
|
||||
<?php if ((int)$range['epr_bib_id'] > 0) { ?>
|
||||
<button type="button"
|
||||
class="btn btn-sm btn-secondary btn-view-range"
|
||||
@ -4118,6 +4113,7 @@ $mem_dispo = max(0, $nb_total - $nb_utilises);
|
||||
</div>
|
||||
|
||||
<div class="epr-col-batch">
|
||||
<?php echo fxBibRenderRangeAutoBadge($range, $mode); ?>
|
||||
<div class="batch-checkbox" style="text-align:center;">
|
||||
|
||||
<?php
|
||||
|
||||
Reference in New Issue
Block a user