Skip to content

Commit

Permalink
Merge pull request #516 from silverstripeltd/pulls/fixes-button-icons
Browse files Browse the repository at this point in the history
FIX Button layout that display icons
  • Loading branch information
GuySartorelli authored Jan 25, 2024
2 parents dfa839c + 5e3b9b0 commit 08fa6fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/Extensions/WorkflowApplicable.php
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,6 @@ public function updateCMSActions(FieldList $actions)
// and will be displayed as a major action.
if (!$addedFirst) {
$addedFirst = true;
$action->setAttribute('data-icon', 'navigation');
$majorActions = $actions->fieldByName('MajorActions');
$majorActions ? $majorActions->push($action) : $actions->push($action);
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@
<h4>$Title</h4>

<div class="workflow-field-action-buttons btn-group">
<a class="btn btn-outline-secondary workflow-field-open-dialog<% if $canEdit %><% else %> workflow-field-action-disabled<% end_if %>" href="$Top.ActionLink('item',$ID,'edit')" data-icon="pencil">
<a class="btn btn-outline-secondary workflow-field-open-dialog<% if $canEdit %><% else %> workflow-field-action-disabled<% end_if %>" href="$Top.ActionLink('item',$ID,'edit')">
<%t WorkflowField.EditAction "Edit" %>
</a>
<a class="btn btn-outline-secondary workflow-field-open-dialog <% if $canAddTransition %><% else %> workflow-field-action-disabled<% end_if %>" href="$Top.TransitionLink('new',$ID,'edit')" data-icon="chain--arrow">
<a class="btn btn-outline-secondary workflow-field-open-dialog <% if $canAddTransition %><% else %> workflow-field-action-disabled<% end_if %>" href="$Top.TransitionLink('new',$ID,'edit')">
<%t WorkflowField.AddTransitionAction "Add Transition" %>
</a>
<a href="$Top.ActionLink('item',$ID,'delete')" data-securityid="$SecurityID" class="btn btn-outline-secondary workflow-field-delete<% if $canDelete %><% else %> workflow-field-action-disabled<% end_if %>" data-icon="cross-circle">
<a href="$Top.ActionLink('item',$ID,'delete')" data-securityid="$SecurityID" class="btn btn-outline-secondary workflow-field-delete<% if $canDelete %><% else %> workflow-field-action-disabled<% end_if %>">
<%t WorkflowField.DeleteAction "Delete" %>
</a>
</div>
Expand Down

0 comments on commit 08fa6fd

Please sign in to comment.