From 37a67ea723bb6d93421591b8f3ed15738f53ed9e Mon Sep 17 00:00:00 2001 From: Ludovic Pouzenc Date: Sat, 12 Mar 2016 00:20:18 +0100 Subject: First import. --- .../after-bake/src/Template/AdherentRoles/add.ctp | 46 ++++ .../src/Template/AdherentRoles/index.ctp | 66 ++++++ .../after-bake/src/Template/Adherents/edit.ctp | 106 ++++++++++ .../after-bake/src/Template/Adherents/index.ctp | 102 +++++++++ .../after-bake/src/Template/Adherents/view.ctp | 235 +++++++++++++++++++++ .../after-bake/src/Template/Equipements/index.ctp | 102 +++++++++ .../after-bake/src/Template/Equipements/view.ctp | 90 ++++++++ generator/after-bake/src/Template/Ipmgmt/view.ctp | 80 +++++++ .../after-bake/src/Template/Ippubliques/index.ctp | 84 ++++++++ .../after-bake/src/Template/Ippubliques/view.ctp | 79 +++++++ .../after-bake/src/Template/Layout/default.ctp | 79 +++++++ generator/after-bake/src/Template/Relais/view.ctp | 90 ++++++++ generator/after-bake/src/Template/Services/add.ctp | 48 +++++ .../after-bake/src/Template/Services/edit.ctp | 64 ++++++ .../after-bake/src/Template/Services/index.ctp | 100 +++++++++ .../after-bake/src/Template/Services/migrate.ctp | 45 ++++ .../after-bake/src/Template/Services/view.ctp | 117 ++++++++++ generator/after-bake/src/Template/Villes/view.ctp | 130 ++++++++++++ 18 files changed, 1663 insertions(+) create mode 100644 generator/after-bake/src/Template/AdherentRoles/add.ctp create mode 100644 generator/after-bake/src/Template/AdherentRoles/index.ctp create mode 100644 generator/after-bake/src/Template/Adherents/edit.ctp create mode 100644 generator/after-bake/src/Template/Adherents/index.ctp create mode 100644 generator/after-bake/src/Template/Adherents/view.ctp create mode 100644 generator/after-bake/src/Template/Equipements/index.ctp create mode 100644 generator/after-bake/src/Template/Equipements/view.ctp create mode 100644 generator/after-bake/src/Template/Ipmgmt/view.ctp create mode 100644 generator/after-bake/src/Template/Ippubliques/index.ctp create mode 100644 generator/after-bake/src/Template/Ippubliques/view.ctp create mode 100644 generator/after-bake/src/Template/Layout/default.ctp create mode 100644 generator/after-bake/src/Template/Relais/view.ctp create mode 100644 generator/after-bake/src/Template/Services/add.ctp create mode 100644 generator/after-bake/src/Template/Services/edit.ctp create mode 100644 generator/after-bake/src/Template/Services/index.ctp create mode 100644 generator/after-bake/src/Template/Services/migrate.ctp create mode 100644 generator/after-bake/src/Template/Services/view.ctp create mode 100644 generator/after-bake/src/Template/Villes/view.ctp (limited to 'generator/after-bake/src/Template') diff --git a/generator/after-bake/src/Template/AdherentRoles/add.ctp b/generator/after-bake/src/Template/AdherentRoles/add.ctp new file mode 100644 index 0000000..75d9401 --- /dev/null +++ b/generator/after-bake/src/Template/AdherentRoles/add.ctp @@ -0,0 +1,46 @@ +<% +/** + * Copyright 2016 Ludovic Pouzenc + * Copyright 2016 Nicolas Goaziou + * + * This file is part of CHD Gestion. + * + * CHD 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. + * + * CHD 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 CHD Gestion. If not, see . +**/ +%> + +
+ Form->create($adherentRole) ?> +
+ + Form->input('adherent_id', ['options' => $adherents, 'default' => $defaultAdherent]); + echo $this->Form->input('adherent_role_type_id', ['options' => $adherentRoleTypes, 'default' => 7]); + echo $this->Form->input('ville_id', ['options' => $villes, 'empty' => true]); + ?> +
+ Form->button(__('Submit')) ?> + Form->end() ?> +
diff --git a/generator/after-bake/src/Template/AdherentRoles/index.ctp b/generator/after-bake/src/Template/AdherentRoles/index.ctp new file mode 100644 index 0000000..4ce3305 --- /dev/null +++ b/generator/after-bake/src/Template/AdherentRoles/index.ctp @@ -0,0 +1,66 @@ +<% +/** + * Copyright 2016 Ludovic Pouzenc + * Copyright 2016 Nicolas Goaziou + * + * This file is part of CHD Gestion. + * + * CHD 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. + * + * CHD 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 CHD Gestion. If not, see . +**/ +%> + +
+

