diff options
author | Ludovic Pouzenc <ludovic@pouzenc.fr> | 2016-05-29 22:17:21 +0200 |
---|---|---|
committer | Ludovic Pouzenc <ludovic@pouzenc.fr> | 2016-05-29 22:17:21 +0200 |
commit | e7114fbf6efce4985ea9146e4664e12ee546c343 (patch) | |
tree | 3fe53236f490e1ef71b2cf9d71ef31bea359c314 /generator/after-bake/src/Template/Equipements | |
parent | a7889db127f8c15a6609ed2344e94d0a9f068a9e (diff) | |
download | chd_gestion-e7114fbf6efce4985ea9146e4664e12ee546c343.zip chd_gestion-e7114fbf6efce4985ea9146e4664e12ee546c343.tar.gz chd_gestion-e7114fbf6efce4985ea9146e4664e12ee546c343.tar.bz2 |
Equipements : allow multiple Equipements to be added at once.Unfinished
Ipmgmt causes constraint violation if set for more than once Equipement.
Diffstat (limited to 'generator/after-bake/src/Template/Equipements')
-rw-r--r-- | generator/after-bake/src/Template/Equipements/add.ctp | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/generator/after-bake/src/Template/Equipements/add.ctp b/generator/after-bake/src/Template/Equipements/add.ctp new file mode 100644 index 0000000..c2516cd --- /dev/null +++ b/generator/after-bake/src/Template/Equipements/add.ctp @@ -0,0 +1,39 @@ +<nav class="large-2 medium-3 columns" id="actions-sidebar"> + <ul class="side-nav"> + <li class="heading"><?= __('Actions') ?></li> + <li><?= $this->Html->link(__('List Equipements'), ['action' => 'index']) ?></li> + <li><?= $this->Html->link(__('List Equipements'), ['controller' => 'Equipements', 'action' => 'index']) ?></li> + <li><?= $this->Html->link(__('New Equipement'), ['controller' => 'Equipements', 'action' => 'add']) ?></li> + <li><?= $this->Html->link(__('List Services'), ['controller' => 'Services', 'action' => 'index']) ?></li> + <li><?= $this->Html->link(__('New Service'), ['controller' => 'Services', 'action' => 'add']) ?></li> + <li><?= $this->Html->link(__('List Equipement Modeles'), ['controller' => 'EquipementModeles', 'action' => 'index']) ?></li> + <li><?= $this->Html->link(__('New Equipement Modele'), ['controller' => 'EquipementModeles', 'action' => 'add']) ?></li> + <li><?= $this->Html->link(__('List Ipmgmt'), ['controller' => 'Ipmgmt', 'action' => 'index']) ?></li> + <li><?= $this->Html->link(__('New Ipmgmt'), ['controller' => 'Ipmgmt', 'action' => 'add']) ?></li> + <li><?= $this->Html->link(__('List Relais'), ['controller' => 'Relais', 'action' => 'index']) ?></li> + <li><?= $this->Html->link(__('New Relais'), ['controller' => 'Relais', 'action' => 'add']) ?></li> + </ul> +</nav> +<div class="equipements form large-10 medium-9 columns content"> + <?= $this->Form->create($equipement) ?> + <fieldset> + <legend><?= __('Add Equipement') ?></legend> + <?php + //echo $this->Form->input('uplink_id', ['options' => $equipements, 'empty' => true]); + //echo $this->Form->input('service_id', ['options' => $services, 'empty' => true]); + //echo $this->Form->input('mac'); + echo $this->Form->input('mac', ['type'=>'textarea', 'rows'=>10, 'maxlength'=>2000]); + echo $this->Form->input('hostname'); + echo $this->Form->input('equipement_modele_id', ['options' => $equipementModeles]); + echo $this->Form->input('ipmgmt_id', ['options' => $ipmgmt, 'empty' => true]); + //echo $this->Form->input('relais_id', ['options' => $relais, 'empty' => true]); + echo $this->Form->input('equipement_mode_id', ['options' => $equipementModes]); + //echo $this->Form->input('description'); + echo $this->Form->input('date_achat', ['empty' => true, 'default' => '']); + //echo $this->Form->input('date_hs', ['empty' => true, 'default' => '']); + echo $this->Form->input('notes'); + ?> + </fieldset> + <?= $this->Form->button(__('Submit')) ?> + <?= $this->Form->end() ?> +</div> |