Skip to content

Commit

Permalink
Add compatibility with Prestashop 8.0.0 on democontrollertabs module
Browse files Browse the repository at this point in the history
  • Loading branch information
mflasquin committed Oct 13, 2022
1 parent 4a7d8a1 commit 4438228
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 2 additions & 0 deletions democontrollertabs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ Demo Controller Tabs

This module demonstrates how to create modern Controllers and associate Tabs, it was designed for test purposes and as an example.

Tested with PS 8.0.0 and below.

Please note this module is an example only, not a mandatory structure.

1. Symfony Controller with permission
Expand Down
9 changes: 5 additions & 4 deletions democontrollertabs/views/templates/admin/layout.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@
* It is also available through the world-wide-web at this URL: https://opensource.org/licenses/AFL-3.0
*#}

{% extends '@PrestaShop/Admin/layout.html.twig' %}

{% extends '@!PrestaShop/Admin/layout.html.twig' %}
{# Since PS 8.0.0 you can use @PrestaShopCore instead of @!Prestashop
(https://devdocs.prestashop-project.org/8/modules/concepts/templating/admin-views/#override-templates) #}
{% block content %}
<div class="row justify-content-center">
<div class="col">
Expand All @@ -18,8 +19,8 @@
<h3 class="card-header">
<i class="material-icons">settings</i> {% block controllerTitle %}{{ 'Configure controller'|trans({}, 'Modules.Controllertab.Admin') }}{% endblock %}
</h3>
<div class="card-block row">
<div class="card-text">
<div class="card-body card-block">
<div class="form-wrapper card-text">
<div class="row">
<div class="col-sm">
<div class="alert alert-info" role="alert">
Expand Down

0 comments on commit 4438228

Please sign in to comment.