+ + + + + + + + + + + + + + + + + + + +
Paginator->sort('adherent_id') ?>Paginator->sort('adherent_role_type_id') ?>Paginator->sort('ville_id') ?>
has('adherent') ? $this->Html->link($adherentRole->adherent->title, ['controller' => 'Adherents', 'action' => 'view', $adherentRole->adherent->id]) : '' ?>has('adherent_role_type') ? $this->Html->link($adherentRole->adherent_role_type->title, ['controller' => 'AdherentRoleTypes', 'action' => 'view', $adherentRole->adherent_role_type->id]) : '' ?>has('ville') ? $this->Html->link($adherentRole->ville->title, ['controller' => 'Villes', 'action' => 'view', $adherentRole->ville->id]) : '' ?> + Form->postLink(__('Delete'), ['action' => 'delete', $adherentRole->id], ['confirm' => __('Are you sure you want to delete # {0}?', $adherentRole->id)]) ?> +
+
+
    + Paginator->prev('< ' . __('previous')) ?> + Paginator->numbers() ?> + Paginator->next(__('next') . ' >') ?> +
+
+ +
diff --git a/generator/after-bake/src/Template/Adherents/edit.ctp b/generator/after-bake/src/Template/Adherents/edit.ctp new file mode 100644 index 0000000..388484c --- /dev/null +++ b/generator/after-bake/src/Template/Adherents/edit.ctp @@ -0,0 +1,106 @@ +<% +/** + * Copyright 2016 Ludovic Pouzenc + * Copyright 2016 Nicolas Goaziou + * + * This file is part of CHD Gestion. + * + * CHD 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. + * + * CHD 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 CHD Gestion. If not, see . +**/ +%> + +
+ Form->create($adherent) ?> +
+ +
+ Form->input('adherent_statut_id', ['options' => $adherentStatuts]); ?> +
+
+ Form->input('num_adt_ttn'); ?> +
+
+
+ Form->input('adherent_type_id', ['options' => $adherentTypes]); + echo $this->Form->input('civilite_id', ['options' => $civilites]); + echo $this->Form->input('nom'); + echo $this->Form->input('prenom'); + echo $this->Form->input('raison'); + echo $this->Form->input('tel_fixe1'); + echo $this->Form->input('tel_mobile1'); + ?> +
+
+ Form->input('adresse1'); + echo $this->Form->input('adresse2'); + echo $this->Form->input('ville_id', ['options' => $villes]); + echo $this->Form->input('mail1'); + echo $this->Form->input('mail2'); + echo $this->Form->input('tel_fixe2'); + echo $this->Form->input('tel_mobile2'); + ?> +
+
+
+ Form->input('proprio'); + echo $this->Form->input('nom2'); + echo $this->Form->input('prenom2'); + ?> +
+
+ Form->input('notes', ['rows' => 7]); ?> +
+
+ Form->button(__('Submit')) ?> + Form->end() ?> + +
diff --git a/generator/after-bake/src/Template/Adherents/index.ctp b/generator/after-bake/src/Template/Adherents/index.ctp new file mode 100644 index 0000000..3a5fbaf --- /dev/null +++ b/generator/after-bake/src/Template/Adherents/index.ctp @@ -0,0 +1,102 @@ +<% +/** + * Copyright 2016 Ludovic Pouzenc + * Copyright 2016 Nicolas Goaziou + * + * This file is part of CHD Gestion. + * + * CHD 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. + * + * CHD 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 CHD Gestion. If not, see . +**/ +%> + +
+ +
+
Progression : %
+
+

