From 9a73d523ebd6035fac8deaa347ce41e4eda13232 Mon Sep 17 00:00:00 2001 From: Ludovic Pouzenc Date: Thu, 19 Jul 2018 00:21:45 +0200 Subject: Add Copyright & GPL3+ notice to Templates --- app-from-scratch.sh | 7 +++++++ .../src/Template/Bake/Controller/controller.twig | 21 +++++++++++++++++++++ .../CustomTheme/src/Template/Bake/Model/entity.twig | 21 +++++++++++++++++++++ .../CustomTheme/src/Template/Bake/Model/table.twig | 21 +++++++++++++++++++++ .../src/Template/Bake/Template/index.twig | 21 +++++++++++++++++++++ .../src/Template/Bake/Template/view.twig | 21 +++++++++++++++++++++ 6 files changed, 112 insertions(+) diff --git a/app-from-scratch.sh b/app-from-scratch.sh index a168168..7d06a85 100644 --- a/app-from-scratch.sh +++ b/app-from-scratch.sh @@ -274,3 +274,10 @@ git add plugins/CustomTheme/src/View/Helper/BakeExtraHelper.php git add ../app-from-scratch.sh git commit -m "bake: Add configurability, generate less actions" +# 0dd134b71539f38d84db3b023ba42d2650df278a + + +# Add Copyright & GPL3+ notice to Templates +editor $p/Controller/controller.twig $p/Model/entity.twig $p/Model/table.twig $p/Template/index.twig $p/Template/view.twig +git add $p/Controller/controller.twig $p/Model/entity.twig $p/Model/table.twig $p/Template/index.twig $p/Template/view.twig +git commit -m "Add Copyright & GPL3+ notice to Templates" diff --git a/fai_gestion/plugins/CustomTheme/src/Template/Bake/Controller/controller.twig b/fai_gestion/plugins/CustomTheme/src/Template/Bake/Controller/controller.twig index 9558878..4627d60 100644 --- a/fai_gestion/plugins/CustomTheme/src/Template/Bake/Controller/controller.twig +++ b/fai_gestion/plugins/CustomTheme/src/Template/Bake/Controller/controller.twig @@ -18,6 +18,27 @@ */ #} + * Copyright 2016 Nicolas Goaziou + * + * This file is part of FAI Gestion forked from CHD Gestion. + * + * FAI Gestion is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * FAI Gestion is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with FAI Gestion. If not, see . + * + * Auto-generated code with CakePHP(tm) bake derived code. +**/ namespace {{ namespace }}\Controller{{ prefix }}; use {{ namespace }}\Controller\AppController; diff --git a/fai_gestion/plugins/CustomTheme/src/Template/Bake/Model/entity.twig b/fai_gestion/plugins/CustomTheme/src/Template/Bake/Model/entity.twig index e09794a..aaa15e5 100644 --- a/fai_gestion/plugins/CustomTheme/src/Template/Bake/Model/entity.twig +++ b/fai_gestion/plugins/CustomTheme/src/Template/Bake/Model/entity.twig @@ -24,6 +24,27 @@ {%- set accessible = Bake.getFieldAccessibility(fields, primaryKey) %} + * Copyright 2016 Nicolas Goaziou + * + * This file is part of FAI Gestion forked from CHD Gestion. + * + * FAI Gestion is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * FAI Gestion is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with FAI Gestion. If not, see . + * + * Auto-generated code with CakePHP(tm) bake derived code. +**/ namespace {{ namespace }}\Model\Entity; use Cake\ORM\Entity; diff --git a/fai_gestion/plugins/CustomTheme/src/Template/Bake/Model/table.twig b/fai_gestion/plugins/CustomTheme/src/Template/Bake/Model/table.twig index 94ad17c..2ef02e9 100644 --- a/fai_gestion/plugins/CustomTheme/src/Template/Bake/Model/table.twig +++ b/fai_gestion/plugins/CustomTheme/src/Template/Bake/Model/table.twig @@ -15,6 +15,27 @@ #} {% set annotations = DocBlock.buildTableAnnotations(associations, associationInfo, behaviors, entity, namespace) %} + * Copyright 2016 Nicolas Goaziou + * + * This file is part of FAI Gestion forked from CHD Gestion. + * + * FAI Gestion is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * FAI Gestion is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with FAI Gestion. If not, see . + * + * Auto-generated code with CakePHP(tm) bake derived code. +**/ namespace {{ namespace }}\Model\Table; {% set uses = ['use Cake\\ORM\\Query;', 'use Cake\\ORM\\RulesChecker;', 'use Cake\\ORM\\Table;', 'use Cake\\Validation\\Validator;'] %} 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 79050ef..074a30b 100644 --- a/fai_gestion/plugins/CustomTheme/src/Template/Bake/Template/index.twig +++ b/fai_gestion/plugins/CustomTheme/src/Template/Bake/Template/index.twig @@ -15,6 +15,27 @@ #} + * Copyright 2016 Nicolas Goaziou + * + * This file is part of FAI Gestion forked from CHD Gestion. + * + * FAI Gestion is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * FAI Gestion is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with FAI Gestion. If not, see . + * + * Auto-generated code with CakePHP(tm) bake derived code. +**/ +/** * @var \{{ namespace }}\View\AppView $this * @var \{{ entityClass }}[]|\Cake\Collection\CollectionInterface ${{ pluralVar }} */ diff --git a/fai_gestion/plugins/CustomTheme/src/Template/Bake/Template/view.twig b/fai_gestion/plugins/CustomTheme/src/Template/Bake/Template/view.twig index 200a2f8..bef4074 100644 --- a/fai_gestion/plugins/CustomTheme/src/Template/Bake/Template/view.twig +++ b/fai_gestion/plugins/CustomTheme/src/Template/Bake/Template/view.twig @@ -15,6 +15,27 @@ #} + * Copyright 2016 Nicolas Goaziou + * + * This file is part of FAI Gestion forked from CHD Gestion. + * + * FAI Gestion is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * FAI Gestion is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with FAI Gestion. If not, see . + * + * Auto-generated code with CakePHP(tm) bake derived code. +**/ +/** * @var \{{ namespace }}\View\AppView $this * @var \{{ entityClass }} ${{ singularVar }} */ -- cgit v1.1