summaryrefslogtreecommitdiff
path: root/generator/after-bake/src/Template/Villes/view.ctp
blob: 9f183fd417c7c94acecb7828d50d5d09f3174389 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
<?php
/**
 * 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>