Commit d6960faf1c28312509e46a97e7d25c2495809843
1 parent
5e70ff0b
Exists in
master
and in
3 other branches
Migration de plusieurs vues de formulaire (add et edit) :
- SurCategorie - Categorie - SousCategorie - GroupesMetier - GroupesThematique - Organisme - Sites - Type Suivi Implémentation des nombres d'association dans materiels->index
Showing
27 changed files
with
213 additions
and
104 deletions
Show diff stats
src/Controller/CategoriesController.php
... | ... | @@ -55,10 +55,10 @@ class CategoriesController extends AppController |
55 | 55 | if ($this->request->is('post')) { |
56 | 56 | $category = $this->Categories->patchEntity($category, $this->request->data); |
57 | 57 | if ($this->Categories->save($category)) { |
58 | - $this->Flash->success(__('The category has been saved.')); | |
58 | + $this->Flash->success(__('La catégorie a bien été ajouté.')); | |
59 | 59 | return $this->redirect(['action' => 'index']); |
60 | 60 | } else { |
61 | - $this->Flash->error(__('The category could not be saved. Please, try again.')); | |
61 | + $this->Flash->error(__('La catégorie n\'a pas pu être ajouté.')); | |
62 | 62 | } |
63 | 63 | } |
64 | 64 | $surCategories = $this->Categories->SurCategories->find('list', ['limit' => 200]); |
... | ... | @@ -81,10 +81,10 @@ class CategoriesController extends AppController |
81 | 81 | if ($this->request->is(['patch', 'post', 'put'])) { |
82 | 82 | $category = $this->Categories->patchEntity($category, $this->request->data); |
83 | 83 | if ($this->Categories->save($category)) { |
84 | - $this->Flash->success(__('The category has been saved.')); | |
84 | + $this->Flash->success(__('La catégorie a bien été édité.')); | |
85 | 85 | return $this->redirect(['action' => 'index']); |
86 | 86 | } else { |
87 | - $this->Flash->error(__('The category could not be saved. Please, try again.')); | |
87 | + $this->Flash->error(__('La catégorie n\'a pas pu être édité.')); | |
88 | 88 | } |
89 | 89 | } |
90 | 90 | $surCategories = $this->Categories->SurCategories->find('list', ['limit' => 200]); |
... | ... | @@ -104,9 +104,9 @@ class CategoriesController extends AppController |
104 | 104 | $this->request->allowMethod(['post', 'delete']); |
105 | 105 | $category = $this->Categories->get($id); |
106 | 106 | if ($this->Categories->delete($category)) { |
107 | - $this->Flash->success(__('The category has been deleted.')); | |
107 | + $this->Flash->success(__('La catégorie a bien été supprimé.')); | |
108 | 108 | } else { |
109 | - $this->Flash->error(__('The category could not be deleted. Please, try again.')); | |
109 | + $this->Flash->error(__('La catégorie n\'a pas pu être supprimé.')); | |
110 | 110 | } |
111 | 111 | return $this->redirect(['action' => 'index']); |
112 | 112 | } | ... | ... |
src/Controller/GroupesMetiersController.php
... | ... | @@ -52,10 +52,10 @@ class GroupesMetiersController extends AppController |
52 | 52 | if ($this->request->is('post')) { |
53 | 53 | $groupesMetier = $this->GroupesMetiers->patchEntity($groupesMetier, $this->request->data); |
54 | 54 | if ($this->GroupesMetiers->save($groupesMetier)) { |
55 | - $this->Flash->success(__('The groupes metier has been saved.')); | |
55 | + $this->Flash->success(__('Le groupe métier a bien été ajouté.')); | |
56 | 56 | return $this->redirect(['action' => 'index']); |
57 | 57 | } else { |
58 | - $this->Flash->error(__('The groupes metier could not be saved. Please, try again.')); | |
58 | + $this->Flash->error(__('Le groupe métier n\'a pas pu être ajouté.')); | |
59 | 59 | } |
60 | 60 | } |
61 | 61 | $this->set(compact('groupesMetier')); |
... | ... | @@ -77,10 +77,10 @@ class GroupesMetiersController extends AppController |
77 | 77 | if ($this->request->is(['patch', 'post', 'put'])) { |
78 | 78 | $groupesMetier = $this->GroupesMetiers->patchEntity($groupesMetier, $this->request->data); |
79 | 79 | if ($this->GroupesMetiers->save($groupesMetier)) { |
80 | - $this->Flash->success(__('The groupes metier has been saved.')); | |
80 | + $this->Flash->success(__('Le groupe métier a bien été édité.')); | |
81 | 81 | return $this->redirect(['action' => 'index']); |
82 | 82 | } else { |
83 | - $this->Flash->error(__('The groupes metier could not be saved. Please, try again.')); | |
83 | + $this->Flash->error(__('Le groupe métier n\'a pas pu être édité.')); | |
84 | 84 | } |
85 | 85 | } |
86 | 86 | $this->set(compact('groupesMetier')); |
... | ... | @@ -99,9 +99,9 @@ class GroupesMetiersController extends AppController |
99 | 99 | $this->request->allowMethod(['post', 'delete']); |
100 | 100 | $groupesMetier = $this->GroupesMetiers->get($id); |
101 | 101 | if ($this->GroupesMetiers->delete($groupesMetier)) { |
102 | - $this->Flash->success(__('The groupes metier has been deleted.')); | |
102 | + $this->Flash->success(__('Le groupe métier a bien été supprimé.')); | |
103 | 103 | } else { |
104 | - $this->Flash->error(__('The groupes metier could not be deleted. Please, try again.')); | |
104 | + $this->Flash->error(__('Le groupe métier n\'a pas pu être supprimé.')); | |
105 | 105 | } |
106 | 106 | return $this->redirect(['action' => 'index']); |
107 | 107 | } | ... | ... |
src/Controller/GroupesThematiquesController.php
... | ... | @@ -52,10 +52,10 @@ class GroupesThematiquesController extends AppController |
52 | 52 | if ($this->request->is('post')) { |
53 | 53 | $groupesThematique = $this->GroupesThematiques->patchEntity($groupesThematique, $this->request->data); |
54 | 54 | if ($this->GroupesThematiques->save($groupesThematique)) { |
55 | - $this->Flash->success(__('The groupes thematique has been saved.')); | |
55 | + $this->Flash->success(__('Le groupe thématique a bien été ajouté.')); | |
56 | 56 | return $this->redirect(['action' => 'index']); |
57 | 57 | } else { |
58 | - $this->Flash->error(__('The groupes thematique could not be saved. Please, try again.')); | |
58 | + $this->Flash->error(__('Le groupe thématique n\'as pas pu être ajouté.')); | |
59 | 59 | } |
60 | 60 | } |
61 | 61 | $this->set(compact('groupesThematique')); |
... | ... | @@ -77,10 +77,10 @@ class GroupesThematiquesController extends AppController |
77 | 77 | if ($this->request->is(['patch', 'post', 'put'])) { |
78 | 78 | $groupesThematique = $this->GroupesThematiques->patchEntity($groupesThematique, $this->request->data); |
79 | 79 | if ($this->GroupesThematiques->save($groupesThematique)) { |
80 | - $this->Flash->success(__('The groupes thematique has been saved.')); | |
80 | + $this->Flash->success(__('Le groupe thématique a bien été édité.')); | |
81 | 81 | return $this->redirect(['action' => 'index']); |
82 | 82 | } else { |
83 | - $this->Flash->error(__('The groupes thematique could not be saved. Please, try again.')); | |
83 | + $this->Flash->error(__('Le groupe thématique n\'as pas pu être édité.')); | |
84 | 84 | } |
85 | 85 | } |
86 | 86 | $this->set(compact('groupesThematique')); |
... | ... | @@ -99,9 +99,9 @@ class GroupesThematiquesController extends AppController |
99 | 99 | $this->request->allowMethod(['post', 'delete']); |
100 | 100 | $groupesThematique = $this->GroupesThematiques->get($id); |
101 | 101 | if ($this->GroupesThematiques->delete($groupesThematique)) { |
102 | - $this->Flash->success(__('The groupes thematique has been deleted.')); | |
102 | + $this->Flash->success(__('Le groupe thématique a bien été supprimé.')); | |
103 | 103 | } else { |
104 | - $this->Flash->error(__('The groupes thematique could not be deleted. Please, try again.')); | |
104 | + $this->Flash->error(__('Le groupe thématique n\'as pas pu être supprimé.')); | |
105 | 105 | } |
106 | 106 | return $this->redirect(['action' => 'index']); |
107 | 107 | } | ... | ... |
src/Controller/MaterielsController.php
... | ... | @@ -42,7 +42,7 @@ class MaterielsController extends AppController |
42 | 42 | $materiel = $this->Materiels->get($id, [ |
43 | 43 | 'contain' => ['SurCategories', 'Categories', 'SousCategories', 'GroupesThematiques', 'GroupesMetiers', 'Organismes', 'Sites', 'Documents', 'Emprunts', 'Suivis'] |
44 | 44 | ]); |
45 | - | |
45 | + | |
46 | 46 | $this->set('materiel', $materiel); |
47 | 47 | $this->set('_serialize', ['materiel']); |
48 | 48 | } | ... | ... |
src/Controller/OrganismesController.php
... | ... | @@ -52,10 +52,10 @@ class OrganismesController extends AppController |
52 | 52 | if ($this->request->is('post')) { |
53 | 53 | $organisme = $this->Organismes->patchEntity($organisme, $this->request->data); |
54 | 54 | if ($this->Organismes->save($organisme)) { |
55 | - $this->Flash->success(__('The organisme has been saved.')); | |
55 | + $this->Flash->success(__('L\'organisme a bien été ajouté.')); | |
56 | 56 | return $this->redirect(['action' => 'index']); |
57 | 57 | } else { |
58 | - $this->Flash->error(__('The organisme could not be saved. Please, try again.')); | |
58 | + $this->Flash->error(__('L\'organisme n\'a pas pu être ajouté.')); | |
59 | 59 | } |
60 | 60 | } |
61 | 61 | $this->set(compact('organisme')); |
... | ... | @@ -77,10 +77,10 @@ class OrganismesController extends AppController |
77 | 77 | if ($this->request->is(['patch', 'post', 'put'])) { |
78 | 78 | $organisme = $this->Organismes->patchEntity($organisme, $this->request->data); |
79 | 79 | if ($this->Organismes->save($organisme)) { |
80 | - $this->Flash->success(__('The organisme has been saved.')); | |
80 | + $this->Flash->success(__('L\'organisme a bien été édité.')); | |
81 | 81 | return $this->redirect(['action' => 'index']); |
82 | 82 | } else { |
83 | - $this->Flash->error(__('The organisme could not be saved. Please, try again.')); | |
83 | + $this->Flash->error(__('L\'organisme n\'a pas pu être édité.')); | |
84 | 84 | } |
85 | 85 | } |
86 | 86 | $this->set(compact('organisme')); |
... | ... | @@ -99,9 +99,9 @@ class OrganismesController extends AppController |
99 | 99 | $this->request->allowMethod(['post', 'delete']); |
100 | 100 | $organisme = $this->Organismes->get($id); |
101 | 101 | if ($this->Organismes->delete($organisme)) { |
102 | - $this->Flash->success(__('The organisme has been deleted.')); | |
102 | + $this->Flash->success(__('L\'organisme a bien été supprimé.')); | |
103 | 103 | } else { |
104 | - $this->Flash->error(__('The organisme could not be deleted. Please, try again.')); | |
104 | + $this->Flash->error(__('L\'organisme n\'a pas pu être supprimé.')); | |
105 | 105 | } |
106 | 106 | return $this->redirect(['action' => 'index']); |
107 | 107 | } | ... | ... |
src/Controller/SitesController.php
... | ... | @@ -52,10 +52,10 @@ class SitesController extends AppController |
52 | 52 | if ($this->request->is('post')) { |
53 | 53 | $site = $this->Sites->patchEntity($site, $this->request->data); |
54 | 54 | if ($this->Sites->save($site)) { |
55 | - $this->Flash->success(__('The site has been saved.')); | |
55 | + $this->Flash->success(__('Le site a bien été ajouté.')); | |
56 | 56 | return $this->redirect(['action' => 'index']); |
57 | 57 | } else { |
58 | - $this->Flash->error(__('The site could not be saved. Please, try again.')); | |
58 | + $this->Flash->error(__('Le site n\a pas pu être ajouté.')); | |
59 | 59 | } |
60 | 60 | } |
61 | 61 | $this->set(compact('site')); |
... | ... | @@ -77,10 +77,10 @@ class SitesController extends AppController |
77 | 77 | if ($this->request->is(['patch', 'post', 'put'])) { |
78 | 78 | $site = $this->Sites->patchEntity($site, $this->request->data); |
79 | 79 | if ($this->Sites->save($site)) { |
80 | - $this->Flash->success(__('The site has been saved.')); | |
80 | + $this->Flash->success(__('Le site a bien été édité.')); | |
81 | 81 | return $this->redirect(['action' => 'index']); |
82 | 82 | } else { |
83 | - $this->Flash->error(__('The site could not be saved. Please, try again.')); | |
83 | + $this->Flash->error(__('Le site n\a pas pu être édité.')); | |
84 | 84 | } |
85 | 85 | } |
86 | 86 | $this->set(compact('site')); |
... | ... | @@ -99,9 +99,9 @@ class SitesController extends AppController |
99 | 99 | $this->request->allowMethod(['post', 'delete']); |
100 | 100 | $site = $this->Sites->get($id); |
101 | 101 | if ($this->Sites->delete($site)) { |
102 | - $this->Flash->success(__('The site has been deleted.')); | |
102 | + $this->Flash->success(__('Le site a bien été supprimé.')); | |
103 | 103 | } else { |
104 | - $this->Flash->error(__('The site could not be deleted. Please, try again.')); | |
104 | + $this->Flash->error(__('Le site n\a pas pu être supprimé.')); | |
105 | 105 | } |
106 | 106 | return $this->redirect(['action' => 'index']); |
107 | 107 | } | ... | ... |
src/Controller/SousCategoriesController.php
... | ... | @@ -55,10 +55,10 @@ class SousCategoriesController extends AppController |
55 | 55 | if ($this->request->is('post')) { |
56 | 56 | $sousCategory = $this->SousCategories->patchEntity($sousCategory, $this->request->data); |
57 | 57 | if ($this->SousCategories->save($sousCategory)) { |
58 | - $this->Flash->success(__('The sous category has been saved.')); | |
58 | + $this->Flash->success(__('La sous-catégorie a bien été ajouté')); | |
59 | 59 | return $this->redirect(['action' => 'index']); |
60 | 60 | } else { |
61 | - $this->Flash->error(__('The sous category could not be saved. Please, try again.')); | |
61 | + $this->Flash->error(__('La sous-catégorie n\'as pas pu être ajouté.')); | |
62 | 62 | } |
63 | 63 | } |
64 | 64 | $categories = $this->SousCategories->Categories->find('list', ['limit' => 200]); |
... | ... | @@ -81,10 +81,10 @@ class SousCategoriesController extends AppController |
81 | 81 | if ($this->request->is(['patch', 'post', 'put'])) { |
82 | 82 | $sousCategory = $this->SousCategories->patchEntity($sousCategory, $this->request->data); |
83 | 83 | if ($this->SousCategories->save($sousCategory)) { |
84 | - $this->Flash->success(__('The sous category has been saved.')); | |
84 | + $this->Flash->success(__('La sous-catégorie a bien été édité.')); | |
85 | 85 | return $this->redirect(['action' => 'index']); |
86 | 86 | } else { |
87 | - $this->Flash->error(__('The sous category could not be saved. Please, try again.')); | |
87 | + $this->Flash->error(__('La sous-catégorie n\'as pas pu être édité.')); | |
88 | 88 | } |
89 | 89 | } |
90 | 90 | $categories = $this->SousCategories->Categories->find('list', ['limit' => 200]); |
... | ... | @@ -104,9 +104,9 @@ class SousCategoriesController extends AppController |
104 | 104 | $this->request->allowMethod(['post', 'delete']); |
105 | 105 | $sousCategory = $this->SousCategories->get($id); |
106 | 106 | if ($this->SousCategories->delete($sousCategory)) { |
107 | - $this->Flash->success(__('The sous category has been deleted.')); | |
107 | + $this->Flash->success(__('La sous-catégorie a bien été supprimé.')); | |
108 | 108 | } else { |
109 | - $this->Flash->error(__('The sous category could not be deleted. Please, try again.')); | |
109 | + $this->Flash->error(__('La sous-catégorie n\'as pas pu être supprimé.')); | |
110 | 110 | } |
111 | 111 | return $this->redirect(['action' => 'index']); |
112 | 112 | } | ... | ... |
src/Controller/SurCategoriesController.php
... | ... | @@ -52,10 +52,10 @@ class SurCategoriesController extends AppController |
52 | 52 | if ($this->request->is('post')) { |
53 | 53 | $surCategory = $this->SurCategories->patchEntity($surCategory, $this->request->data); |
54 | 54 | if ($this->SurCategories->save($surCategory)) { |
55 | - $this->Flash->success(__('The sur category has been saved.')); | |
55 | + $this->Flash->success(__('Le domaine a bien été ajouté.')); | |
56 | 56 | return $this->redirect(['action' => 'index']); |
57 | 57 | } else { |
58 | - $this->Flash->error(__('The sur category could not be saved. Please, try again.')); | |
58 | + $this->Flash->error(__('Le domaine n\'a pas pu être ajouté.')); | |
59 | 59 | } |
60 | 60 | } |
61 | 61 | $this->set(compact('surCategory')); |
... | ... | @@ -77,10 +77,10 @@ class SurCategoriesController extends AppController |
77 | 77 | if ($this->request->is(['patch', 'post', 'put'])) { |
78 | 78 | $surCategory = $this->SurCategories->patchEntity($surCategory, $this->request->data); |
79 | 79 | if ($this->SurCategories->save($surCategory)) { |
80 | - $this->Flash->success(__('The sur category has been saved.')); | |
80 | + $this->Flash->success(__('Le domaine a bien été édité.')); | |
81 | 81 | return $this->redirect(['action' => 'index']); |
82 | 82 | } else { |
83 | - $this->Flash->error(__('The sur category could not be saved. Please, try again.')); | |
83 | + $this->Flash->error(__('Le domaine n\'a pas pu être édité.')); | |
84 | 84 | } |
85 | 85 | } |
86 | 86 | $this->set(compact('surCategory')); |
... | ... | @@ -99,9 +99,9 @@ class SurCategoriesController extends AppController |
99 | 99 | $this->request->allowMethod(['post', 'delete']); |
100 | 100 | $surCategory = $this->SurCategories->get($id); |
101 | 101 | if ($this->SurCategories->delete($surCategory)) { |
102 | - $this->Flash->success(__('The sur category has been deleted.')); | |
102 | + $this->Flash->success(__('Le domaine a bien été supprimé.')); | |
103 | 103 | } else { |
104 | - $this->Flash->error(__('The sur category could not be deleted. Please, try again.')); | |
104 | + $this->Flash->error(__('Le domaine n\'a pas pu être supprimé.')); | |
105 | 105 | } |
106 | 106 | return $this->redirect(['action' => 'index']); |
107 | 107 | } | ... | ... |
src/Controller/TypeSuivisController.php
... | ... | @@ -52,10 +52,10 @@ class TypeSuivisController extends AppController |
52 | 52 | if ($this->request->is('post')) { |
53 | 53 | $typeSuivi = $this->TypeSuivis->patchEntity($typeSuivi, $this->request->data); |
54 | 54 | if ($this->TypeSuivis->save($typeSuivi)) { |
55 | - $this->Flash->success(__('The type suivi has been saved.')); | |
55 | + $this->Flash->success(__('Le type de suivi a bien été ajouté.')); | |
56 | 56 | return $this->redirect(['action' => 'index']); |
57 | 57 | } else { |
58 | - $this->Flash->error(__('The type suivi could not be saved. Please, try again.')); | |
58 | + $this->Flash->error(__('Le type de suivi n\'a pas pu être ajouté.')); | |
59 | 59 | } |
60 | 60 | } |
61 | 61 | $this->set(compact('typeSuivi')); |
... | ... | @@ -77,10 +77,10 @@ class TypeSuivisController extends AppController |
77 | 77 | if ($this->request->is(['patch', 'post', 'put'])) { |
78 | 78 | $typeSuivi = $this->TypeSuivis->patchEntity($typeSuivi, $this->request->data); |
79 | 79 | if ($this->TypeSuivis->save($typeSuivi)) { |
80 | - $this->Flash->success(__('The type suivi has been saved.')); | |
80 | + $this->Flash->success(__('Le type de suivi a bien été édité.')); | |
81 | 81 | return $this->redirect(['action' => 'index']); |
82 | 82 | } else { |
83 | - $this->Flash->error(__('The type suivi could not be saved. Please, try again.')); | |
83 | + $this->Flash->error(__('Le type de suivi n\'a pas pu être édité.')); | |
84 | 84 | } |
85 | 85 | } |
86 | 86 | $this->set(compact('typeSuivi')); |
... | ... | @@ -99,9 +99,9 @@ class TypeSuivisController extends AppController |
99 | 99 | $this->request->allowMethod(['post', 'delete']); |
100 | 100 | $typeSuivi = $this->TypeSuivis->get($id); |
101 | 101 | if ($this->TypeSuivis->delete($typeSuivi)) { |
102 | - $this->Flash->success(__('The type suivi has been deleted.')); | |
102 | + $this->Flash->success(__('Le type de suivi a bien été supprimé.')); | |
103 | 103 | } else { |
104 | - $this->Flash->error(__('The type suivi could not be deleted. Please, try again.')); | |
104 | + $this->Flash->error(__('Le type de suivi n\'a pas pu être supprimé.')); | |
105 | 105 | } |
106 | 106 | return $this->redirect(['action' => 'index']); |
107 | 107 | } | ... | ... |
src/Model/Table/SurCategoriesTable.php
... | ... | @@ -38,10 +38,6 @@ class SurCategoriesTable extends Table |
38 | 38 | public function validationDefault(Validator $validator) |
39 | 39 | { |
40 | 40 | $validator |
41 | - ->integer('id') | |
42 | - ->allowEmpty('id', 'create'); | |
43 | - | |
44 | - $validator | |
45 | 41 | ->requirePresence('nom', 'create') |
46 | 42 | ->notEmpty('nom') |
47 | 43 | ->add('nom', 'unique', ['rule' => 'validateUnique', 'provider' => 'table']); | ... | ... |
src/Template/Categories/add.ctp
1 | 1 | |
2 | -<div class="categories form large-9 medium-8 columns content"> | |
2 | +<div class="categories form"> | |
3 | 3 | <?= $this->Form->create($category) ?> |
4 | 4 | <fieldset> |
5 | - <legend><?= __('Add Category') ?></legend> | |
5 | + <h2><i class="icon-plus"></i> Ajouter une Catégorie</h2> | |
6 | 6 | <?php |
7 | 7 | echo $this->Form->input('nom'); |
8 | 8 | echo $this->Form->input('sur_categorie_id', ['options' => $surCategories]); |
9 | 9 | ?> |
10 | 10 | </fieldset> |
11 | - <?= $this->Form->button(__('Submit')) ?> | |
11 | + <?= $this->Form->button(__('Valider')) ?> | |
12 | 12 | <?= $this->Form->end() ?> |
13 | 13 | </div> |
14 | + | |
15 | +<div class="actions"> | |
16 | + <?php | |
17 | + echo $this->element('menu'); | |
18 | + echo $this->element('menu_form', [ 'pluralHumanName' => 'Catégories' ]); | |
19 | + ?> | |
20 | +</div> | |
14 | 21 | \ No newline at end of file | ... | ... |
src/Template/Categories/edit.ctp
1 | 1 | |
2 | -<div class="categories form large-9 medium-8 columns content"> | |
2 | +<div class="categories form"> | |
3 | 3 | <?= $this->Form->create($category) ?> |
4 | 4 | <fieldset> |
5 | - <legend><?= __('Edit Category') ?></legend> | |
5 | + <h2><i class="icon-edit"></i> Editer une Catégorie</h2> | |
6 | 6 | <?php |
7 | 7 | echo $this->Form->input('nom'); |
8 | 8 | echo $this->Form->input('sur_categorie_id', ['options' => $surCategories]); |
9 | 9 | ?> |
10 | 10 | </fieldset> |
11 | - <?= $this->Form->button(__('Submit')) ?> | |
11 | + <?= $this->Form->button(__('Valider')) ?> | |
12 | 12 | <?= $this->Form->end() ?> |
13 | 13 | </div> |
14 | + | |
15 | +<div class="actions"> | |
16 | + <?php | |
17 | + echo $this->element('menu'); | |
18 | + echo $this->element('menu_form', [ 'pluralHumanName' => 'Catégories' ]); | |
19 | + ?> | |
20 | +</div> | |
14 | 21 | \ No newline at end of file | ... | ... |
src/Template/GroupesMetiers/add.ctp
1 | 1 | |
2 | -<div class="groupesMetiers form large-9 medium-8 columns content"> | |
2 | +<div class="groupesMetiers form"> | |
3 | 3 | <?= $this->Form->create($groupesMetier) ?> |
4 | 4 | <fieldset> |
5 | - <legend><?= __('Add Groupes Metier') ?></legend> | |
5 | + <h2><i class="icon-plus"></i> Ajouter un Groupe Métier</h2> | |
6 | 6 | <?php |
7 | 7 | echo $this->Form->input('nom'); |
8 | 8 | echo $this->Form->input('description'); |
9 | 9 | ?> |
10 | 10 | </fieldset> |
11 | - <?= $this->Form->button(__('Submit')) ?> | |
11 | + <?= $this->Form->button(__('Valider')) ?> | |
12 | 12 | <?= $this->Form->end() ?> |
13 | 13 | </div> |
14 | + | |
15 | +<div class="actions"> | |
16 | + <?php | |
17 | + echo $this->element('menu'); | |
18 | + echo $this->element('menu_form', [ 'pluralHumanName' => 'Groupes Métiers' ]); | |
19 | + ?> | |
20 | +</div> | |
14 | 21 | \ No newline at end of file | ... | ... |
src/Template/GroupesMetiers/edit.ctp
1 | 1 | |
2 | -<div class="groupesMetiers form large-9 medium-8 columns content"> | |
2 | +<div class="groupesMetiers form"> | |
3 | 3 | <?= $this->Form->create($groupesMetier) ?> |
4 | 4 | <fieldset> |
5 | - <legend><?= __('Edit Groupes Metier') ?></legend> | |
5 | + <h2><i class="icon-edit"></i> Editer un Groupe Métier</h2> | |
6 | 6 | <?php |
7 | 7 | echo $this->Form->input('nom'); |
8 | 8 | echo $this->Form->input('description'); |
9 | 9 | ?> |
10 | 10 | </fieldset> |
11 | - <?= $this->Form->button(__('Submit')) ?> | |
11 | + <?= $this->Form->button(__('Valider')) ?> | |
12 | 12 | <?= $this->Form->end() ?> |
13 | 13 | </div> |
14 | + | |
15 | +<div class="actions"> | |
16 | + <?php | |
17 | + echo $this->element('menu'); | |
18 | + echo $this->element('menu_form', [ 'pluralHumanName' => 'Groupes Métiers' ]); | |
19 | + ?> | |
20 | +</div> | |
14 | 21 | \ No newline at end of file | ... | ... |
src/Template/GroupesThematiques/add.ctp
1 | 1 | |
2 | -<div class="groupesThematiques form large-9 medium-8 columns content"> | |
2 | +<div class="groupesThematiques form"> | |
3 | 3 | <?= $this->Form->create($groupesThematique) ?> |
4 | 4 | <fieldset> |
5 | - <legend><?= __('Add Groupes Thematique') ?></legend> | |
5 | + <h2><i class="icon-plus"></i> Ajouter un groupe thématique</h2> | |
6 | 6 | <?php |
7 | 7 | echo $this->Form->input('nom'); |
8 | 8 | echo $this->Form->input('description'); |
9 | 9 | ?> |
10 | 10 | </fieldset> |
11 | - <?= $this->Form->button(__('Submit')) ?> | |
11 | + <?= $this->Form->button(__('Valider')) ?> | |
12 | 12 | <?= $this->Form->end() ?> |
13 | 13 | </div> |
14 | + | |
15 | +<div class="actions"> | |
16 | + <?php | |
17 | + echo $this->element('menu'); | |
18 | + echo $this->element('menu_form', [ 'pluralHumanName' => 'Groupes Thématiques' ]); | |
19 | + ?> | |
20 | +</div> | |
14 | 21 | \ No newline at end of file | ... | ... |
src/Template/GroupesThematiques/edit.ctp
1 | 1 | |
2 | -<div class="groupesThematiques form large-9 medium-8 columns content"> | |
2 | +<div class="groupesThematiques form"> | |
3 | 3 | <?= $this->Form->create($groupesThematique) ?> |
4 | 4 | <fieldset> |
5 | - <legend><?= __('Edit Groupes Thematique') ?></legend> | |
5 | + <h2><i class="icon-edit"></i> Editer un groupe thématique</h2> | |
6 | 6 | <?php |
7 | 7 | echo $this->Form->input('nom'); |
8 | 8 | echo $this->Form->input('description'); |
9 | 9 | ?> |
10 | 10 | </fieldset> |
11 | - <?= $this->Form->button(__('Submit')) ?> | |
11 | + <?= $this->Form->button(__('Valider')) ?> | |
12 | 12 | <?= $this->Form->end() ?> |
13 | 13 | </div> |
14 | + | |
15 | +<div class="actions"> | |
16 | + <?php | |
17 | + echo $this->element('menu'); | |
18 | + echo $this->element('menu_form', [ 'pluralHumanName' => 'Groupes Thématiques' ]); | |
19 | + ?> | |
20 | +</div> | |
14 | 21 | \ No newline at end of file | ... | ... |
src/Template/Materiels/view.ctp
... | ... | @@ -90,7 +90,7 @@ function displayElement($nom, $valeur) { |
90 | 90 | |
91 | 91 | <h3 id="t_suivis" style="cursor: pointer;"> |
92 | 92 | <i class="icon-chevron-down" style="font-size: 14px;" id="i_suivis"></i> |
93 | - <span style="text-decoration: underline;">Suivi(s) du matériel (nombre pas implémenté)</span> | |
93 | + <span style="text-decoration: underline;">Suivi(s) du matériel (<?= count($materiel->suivis) ?>)</span> | |
94 | 94 | </h3> |
95 | 95 | <div id="suivis" style="margin-bottom: 20px;"> |
96 | 96 | |
... | ... | @@ -123,7 +123,7 @@ function displayElement($nom, $valeur) { |
123 | 123 | |
124 | 124 | <h3 id="t_emprunts" style="cursor: pointer;"> |
125 | 125 | <i class="icon-chevron-down" style="font-size: 14px;" id="i_emprunts"></i> |
126 | - <span style="text-decoration: underline;">Emprunt(s) du matériel (nombre pas implémenté)</span> | |
126 | + <span style="text-decoration: underline;">Emprunt(s) du matériel (<?= count($materiel->emprunts) ?>)</span> | |
127 | 127 | </h3> |
128 | 128 | <div id="emprunts" style="margin-bottom: 20px;"> |
129 | 129 | |
... | ... | @@ -166,7 +166,7 @@ function displayElement($nom, $valeur) { |
166 | 166 | |
167 | 167 | <h3 id="t_fichiers" style="cursor: pointer;"> |
168 | 168 | <i class="icon-chevron-down" style="font-size: 14px;" id="i_fichiers"></i> |
169 | - <span style="text-decoration: underline;">Fichier(s) lié(s) au matériel (nombre pas implémenté)</span> | |
169 | + <span style="text-decoration: underline;">Fichier(s) lié(s) au matériel (<?= count($materiel->documents) ?>)</span> | |
170 | 170 | </h3> |
171 | 171 | <div id="fichiers" style="margin-bottom: 20px;"> |
172 | 172 | ... | ... |
src/Template/Organismes/add.ctp
1 | 1 | |
2 | -<div class="organismes form large-9 medium-8 columns content"> | |
2 | +<div class="organismes form"> | |
3 | 3 | <?= $this->Form->create($organisme) ?> |
4 | 4 | <fieldset> |
5 | - <legend><?= __('Add Organisme') ?></legend> | |
5 | + <h2><i class="icon-plus"></i> Ajouter un Organisme</h2> | |
6 | 6 | <?php |
7 | 7 | echo $this->Form->input('nom'); |
8 | 8 | ?> |
9 | 9 | </fieldset> |
10 | - <?= $this->Form->button(__('Submit')) ?> | |
10 | + <?= $this->Form->button(__('Valider')) ?> | |
11 | 11 | <?= $this->Form->end() ?> |
12 | 12 | </div> |
13 | + | |
14 | +<div class="actions"> | |
15 | + <?php | |
16 | + echo $this->element('menu'); | |
17 | + echo $this->element('menu_form', [ 'pluralHumanName' => 'Organismes' ]); | |
18 | + ?> | |
19 | +</div> | |
13 | 20 | \ No newline at end of file | ... | ... |
src/Template/Organismes/edit.ctp
1 | 1 | |
2 | -<div class="organismes form large-9 medium-8 columns content"> | |
2 | +<div class="organismes form"> | |
3 | 3 | <?= $this->Form->create($organisme) ?> |
4 | 4 | <fieldset> |
5 | - <legend><?= __('Edit Organisme') ?></legend> | |
5 | + <h2><i class="icon-edit"></i> Editer un Organisme</h2> | |
6 | 6 | <?php |
7 | 7 | echo $this->Form->input('nom'); |
8 | 8 | ?> |
9 | 9 | </fieldset> |
10 | - <?= $this->Form->button(__('Submit')) ?> | |
10 | + <?= $this->Form->button(__('Valider')) ?> | |
11 | 11 | <?= $this->Form->end() ?> |
12 | 12 | </div> |
13 | + | |
14 | +<div class="actions"> | |
15 | + <?php | |
16 | + echo $this->element('menu'); | |
17 | + echo $this->element('menu_form', [ 'pluralHumanName' => 'Organismes' ]); | |
18 | + ?> | |
19 | +</div> | |
13 | 20 | \ No newline at end of file | ... | ... |
src/Template/Sites/add.ctp
1 | 1 | |
2 | -<div class="sites form large-9 medium-8 columns content"> | |
2 | +<div class="sites form"> | |
3 | 3 | <?= $this->Form->create($site) ?> |
4 | 4 | <fieldset> |
5 | - <legend><?= __('Add Site') ?></legend> | |
5 | + <h2><i class="icon-plus"></i> Ajouter un Site</h2> | |
6 | 6 | <?php |
7 | 7 | echo $this->Form->input('nom'); |
8 | 8 | ?> |
9 | 9 | </fieldset> |
10 | - <?= $this->Form->button(__('Submit')) ?> | |
10 | + <?= $this->Form->button(__('Valider')) ?> | |
11 | 11 | <?= $this->Form->end() ?> |
12 | 12 | </div> |
13 | + | |
14 | +<div class="actions"> | |
15 | + <?php | |
16 | + echo $this->element('menu'); | |
17 | + echo $this->element('menu_form', [ 'pluralHumanName' => 'Sites' ]); | |
18 | + ?> | |
19 | +</div> | |
13 | 20 | \ No newline at end of file | ... | ... |
src/Template/Sites/edit.ctp
1 | 1 | |
2 | -<div class="sites form large-9 medium-8 columns content"> | |
2 | +<div class="sites form"> | |
3 | 3 | <?= $this->Form->create($site) ?> |
4 | 4 | <fieldset> |
5 | - <legend><?= __('Edit Site') ?></legend> | |
5 | + <h2><i class="icon-edit"></i> Editer un Site</h2> | |
6 | 6 | <?php |
7 | 7 | echo $this->Form->input('nom'); |
8 | 8 | ?> |
9 | 9 | </fieldset> |
10 | - <?= $this->Form->button(__('Submit')) ?> | |
10 | + <?= $this->Form->button(__('Valider')) ?> | |
11 | 11 | <?= $this->Form->end() ?> |
12 | 12 | </div> |
13 | + | |
14 | +<div class="actions"> | |
15 | + <?php | |
16 | + echo $this->element('menu'); | |
17 | + echo $this->element('menu_form', [ 'pluralHumanName' => 'Sites' ]); | |
18 | + ?> | |
19 | +</div> | |
13 | 20 | \ No newline at end of file | ... | ... |
src/Template/SousCategories/add.ctp
1 | 1 | |
2 | -<div class="sousCategories form large-9 medium-8 columns content"> | |
2 | +<div class="sousCategories form"> | |
3 | 3 | <?= $this->Form->create($sousCategory) ?> |
4 | 4 | <fieldset> |
5 | - <legend><?= __('Add Sous Category') ?></legend> | |
5 | + <h2><i class="icon-plus"></i> Ajouter une Sous-catégorie</h2> | |
6 | 6 | <?php |
7 | 7 | echo $this->Form->input('nom'); |
8 | 8 | echo $this->Form->input('categorie_id', ['options' => $categories]); |
9 | 9 | ?> |
10 | 10 | </fieldset> |
11 | - <?= $this->Form->button(__('Submit')) ?> | |
11 | + <?= $this->Form->button(__('Valider')) ?> | |
12 | 12 | <?= $this->Form->end() ?> |
13 | 13 | </div> |
14 | + | |
15 | +<div class="actions"> | |
16 | + <?php | |
17 | + echo $this->element('menu'); | |
18 | + echo $this->element('menu_form', [ 'pluralHumanName' => 'Sous-catégories' ]); | |
19 | + ?> | |
20 | +</div> | |
14 | 21 | \ No newline at end of file | ... | ... |
src/Template/SousCategories/edit.ctp
1 | 1 | |
2 | -<div class="sousCategories form large-9 medium-8 columns content"> | |
2 | +<div class="sousCategories form"> | |
3 | 3 | <?= $this->Form->create($sousCategory) ?> |
4 | 4 | <fieldset> |
5 | - <legend><?= __('Edit Sous Category') ?></legend> | |
5 | + <h2><i class="icon-edit"></i> Editer une Sous-catégorie</h2> | |
6 | 6 | <?php |
7 | 7 | echo $this->Form->input('nom'); |
8 | 8 | echo $this->Form->input('categorie_id', ['options' => $categories]); |
9 | 9 | ?> |
10 | 10 | </fieldset> |
11 | - <?= $this->Form->button(__('Submit')) ?> | |
11 | + <?= $this->Form->button(__('Valider')) ?> | |
12 | 12 | <?= $this->Form->end() ?> |
13 | 13 | </div> |
14 | + | |
15 | +<div class="actions"> | |
16 | + <?php | |
17 | + echo $this->element('menu'); | |
18 | + echo $this->element('menu_form', [ 'pluralHumanName' => 'Sous-catégories' ]); | |
19 | + ?> | |
20 | +</div> | |
14 | 21 | \ No newline at end of file | ... | ... |
src/Template/SurCategories/add.ctp
1 | 1 | |
2 | -<div class="surCategories form large-9 medium-8 columns content"> | |
2 | +<div class="surCategories form"> | |
3 | 3 | <?= $this->Form->create($surCategory) ?> |
4 | 4 | <fieldset> |
5 | - <legend><?= __('Add Sur Category') ?></legend> | |
5 | + <h2><i class="icon-plus"></i> Ajouter un Domaine</h2> | |
6 | 6 | <?php |
7 | 7 | echo $this->Form->input('nom'); |
8 | 8 | ?> |
9 | 9 | </fieldset> |
10 | - <?= $this->Form->button(__('Submit')) ?> | |
10 | + <?= $this->Form->button(__('Valider')) ?> | |
11 | 11 | <?= $this->Form->end() ?> |
12 | 12 | </div> |
13 | + | |
14 | +<div class="actions"> | |
15 | + <?php | |
16 | + echo $this->element('menu'); | |
17 | + echo $this->element('menu_form', [ 'pluralHumanName' => 'Domaines' ]); | |
18 | + ?> | |
19 | +</div> | |
13 | 20 | \ No newline at end of file | ... | ... |
src/Template/SurCategories/edit.ctp
1 | 1 | |
2 | -<div class="surCategories form large-9 medium-8 columns content"> | |
2 | +<div class="surCategories form"> | |
3 | 3 | <?= $this->Form->create($surCategory) ?> |
4 | 4 | <fieldset> |
5 | - <legend><?= __('Edit Sur Category') ?></legend> | |
5 | +<h2><i class="icon-edit"></i> Editer un Domaine</h2> | |
6 | 6 | <?php |
7 | 7 | echo $this->Form->input('nom'); |
8 | 8 | ?> |
9 | 9 | </fieldset> |
10 | - <?= $this->Form->button(__('Submit')) ?> | |
10 | + <?= $this->Form->button(__('Valider')) ?> | |
11 | 11 | <?= $this->Form->end() ?> |
12 | 12 | </div> |
13 | + | |
14 | + | |
15 | +<div class="actions"> | |
16 | + <?php | |
17 | + echo $this->element('menu'); | |
18 | + echo $this->element('menu_form', [ 'pluralHumanName' => 'Domaines' ]); | |
19 | + ?> | |
20 | +</div> | |
13 | 21 | \ No newline at end of file | ... | ... |
src/Template/TypeSuivis/add.ctp
1 | 1 | |
2 | -<div class="typeSuivis form large-9 medium-8 columns content"> | |
2 | +<div class="typeSuivis form"> | |
3 | 3 | <?= $this->Form->create($typeSuivi) ?> |
4 | 4 | <fieldset> |
5 | - <legend><?= __('Add Type Suivi') ?></legend> | |
5 | + <h2><i class="icon-plus"></i> Ajouter un type de suivi</h2> | |
6 | 6 | <?php |
7 | 7 | echo $this->Form->input('nom'); |
8 | 8 | ?> |
9 | 9 | </fieldset> |
10 | - <?= $this->Form->button(__('Submit')) ?> | |
10 | + <?= $this->Form->button(__('Valider')) ?> | |
11 | 11 | <?= $this->Form->end() ?> |
12 | 12 | </div> |
13 | + | |
14 | +<div class="actions"> | |
15 | + <?php | |
16 | + echo $this->element('menu'); | |
17 | + echo $this->element('menu_form', [ 'pluralHumanName' => 'Types Suivis' ]); | |
18 | + ?> | |
19 | +</div> | |
13 | 20 | \ No newline at end of file | ... | ... |
src/Template/TypeSuivis/edit.ctp
1 | 1 | |
2 | -<div class="typeSuivis form large-9 medium-8 columns content"> | |
2 | +<div class="typeSuivis form"> | |
3 | 3 | <?= $this->Form->create($typeSuivi) ?> |
4 | 4 | <fieldset> |
5 | - <legend><?= __('Edit Type Suivi') ?></legend> | |
5 | + <h2><i class="icon-edit"></i> Editer un type de suivi</h2> | |
6 | 6 | <?php |
7 | 7 | echo $this->Form->input('nom'); |
8 | 8 | ?> |
9 | 9 | </fieldset> |
10 | - <?= $this->Form->button(__('Submit')) ?> | |
10 | + <?= $this->Form->button(__('Valider')) ?> | |
11 | 11 | <?= $this->Form->end() ?> |
12 | 12 | </div> |
13 | + | |
14 | +<div class="actions"> | |
15 | + <?php | |
16 | + echo $this->element('menu'); | |
17 | + echo $this->element('menu_form', [ 'pluralHumanName' => 'Types Suivis' ]); | |
18 | + ?> | |
19 | +</div> | |
13 | 20 | \ No newline at end of file | ... | ... |