Skip to content

Commit

Permalink
FIX Update HTML markup for bootstrap 5
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli committed Jan 22, 2025
1 parent 48332e2 commit 79f36e8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 16 deletions.
6 changes: 3 additions & 3 deletions src/Forms/GridField/GridFieldBlogPostState.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function getColumnContent($gridField, $record, $columnName)
*/
$lastEdited = $record->dbObject('LastEdited');

return '<i class="font-icon-edit mr-2"></i> ' . _t(
return '<i class="font-icon-edit me-2"></i> ' . _t(
__CLASS__ . '.Draft',
'Saved as Draft on {date}',
'State for when a post is saved.',
Expand All @@ -48,7 +48,7 @@ public function getColumnContent($gridField, $record, $columnName)
$publishDate = $record->dbObject('PublishDate');

if (strtotime($record->PublishDate ?? '') > time()) {
return '<i class="font-icon-clock mr-2"></i> ' . _t(
return '<i class="font-icon-clock me-2"></i> ' . _t(
__CLASS__ . '.Timer',
'Publish at {date}',
'State for when a post is published.',
Expand All @@ -58,7 +58,7 @@ public function getColumnContent($gridField, $record, $columnName)
) . $modifiedLabel;
}

return '<i class="font-icon-check-mark-circle text-success mr-2"></i> ' . _t(
return '<i class="font-icon-check-mark-circle text-success me-2"></i> ' . _t(
__CLASS__ . '.Published',
'Published on {date}',
'State for when a post is published.',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
<div class="add-existing-autocompleter">
<div class="input-group">
<% loop $Fields %>
<% if $Type == 'action' %>
<div class="input-group-append">
$Field
</div>
<% else %>
$Field
<% end_if %>
<% end_loop %>
</div>
</div>
<div class="add-existing-autocompleter">
<div class="input-group">
<% loop $Fields %>
$Field
<% end_loop %>
</div>
</div>

0 comments on commit 79f36e8

Please sign in to comment.