+ + Form->create(null) . "\n" ?> + + + + + + + + + + + + + + + + + + Form->end() . "\n" ?> + + + + + + + + + + + + + + +
+ Form->input('q', [ + 'placeholder' => __('Rechercher...'), + 'empty' => __('Rechercher...') + ]) ?> + + Form->input('ville_id', [ + 'placeholder' => __('Villes'), + 'empty' => __('Villes') + ]) ?> + + Form->button('Filter', ['type' => 'submit']) . "\n" ?> + Html->link('Reset', ['action' => 'index']) . "\n" ?> +
Paginator->sort('nom') ?>Paginator->sort('prenom') ?>Paginator->sort('raison') ?>Paginator->sort('tel_mobile1') ?>Paginator->sort('adherent_type_id') ?>Paginator->sort('ville_id') ?>Paginator->sort('adherent_statut_id') ?>
nom) ?>prenom) ?>raison) ?>tel_mobile1) ?>has('adherent_type') ? h($adherent->adherent_type->title) : '' ?>has('ville') ? $this->Html->link($adherent->ville->title, ['controller' => 'Villes', 'action' => 'view', $adherent->ville->id]) : '' ?>has('adherent_statut') ? h($adherent->adherent_statut->title) : '' ?> + Html->link(__('View'), ['action' => 'view', $adherent->id]) ?> + Html->link(__('Edit'), ['action' => 'edit', $adherent->id]) ?> +
+
+
    + Paginator->prev('< ' . __('previous')) ?> + Paginator->numbers() ?> + Paginator->next(__('next') . ' >') ?> +
+
+ +
diff --git a/generator/after-bake/src/Template/Adherents/view.ctp b/generator/after-bake/src/Template/Adherents/view.ctp new file mode 100644 index 0000000..74b6326 --- /dev/null +++ b/generator/after-bake/src/Template/Adherents/view.ctp @@ -0,0 +1,235 @@ +<% +/** + * Copyright 2016 Ludovic Pouzenc + * Copyright 2016 Nicolas Goaziou + * + * This file is part of CHD Gestion. + * + * CHD 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. + * + * CHD 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 CHD Gestion. If not, see . +**/ +%> + +
+

title) ?>

+ + + + + +
adherent_statut->title ?>
+ + + + + +
num_adt_ttn) ?>
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
adherent_type->title ?>
civilite->title ?>
nom) ?>
prenom) ?>
raison) ?>
tel_fixe1) ?>
tel_mobile1) ?>
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
adresse1) ?>
adresse2) ?>
has('ville') ? $this->Html->link($adherent->ville->title, ['controller' => 'Villes', 'action' => 'view', $adherent->ville->id]) : '' ?>
mail1) ?>
mail2) ?>
tel_fixe2) ?>
tel_mobile2) ?>
+
+ + + + + + + + + + + + + + + + + + + + + +
proprio) ?>
nom2) ?>
prenom2) ?>
created) ?>
modified) ?>
+ adherent_roles)): ?> + + adherent_roles as $k => $adherentRole): ?> + + + + + +
adherent_role_type->title) ?> + has('ville') ? h($adherentRole->ville->title) : '' ?> + Form->postLink(__('Delete'), ['controller' => 'AdherentRoles', 'action' => 'delete', $adherentRole->id], ['confirm' => __('Are you sure you want to delete # {0}?', $adherentRole->id)]) ?> +
+ +
+
+

+ Text->autoParagraph(h($adherent->notes)); ?> +
+ +
diff --git a/generator/after-bake/src/Template/Equipements/index.ctp b/generator/after-bake/src/Template/Equipements/index.ctp new file mode 100644 index 0000000..75d7919 --- /dev/null +++ b/generator/after-bake/src/Template/Equipements/index.ctp @@ -0,0 +1,102 @@ +<% +/** + * Copyright 2016 Ludovic Pouzenc + * Copyright 2016 Nicolas Goaziou + * + * This file is part of CHD Gestion. + * + * CHD 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. + * + * CHD 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 CHD Gestion. If not, see . +**/ +%> + +
+

