浏览代码

Retrait du champ group dans le forumaire d'ajout d'un element.

bastien 13 年前
父节点
当前提交
6b09e54db3

+ 1 - 1
src/Muzich/CoreBundle/Controller/CoreController.php 查看文件

129
       array(
129
       array(
130
        'tags'   => $this->getTagsArray(),
130
        'tags'   => $this->getTagsArray(),
131
         // Ligne non obligatoire (cf. verif du contenu du form -> ticket)
131
         // Ligne non obligatoire (cf. verif du contenu du form -> ticket)
132
-       'groups' => $this->getGroupsArray()
132
+       //'groups' => $this->getGroupsArray()
133
       )
133
       )
134
     );
134
     );
135
     
135
     

+ 1 - 1
src/Muzich/CoreBundle/ElementFactory/ElementManager.php 查看文件

74
   {
74
   {
75
     $this->element->setOwner($owner);
75
     $this->element->setOwner($owner);
76
     $this->element->setTagsWithIds($this->em, $this->element->getTags());
76
     $this->element->setTagsWithIds($this->em, $this->element->getTags());
77
-    $this->setGroup();
77
+    //$this->setGroup();
78
     $this->determineType();
78
     $this->determineType();
79
     $this->proceedExtraFields();
79
     $this->proceedExtraFields();
80
   }
80
   }

+ 8 - 8
src/Muzich/CoreBundle/Form/Element/ElementAddForm.php 查看文件

23
       'multiple'          => true
23
       'multiple'          => true
24
     ));
24
     ));
25
     
25
     
26
-    $options['groups'][''] = '';
27
-    $builder->add('group', 'choice', array(
28
-      'choices'           => $options['groups'],
29
-      'expanded'          => false,
30
-      'multiple'          => false,
31
-      'required'          => false
32
-    ));
26
+//    $options['groups'][''] = '';
27
+//    $builder->add('group', 'choice', array(
28
+//      'choices'           => $options['groups'],
29
+//      'expanded'          => false,
30
+//      'multiple'          => false,
31
+//      'required'          => false
32
+//    ));
33
     
33
     
34
   }
34
   }
35
 
35
 
44
       'name' => '',
44
       'name' => '',
45
       'url' => '',
45
       'url' => '',
46
       'tags' => array(),
46
       'tags' => array(),
47
-      'groups' => array(),
47
+      //'groups' => array(),
48
       'data_class' => 'Muzich\CoreBundle\Entity\Element'
48
       'data_class' => 'Muzich\CoreBundle\Entity\Element'
49
     );
49
     );
50
   }
50
   }

+ 0 - 2
src/Muzich/CoreBundle/Resources/views/Element/form.add.html.twig 查看文件

6
 
6
 
7
 {{ form_row(form.tags) }}
7
 {{ form_row(form.tags) }}
8
 
8
 
9
-{{ form_row(form.group) }}
10
-
11
 {{ form_rest(form) }}
9
 {{ form_rest(form) }}

+ 1 - 1
src/Muzich/HomeBundle/Controller/HomeController.php 查看文件

38
       array(),
38
       array(),
39
       array(
39
       array(
40
         'tags' => $tags,
40
         'tags' => $tags,
41
-        'groups' => $user->getGroupsOwnedArray(),
41
+        //'groups' => $user->getGroupsOwnedArray(),
42
       )
42
       )
43
     );
43
     );
44
         
44