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/Adherents/edit.ctp | 106 ++++++++++ .../after-bake/src/Template/Adherents/index.ctp | 102 +++++++++ .../after-bake/src/Template/Adherents/view.ctp | 235 +++++++++++++++++++++ 3 files changed, 443 insertions(+) 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 (limited to 'generator/after-bake/src/Template/Adherents') 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)); ?> +
+ +
-- cgit v1.1