+ + Form->create(null) . "\n" ?> + + + + + + + + + + + + + + + + + + + Form->end() . "\n" ?> + + + + + + + + + + + + + + +
+ Form->input('q', [ + 'placeholder' => __('Adresse MAC...'), + 'empty' => __('Adresse MAC...') + ]) ?> + + Form->input('equipement_modele_id', [ + 'placeholder' => __('Equipement Modeles'), + 'empty' => __('Equipement Modeles') + ]) ?> + + Form->input('relais_id', [ + 'placeholder' => __('Relais'), + 'empty' => __('Relais') + ]) ?> + + Form->button('Filter', ['type' => 'submit']) . "\n" ?> + Html->link('Reset', ['action' => 'index']) . "\n" ?> +
Paginator->sort('mac') ?>Paginator->sort('ipmgmt_id') ?>Paginator->sort('equipement_mode_id') ?>Paginator->sort('equipement_modele_id') ?>Paginator->sort('service_id') ?>Paginator->sort('relais_id') ?>Paginator->sort('uplink_id') ?>
mac) ?>has('ipmgmt') ? $this->Html->link($equipement->ipmgmt->title, ['controller' => 'Ipmgmt', 'action' => 'view', $equipement->ipmgmt->id]) : '' ?>equipement_mode_id) ?>has('equipement_modele') ? $this->Html->link($equipement->equipement_modele->title, ['controller' => 'EquipementModeles', 'action' => 'view', $equipement->equipement_modele->id]) : '' ?>has('service') ? $this->Html->link($equipement->service->title, ['controller' => 'Services', 'action' => 'view', $equipement->service->id]) : '' ?>has('relais') ? $this->Html->link($equipement->relais->title, ['controller' => 'Relais', 'action' => 'view', $equipement->relais->id]) : '' ?>has('uplink_id') ? $this->Html->link($equipement->uplink_id, ['controller' => 'Equipements', 'action' => 'view', $equipement->uplink_id]) : '' ?> + Html->link(__('View'), ['action' => 'view', $equipement->id]) ?> + Html->link(__('Edit'), ['action' => 'edit', $equipement->id]) ?> +
+
+
    + Paginator->prev('< ' . __('previous')) ?> + Paginator->numbers() ?> + Paginator->next(__('next') . ' >') ?> +
+
+ +
diff --git a/generator/after-bake/src/Template/Equipements/view.ctp b/generator/after-bake/src/Template/Equipements/view.ctp new file mode 100644 index 0000000..5f22722 --- /dev/null +++ b/generator/after-bake/src/Template/Equipements/view.ctp @@ -0,0 +1,90 @@ +<% +/** + * Copyright 2016 Ludovic Pouzenc + * Copyright 2016 Nicolas Goaziou + * + * This file is part of CHD Gestion. + * + * CHD 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. + * + * CHD 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 CHD Gestion. If not, see . +**/ +%> + +
+

id) ?>

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
mac) ?>
has('ipmgmt') ? $this->Html->link($equipement->ipmgmt->title, ['controller' => 'Ipmgmt', 'action' => 'view', $equipement->ipmgmt->id]) : '' ?>
has('equipement_modele') ? $this->Html->link($equipement->equipement_modele->title, ['controller' => 'EquipementModeles', 'action' => 'view', $equipement->equipement_modele->id]) : '' ?>
has('relais') ? $this->Html->link($equipement->relais->title, ['controller' => 'Relais', 'action' => 'view', $equipement->relais->id]) : '' ?>
has('service') ? $this->Html->link($equipement->service->title, ['controller' => 'Services', 'action' => 'view', $equipement->service->id]) : '' ?>
has('uplink_id') ? $this->Html->link($equipement->uplink_id, ['controller' => 'Equipements', 'action' => 'view', $equipement->uplink_id]) : '' ?>
has('equipement_mode') ? $this->Html->link($equipement->equipement_mode->id, ['controller' => 'EquipementModes', 'action' => 'view', $equipement->equipement_mode->id]) : '' ?>
description) ?>
date_achat) ?>
date_hs) ?>
+
+

