Jump to content

Mise En Forme Liste Produit En Back Office.


Recommended Posts

Bonjour,

Le TPL en question est /administration/themes/default/template/helpers/list/list_content.tpl, très générique.

 

Sinon, moins propre mais plus simple à mon avis, vous pouvez surcharger la fonction renderList() de AdminProductsController.php:

class AdminProductsController extends AdminProductsControllerCore {
  public function renderList() {
    return parent::renderList().'<script>
      (function() {
        $("table#table-product>tbody>tr").each(function(i, tr) {
          if ((tr = $(tr)).find("i.icon-check").hasClass("hidden")) {
            tr.find("td").css("background-color", "#F88").css("color", "#FFF");
            tr.find("i.icon-remove").css("color", "#C22");
          }
        });
      })();
    </script>';
  [spam-filter]

Cordialement

 

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...