summaryrefslogtreecommitdiff
path: root/generator/after-bake/src/Template/Villes/view.ctp
diff options
context:
space:
mode:
authorLudovic Pouzenc <ludovic@pouzenc.fr>2016-03-12 00:20:18 +0100
committerLudovic Pouzenc <ludovic@pouzenc.fr>2016-03-12 00:20:18 +0100
commit37a67ea723bb6d93421591b8f3ed15738f53ed9e (patch)
tree38b58703b82eaab20975d6e648533eb44598938e /generator/after-bake/src/Template/Villes/view.ctp
parenta6104f47f7a0534664f8f3740f303f01e7e7399e (diff)
downloadchd_gestion-37a67ea723bb6d93421591b8f3ed15738f53ed9e.zip
chd_gestion-37a67ea723bb6d93421591b8f3ed15738f53ed9e.tar.gz
chd_gestion-37a67ea723bb6d93421591b8f3ed15738f53ed9e.tar.bz2
First import.
Diffstat (limited to 'generator/after-bake/src/Template/Villes/view.ctp')
-rw-r--r--generator/after-bake/src/Template/Villes/view.ctp130
1 files changed, 130 insertions, 0 deletions
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 <ludovic@pouzenc.fr>
+ * Copyright 2016 Nicolas Goaziou <mail@nicolasgoaziou.fr>
+ *
+ * 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 <http://www.gnu.org/licenses/>.
+**/
+%>
+<nav class="large-2 medium-3 columns" id="actions-sidebar">
+ <ul class="side-nav">
+ <li class="heading"><?= __('Actions') ?></li>
+ <li><?= $this->Html->link(__('Edit Ville'), ['action' => 'edit', $ville->id]) ?> </li>
+ <li><?= $this->Html->link(__('List Villes'), ['action' => 'index']) ?> </li>
+ </ul>
+</nav>
+<div class="villes view large-10 medium-9 columns content">
+ <h3><?= h($ville->title) ?></h3>
+ <table class="vertical-table">
+ <tr>
+ <th><?= __('Title') ?></th>
+ <td><?= h($ville->title) ?></td>
+ </tr>
+ <tr>
+ <th><?= __('Cp') ?></th>
+ <td><?= h($ville->cp) ?></td>
+ </tr>
+ <tr>
+ <th><?= __('Tel Contact') ?></th>
+ <td><?= h($ville->tel_contact) ?></td>
+ </tr>
+ </table>
+ <div class="related">
+ <h4><?= __('Related Relais') ?></h4>
+ <?php if (!empty($ville->relais)): ?>
+ <table cellpadding="0" cellspacing="0">
+ <tr>
+ <th><?= __('Id') ?></th>
+ <th><?= __('Title') ?></th>
+ <th><?= __('Secteur Id') ?></th>
+ <th><?= __('Ville Id') ?></th>
+ <th><?= __('Gps Long') ?></th>
+ <th><?= __('Gps Lat') ?></th>
+ <th class="actions"><?= __('Actions') ?></th>
+ </tr>
+ <?php foreach ($ville->relais as $relais): ?>
+ <tr>
+ <td><?= h($relais->id) ?></td>
+ <td><?= h($relais->title) ?></td>
+ <td><?= h($relais->secteur_id) ?></td>
+ <td><?= h($relais->ville_id) ?></td>
+ <td><?= h($relais->gps_long) ?></td>
+ <td><?= h($relais->gps_lat) ?></td>
+ <td class="actions">
+ <?= $this->Html->link(__('View'), ['controller' => 'Relais', 'action' => 'view', $relais->id]) ?>
+ <?= $this->Html->link(__('Edit'), ['controller' => 'Relais', 'action' => 'edit', $relais->id]) ?>
+ </td>
+ </tr>
+ <?php endforeach; ?>
+ </table>
+ <?php endif; ?>
+ </div>
+ <div class="related">
+ <h4><?= __('Related Adherent Roles') ?></h4>
+ <?php if (!empty($ville->adherent_roles)): ?>
+ <table cellpadding="0" cellspacing="0">
+ <tr>
+ <th><?= __('Adherent') ?></th>
+ <th><?= __('Adherent role') ?></th>
+ <th class="actions"><?= __('Actions') ?></th>
+ </tr>
+ <?php foreach ($ville->adherent_roles as $adherentRole): ?>
+ <tr>
+ <td><?= $adherentRole->has('adherent') ? $this->Html->link($adherentRole->adherent->title, ['controller' => 'Adherents', 'action' => 'view', $adherentRole->adherent->id]) : '' ?></td>
+ <td><?= $adherentRole->has('adherent_role_type') ? $this->Html->link($adherentRole->adherent_role_type->title, ['controller' => 'AdherentRoleTypes', 'action' => 'view', $adherentRole->adherent_role_type->id]) : '' ?></td>
+ <td class="actions">
+ <?= $this->Form->postLink(__('Delete'), ['action' => 'delete', $adherentRole->id], ['confirm' => __('Are you sure you want to delete # {0}?', $adherentRole->id)]) ?>
+ </td>
+ </tr>
+ <?php endforeach; ?>
+ </table>
+ <?php endif; ?>
+ </div>
+ <div class="related">
+ <h4><?= __('Related Attente Connexions') ?></h4>
+ <?php if (!empty($ville->attente_connexions)): ?>
+ <table cellpadding="0" cellspacing="0">
+ <tr>
+ <th><?= __('Date Demande') ?></th>
+ <th><?= __('Nom') ?></th>
+ <th><?= __('Prenom') ?></th>
+ <th><?= __('Raison') ?></th>
+ <th><?= __('Telephone') ?></th>
+ <th><?= __('Mail') ?></th>
+ <th><?= __('Adresse1') ?></th>
+ <th><?= __('Notes') ?></th>
+ <th class="actions"><?= __('Actions') ?></th>
+ </tr>
+ <?php foreach ($ville->attente_connexions as $attenteConnexions): ?>
+ <tr>
+ <td><?= h($attenteConnexions->date_demande) ?></td>
+ <td><?= h($attenteConnexions->nom) ?></td>
+ <td><?= h($attenteConnexions->prenom) ?></td>
+ <td><?= h($attenteConnexions->raison) ?></td>
+ <td><?= h($attenteConnexions->telephone) ?></td>
+ <td><?= h($attenteConnexions->mail) ?></td>
+ <td><?= h($attenteConnexions->adresse1) ?></td>
+ <td><?= h($attenteConnexions->notes) ?></td>
+ <td class="actions">
+ <?= $this->Html->link(__('View'), ['controller' => 'AttenteConnexions', 'action' => 'view', $attenteConnexions->id]) ?>
+ <?= $this->Html->link(__('Edit'), ['controller' => 'AttenteConnexions', 'action' => 'edit', $attenteConnexions->id]) ?>
+ </td>
+ </tr>
+ <?php endforeach; ?>
+ </table>
+ <?php endif; ?>
+ </div>
+</div>