From 5e90ca7ab1cddf94e500397549b85c54aed570da Mon Sep 17 00:00:00 2001 From: Ludovic Pouzenc Date: Fri, 20 Jul 2018 08:18:04 +0200 Subject: index: no 'id' column by default --- app-from-scratch.sh | 7 +++++++ .../plugins/CustomTheme/src/Template/Bake/Template/index.twig | 2 +- .../plugins/CustomTheme/src/View/Helper/BakeExtraHelper.php | 8 ++++++++ 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/app-from-scratch.sh b/app-from-scratch.sh index c84fa0a..0268887 100644 --- a/app-from-scratch.sh +++ b/app-from-scratch.sh @@ -316,3 +316,10 @@ git add src/Template/Layout/default.ctp webroot/css/local.css git add ../app-from-scratch.sh git commit -m "bake add Search filter support" +# b59164b0b7451905adcca244e6395281eb0633ca + +# index: no 'id' column by default +editor plugins/CustomTheme/src/View/Helper/BakeExtraHelper.php plugins/CustomTheme/src/Template/Bake/Template/index.twig +git add plugins/CustomTheme/src/View/Helper/BakeExtraHelper.php plugins/CustomTheme/src/Template/Bake/Template/index.twig +git add ../app-from-scratch.sh +git commit -m "index: no 'id' column by default" diff --git a/fai_gestion/plugins/CustomTheme/src/Template/Bake/Template/index.twig b/fai_gestion/plugins/CustomTheme/src/Template/Bake/Template/index.twig index 15bfe45..7950242 100644 --- a/fai_gestion/plugins/CustomTheme/src/Template/Bake/Template/index.twig +++ b/fai_gestion/plugins/CustomTheme/src/Template/Bake/Template/index.twig @@ -43,7 +43,7 @@ // index could contain table head filters and labels in aren't useful $this->Form->setTemplates(['label' => '']); ?> -{% set fields = Bake.filterFields(fields, schema, modelObject, indexColumns, ['binary', 'text']) %} +{% set fields = BakeExtra.filterFields(fields, schema, modelObject, indexColumns, ['binary', 'text']) %}