summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Pouzenc <ludovic@pouzenc.fr>2018-07-19 00:21:45 +0200
committerLudovic Pouzenc <ludovic@pouzenc.fr>2018-07-19 00:21:45 +0200
commit9a73d523ebd6035fac8deaa347ce41e4eda13232 (patch)
tree3ff104a138ac0326a98ca873ee640816a08f8d26
parent0dd134b71539f38d84db3b023ba42d2650df278a (diff)
downloadchd_gestion-9a73d523ebd6035fac8deaa347ce41e4eda13232.zip
chd_gestion-9a73d523ebd6035fac8deaa347ce41e4eda13232.tar.gz
chd_gestion-9a73d523ebd6035fac8deaa347ce41e4eda13232.tar.bz2
Add Copyright & GPL3+ notice to Templates
-rw-r--r--app-from-scratch.sh7
-rw-r--r--fai_gestion/plugins/CustomTheme/src/Template/Bake/Controller/controller.twig21
-rw-r--r--fai_gestion/plugins/CustomTheme/src/Template/Bake/Model/entity.twig21
-rw-r--r--fai_gestion/plugins/CustomTheme/src/Template/Bake/Model/table.twig21
-rw-r--r--fai_gestion/plugins/CustomTheme/src/Template/Bake/Template/index.twig21
-rw-r--r--fai_gestion/plugins/CustomTheme/src/Template/Bake/Template/view.twig21
6 files changed, 112 insertions, 0 deletions
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 @@
*/
#}
<?php
+/**
+ * Copyright 2016-2018 Ludovic Pouzenc <ludovic@pouzenc.fr>
+ * Copyright 2016 Nicolas Goaziou <mail@nicolasgoaziou.fr>
+ *
+ * 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 <http://www.gnu.org/licenses/>.
+ *
+ * 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) %}
<?php
+/**
+ * Copyright 2016-2018 Ludovic Pouzenc <ludovic@pouzenc.fr>
+ * Copyright 2016 Nicolas Goaziou <mail@nicolasgoaziou.fr>
+ *
+ * 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 <http://www.gnu.org/licenses/>.
+ *
+ * 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) %}
<?php
+/**
+ * Copyright 2016-2018 Ludovic Pouzenc <ludovic@pouzenc.fr>
+ * Copyright 2016 Nicolas Goaziou <mail@nicolasgoaziou.fr>
+ *
+ * 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 <http://www.gnu.org/licenses/>.
+ *
+ * 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 @@
#}
<?php
/**
+ * Copyright 2016-2018 Ludovic Pouzenc <ludovic@pouzenc.fr>
+ * Copyright 2016 Nicolas Goaziou <mail@nicolasgoaziou.fr>
+ *
+ * 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 <http://www.gnu.org/licenses/>.
+ *
+ * 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 @@
#}
<?php
/**
+ * Copyright 2016-2018 Ludovic Pouzenc <ludovic@pouzenc.fr>
+ * Copyright 2016 Nicolas Goaziou <mail@nicolasgoaziou.fr>
+ *
+ * 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 <http://www.gnu.org/licenses/>.
+ *
+ * Auto-generated code with CakePHP(tm) bake derived code.
+**/
+/**
* @var \{{ namespace }}\View\AppView $this
* @var \{{ entityClass }} ${{ singularVar }}
*/