+ Text->autoParagraph(h($equipement->notes)); ?> +
+
diff --git a/generator/after-bake/src/Template/Ipmgmt/view.ctp b/generator/after-bake/src/Template/Ipmgmt/view.ctp new file mode 100644 index 0000000..d2d27d4 --- /dev/null +++ b/generator/after-bake/src/Template/Ipmgmt/view.ctp @@ -0,0 +1,80 @@ +<% +/** + * Copyright 2016 Ludovic Pouzenc + * Copyright 2016 Nicolas Goaziou + * + * This file is part of CHD Gestion. + * + * CHD 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. + * + * CHD 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 CHD Gestion. If not, see . +**/ +%> + +
+

title) ?>

+ + + + + + + + + + + + + +
ip4) ?>
ip6) ?>
Number->format($ipmgmt->id) ?>
+ +
diff --git a/generator/after-bake/src/Template/Ippubliques/index.ctp b/generator/after-bake/src/Template/Ippubliques/index.ctp new file mode 100644 index 0000000..72f9c25 --- /dev/null +++ b/generator/after-bake/src/Template/Ippubliques/index.ctp @@ -0,0 +1,84 @@ +<% +/** + * Copyright 2016 Ludovic Pouzenc + * Copyright 2016 Nicolas Goaziou + * + * This file is part of CHD Gestion. + * + * CHD 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. + * + * CHD 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 CHD Gestion. If not, see . +**/ +%> + +
+

+ + Form->create(null) . "\n" ?> + + + + + + + + + + + + + + + Form->end() . "\n" ?> + + + + + + + + + + + +
+ Form->input('q', [ + 'placeholder' => __('Rechercher...'), + 'empty' => __('Rechercher...') + ]) ?> + + Form->input('secteur_id', [ + 'placeholder' => __('Secteurs'), + 'empty' => __('Secteurs') + ]) ?> + + Form->button('Filter', ['type' => 'submit']) . "\n" ?> + Html->link('Reset', ['action' => 'index']) . "\n" ?> +
Paginator->sort('ip4') ?>Paginator->sort('ip6') ?>Paginator->sort('secteur_id') ?>
ip4) ?>ip6) ?>has('secteur') ? h($ippublique->secteur->title) : '' ?>services) ? __('oui'): __('non') ?> + Html->link(__('View'), ['action' => 'view', $ippublique->ip4]) ?> +
+
+
    + Paginator->prev('< ' . __('previous')) ?> + Paginator->numbers() ?> + Paginator->next(__('next') . ' >') ?> +
+
+ +
diff --git a/generator/after-bake/src/Template/Ippubliques/view.ctp b/generator/after-bake/src/Template/Ippubliques/view.ctp new file mode 100644 index 0000000..3082b9e --- /dev/null +++ b/generator/after-bake/src/Template/Ippubliques/view.ctp @@ -0,0 +1,79 @@ +<% +/** + * Copyright 2016 Ludovic Pouzenc + * Copyright 2016 Nicolas Goaziou + * + * This file is part of CHD Gestion. + * + * CHD 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. + * + * CHD 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 CHD Gestion. If not, see . +**/ +%> + +
+

ip4) ?>

+ + + + + + + + + + + + + +
ip4) ?>
ip6) ?>
secteur->title ?>
+ +
diff --git a/generator/after-bake/src/Template/Layout/default.ctp b/generator/after-bake/src/Template/Layout/default.ctp new file mode 100644 index 0000000..bcc5f05 --- /dev/null +++ b/generator/after-bake/src/Template/Layout/default.ctp @@ -0,0 +1,79 @@ + + * Copyright 2016 Nicolas Goaziou + * + * This file is part of CHD Gestion. + * + * CHD 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. + * + * CHD 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 CHD Gestion. If not, see . +**/ +/** + * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) + * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) + * + * Licensed under The MIT License + * For full copyright and license information, please see the LICENSE.txt + * Redistributions of files must retain the above copyright notice. + * + * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) + * @link http://cakephp.org CakePHP(tm) Project + * @since 0.10.0 + * @license http://www.opensource.org/licenses/mit-license.php MIT License + */ + +$cakeDescription = 'CHD Gestion'; +?> + + + + Html->charset() ?> + + + <?= $cakeDescription ?>: + <?= $this->fetch('title') ?> + + Html->meta('icon') ?> + + Html->css('base.css') ?> + Html->css('cake.css') ?> + Html->css('local.css') ?> + + fetch('meta') ?> + fetch('css') ?> + fetch('script') ?> + + + + Flash->render() ?> +
+ fetch('content') ?> +
+
+
+ + diff --git a/generator/after-bake/src/Template/Relais/view.ctp b/generator/after-bake/src/Template/Relais/view.ctp new file mode 100644 index 0000000..ee6d9af --- /dev/null +++ b/generator/after-bake/src/Template/Relais/view.ctp @@ -0,0 +1,90 @@ +<% +/** + * Copyright 2016 Ludovic Pouzenc + * Copyright 2016 Nicolas Goaziou + * + * This file is part of CHD Gestion. + * + * CHD 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. + * + * CHD 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 CHD Gestion. If not, see . +**/ +%> + +
+

