src/AppBundle/Controller/Admin/CategoryController.php 1 location
|
@@ 111-124 (lines=14) @@
|
108 |
|
/** |
109 |
|
* @return \Symfony\Component\Form\Form |
110 |
|
*/ |
111 |
|
private function createFormDelete($id) |
112 |
|
{ |
113 |
|
return $this->createFormBuilder() |
114 |
|
->setAction($this->generateUrl('remove_category', ['id' => $id])) |
115 |
|
->setMethod('DELETE') |
116 |
|
->add('submit', SubmitType::class, [ |
117 |
|
'label' => ' ', |
118 |
|
'attr' => [ |
119 |
|
'class' => 'glyphicon glyphicon-remove btn-link', |
120 |
|
'onclick' => 'return confirm("Are you sure?")' |
121 |
|
] |
122 |
|
]) |
123 |
|
->getForm(); |
124 |
|
} |
125 |
|
} |
126 |
|
|
127 |
|
|
src/AppBundle/Controller/Admin/ModuleUserController.php 1 location
|
@@ 83-96 (lines=14) @@
|
80 |
|
/** |
81 |
|
* @return \Symfony\Component\Form\Form |
82 |
|
*/ |
83 |
|
private function createFormDelete($idUser, $idModule) |
84 |
|
{ |
85 |
|
return $this->createFormBuilder() |
86 |
|
->setAction($this->generateUrl('remove_moduleUser', ['idUser' => $idUser, 'idModule' => $idModule])) |
87 |
|
->setMethod('DELETE') |
88 |
|
->add('submit', SubmitType::class, [ |
89 |
|
'label' => ' ', |
90 |
|
'attr' => [ |
91 |
|
'class' => 'glyphicon glyphicon-remove btn-link', |
92 |
|
'onclick' => 'return confirm("Are you sure?")' |
93 |
|
] |
94 |
|
]) |
95 |
|
->getForm(); |
96 |
|
} |
97 |
|
} |
98 |
|
|
src/AppBundle/Controller/Admin/ModuleController.php 1 location
|
@@ 120-133 (lines=14) @@
|
117 |
|
/** |
118 |
|
* @return \Symfony\Component\Form\Form |
119 |
|
*/ |
120 |
|
private function createFormDelete($id) |
121 |
|
{ |
122 |
|
return $this->createFormBuilder() |
123 |
|
->setAction($this->generateUrl('remove_module', ['id' => $id])) |
124 |
|
->setMethod('DELETE') |
125 |
|
->add('submit', SubmitType::class, [ |
126 |
|
'label' => ' ', |
127 |
|
'attr' => [ |
128 |
|
'class' => 'glyphicon glyphicon-remove btn-link', |
129 |
|
'onclick' => 'return confirm("Are you sure?")' |
130 |
|
] |
131 |
|
]) |
132 |
|
->getForm(); |
133 |
|
} |
134 |
|
} |
135 |
|
|
src/AppBundle/Controller/Admin/QuestionController.php 1 location
|
@@ 136-149 (lines=14) @@
|
133 |
|
/** |
134 |
|
* @return \Symfony\Component\Form\Form |
135 |
|
*/ |
136 |
|
private function createFormDelete($id, $idModule) |
137 |
|
{ |
138 |
|
return $this->createFormBuilder() |
139 |
|
->setAction($this->generateUrl('remove_question', ['id' => $id, 'idModule' => $idModule])) |
140 |
|
->setMethod('DELETE') |
141 |
|
->add('submit', SubmitType::class, [ |
142 |
|
'label' => ' ', |
143 |
|
'attr' => [ |
144 |
|
'class' => 'glyphicon glyphicon-remove btn-link', |
145 |
|
'onclick' => 'return confirm("Are you sure?")' |
146 |
|
] |
147 |
|
]) |
148 |
|
->getForm(); |
149 |
|
} |
150 |
|
|
151 |
|
} |
152 |
|
|
src/AppBundle/Controller/Admin/UserController.php 1 location
|
@@ 103-114 (lines=12) @@
|
100 |
|
* |
101 |
|
* @return \Symfony\Component\Form\Form The form |
102 |
|
*/ |
103 |
|
private function createFormDelete($id) |
104 |
|
{ |
105 |
|
return $this->createFormBuilder() |
106 |
|
->setAction($this->generateUrl('user_delete', ['id' => $id])) |
107 |
|
->setMethod('DELETE') |
108 |
|
->add('submit', SubmitType::class, ['label' => ' ', |
109 |
|
'attr' => [ |
110 |
|
'class' => 'glyphicon glyphicon-remove btn-link', |
111 |
|
'onclick' => 'return confirm("Are you sure?")' |
112 |
|
]]) |
113 |
|
->getForm(); |
114 |
|
} |
115 |
|
} |