Skip to content

Commit 9ed9fe0

Browse files
authored
[4.0] workflows tip (#34689)
Change the title for transitions and stages to a tip
1 parent 83b9420 commit 9ed9fe0

File tree

1 file changed

+14
-4
lines changed
  • administrator/components/com_workflow/tmpl/workflows

1 file changed

+14
-4
lines changed

administrator/components/com_workflow/tmpl/workflows/default.php

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,12 +150,22 @@
150150
<?php echo HTMLHelper::_('jgrid.isdefault', $item->default, $i, 'workflows.', $canChange); ?>
151151
</td>
152152
<td class="text-center btns d-none d-md-table-cell itemnumber">
153-
<a class="btn <?php echo ($item->count_states > 0) ? 'btn-warning' : 'btn-secondary'; ?>" title="<?php echo Text::_('COM_WORKFLOW_COUNT_STAGES', true); ?>" href="<?php echo Route::_('index.php?option=com_workflow&view=stages&workflow_id=' . (int) $item->id . '&extension=' . $extension); ?>">
154-
<?php echo $item->count_states; ?></a>
153+
<a class="btn <?php echo ($item->count_states > 0) ? 'btn-warning' : 'btn-secondary'; ?>"
154+
href="<?php echo Route::_('index.php?option=com_workflow&view=stages&workflow_id=' . (int) $item->id . '&extension=' . $extension); ?>" aria-describedby="tip-stages<?php echo $i; ?>">
155+
<?php echo $item->count_states; ?>
156+
</a>
157+
<div role="tooltip" id="tip-stages<?php echo $i; ?>">
158+
<?php echo Text::_('COM_WORKFLOW_COUNT_STAGES'); ?>
159+
</div>
155160
</td>
156161
<td class="text-center btns d-none d-md-table-cell itemnumber">
157-
<a class="btn <?php echo ($item->count_transitions > 0) ? 'btn-info' : 'btn-secondary'; ?>" title="<?php echo Text::_('COM_WORKFLOW_COUNT_TRANSITIONS', true); ?>" href="<?php echo Route::_('index.php?option=com_workflow&view=transitions&workflow_id=' . (int) $item->id . '&extension=' . $extension); ?>">
158-
<?php echo $item->count_transitions; ?></a>
162+
<a class="btn <?php echo ($item->count_transitions > 0) ? 'btn-info' : 'btn-secondary'; ?>"
163+
href="<?php echo Route::_('index.php?option=com_workflow&view=transitions&workflow_id=' . (int) $item->id . '&extension=' . $extension); ?>" aria-describedby="tip-transitions<?php echo $i; ?>">
164+
<?php echo $item->count_transitions; ?>
165+
</a>
166+
<div role="tooltip" id="tip-transitions<?php echo $i; ?>">
167+
<?php echo Text::_('COM_WORKFLOW_COUNT_TRANSITIONS'); ?>
168+
</div>
159169
</td>
160170
<td class="d-none d-md-table-cell">
161171
<?php echo $item->id; ?>

0 commit comments

Comments
 (0)