title) ?>

+ + + + + + + + + + + + + + + + + + + + + + + + + +
title) ?>
secteur->title ?>
has('ville') ? $this->Html->link($relais->ville->title, ['controller' => 'Villes', 'action' => 'view', $relais->ville->id]) : '' ?>
Number->format($relais->id) ?>
Number->format($relais->gps_long) ?>
Number->format($relais->gps_lat) ?>
+ +
diff --git a/generator/after-bake/src/Template/Services/add.ctp b/generator/after-bake/src/Template/Services/add.ctp new file mode 100644 index 0000000..141c660 --- /dev/null +++ b/generator/after-bake/src/Template/Services/add.ctp @@ -0,0 +1,48 @@ +<% +/** + * Copyright 2016 Ludovic Pouzenc + * Copyright 2016 Nicolas Goaziou + * + * This file is part of CHD Gestion. + * + * CHD 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. + * + * CHD 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 CHD Gestion. If not, see . +**/ +%> + +
+ Form->create($service) ?> +
+ + Form->input('adherent_id', ['options' => $adherents, 'default' => $defaultAdherent]); + echo $this->Form->input('service_type_id', ['options' => $serviceTypes, 'default' => $defaultServiceType]); + //echo $this->Form->input('service_statut_id', ['options' => $serviceStatuts, 'default' => $defaultServiceStatut]); + echo $this->Form->input('description'); + ?> +
+ Form->button(__('Submit')) ?> + Form->end() ?> +
diff --git a/generator/after-bake/src/Template/Services/edit.ctp b/generator/after-bake/src/Template/Services/edit.ctp new file mode 100644 index 0000000..1b8f721 --- /dev/null +++ b/generator/after-bake/src/Template/Services/edit.ctp @@ -0,0 +1,64 @@ +<% +/** + * Copyright 2016 Ludovic Pouzenc + * Copyright 2016 Nicolas Goaziou + * + * This file is part of CHD Gestion. + * + * CHD 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. + * + * CHD 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 CHD Gestion. If not, see . +**/ +%> + +
+ Form->create($service) ?> +
+ + + + + + + + + + + + + + + + + + +
adherent->title ?>
service_type->title ?>
ippublique_id ?>
date_debut) ?>
+ Form->input('description'); + echo $this->Form->input('prix_ht'); + echo $this->Form->input('lat'); + echo $this->Form->input('lng'); + ?> +
+ Form->button(__('Submit')) ?> + Form->end() ?> +
diff --git a/generator/after-bake/src/Template/Services/index.ctp b/generator/after-bake/src/Template/Services/index.ctp new file mode 100644 index 0000000..5bdffc8 --- /dev/null +++ b/generator/after-bake/src/Template/Services/index.ctp @@ -0,0 +1,100 @@ +<% +/** + * Copyright 2016 Ludovic Pouzenc + * Copyright 2016 Nicolas Goaziou + * + * This file is part of CHD Gestion. + * + * CHD 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. + * + * CHD 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 CHD Gestion. If not, see . +**/ +%> + +
+

+ + Form->create(null) . "\n" ?> + + + + + + + + + + + + + + + + + + Form->end() . "\n" ?> + + + + + + + + + + + + + +
+ Form->input('service_type_id', [ + 'placeholder' => __('Service Type'), + 'empty' => __('Service Type') + ]) ?> + + Form->input('service_statut_id', [ + 'placeholder' => __('Service Statut'), + 'empty' => __('Service Statut') + ]) ?> + + Form->input('relais_id', [ + 'placeholder' => __('Relais'), + 'empty' => __('Relais') + ]) ?> + + Form->button('Filter', ['type' => 'submit']) . "\n" ?> + Html->link('Reset', ['action' => 'index']) . "\n" ?> +
Paginator->sort('adherent_id') ?>Paginator->sort('service_type_id') ?>Paginator->sort('service_statut_id') ?>Paginator->sort('ippublique_id') ?>Paginator->sort('relais_id') ?>Paginator->sort('prix_ht') ?>
has('adherent') ? $this->Html->link($service->adherent->title, ['controller' => 'Adherents', 'action' => 'view', $service->adherent->id]) : '' ?>has('service_type') ? h($service->service_type->title) : '' ?>has('service_statut') ? h($service->service_statut->title) : '' ?>has('ippublique') ? $this->Html->link($service->ippublique->ip4, ['controller' => 'Ippubliques', 'action' => 'view', $service->ippublique->ip4]) : '' ?>has('relais') ? $this->Html->link($service->relais->title, ['controller' => 'Relais', 'action' => 'view', $service->relais->id]) : '' ?>Number->format($service->prix_ht) ?> + Html->link(__('View'), ['action' => 'view', $service->id]) ?> + Html->link(__('Edit'), ['action' => 'edit', $service->id]) ?> +
+
+
    + Paginator->prev('< ' . __('previous')) ?> + Paginator->numbers() ?> + Paginator->next(__('next') . ' >') ?> +
+
+ +
diff --git a/generator/after-bake/src/Template/Services/migrate.ctp b/generator/after-bake/src/Template/Services/migrate.ctp new file mode 100644 index 0000000..41c3cd4 --- /dev/null +++ b/generator/after-bake/src/Template/Services/migrate.ctp @@ -0,0 +1,45 @@ +<% +/** + * Copyright 2016 Ludovic Pouzenc + * Copyright 2016 Nicolas Goaziou + * + * This file is part of CHD Gestion. + * + * CHD 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. + * + * CHD 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 CHD Gestion. If not, see . +**/ +%> + +
+

title) ?>

+
+
+	
+
diff --git a/generator/after-bake/src/Template/Services/view.ctp b/generator/after-bake/src/Template/Services/view.ctp new file mode 100644 index 0000000..7ff07d6 --- /dev/null +++ b/generator/after-bake/src/Template/Services/view.ctp @@ -0,0 +1,117 @@ +<% +/** + * Copyright 2016 Ludovic Pouzenc + * Copyright 2016 Nicolas Goaziou + * + * This file is part of CHD Gestion. + * + * CHD 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. + * + * CHD 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 CHD Gestion. If not, see . +**/ +%> + +
+

title) ?>

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
has('adherent') ? $this->Html->link($service->adherent->title, ['controller' => 'Adherents', 'action' => 'view', $service->adherent->id]) : '' ?>
service_type->title ?>
service_statut->title ?>
has('ippublique') ? $this->Html->link($service->ippublique->title, ['controller' => 'Ippubliques', 'action' => 'view', $service->ippublique->ip4]) : '' ?>
description) ?>
Number->format($service->prix_ht) ?>
Number->format($service->lat) ?>
Number->format($service->lng) ?>
date_debut) ?>
date_fin) ?>
created) ?>
modified) ?>
+ +
diff --git a/generator/after-bake/src/Template/Villes/view.ctp b/generator/after-bake/src/Template/Villes/view.ctp new file mode 100644 index 0000000..ce72cc8 --- /dev/null +++ b/generator/after-bake/src/Template/Villes/view.ctp @@ -0,0 +1,130 @@ +<% +/** + * Copyright 2016 Ludovic Pouzenc + * Copyright 2016 Nicolas Goaziou + * + * This file is part of CHD Gestion. + * + * CHD 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. + * + * CHD 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 CHD Gestion. If not, see . +**/ +%> + +
+

title) ?>

+ + + + + + + + + + + + + +
title) ?>
cp) ?>
tel_contact) ?>
+ + + +
-- cgit v1.1