@@ 37-42 (lines=6) @@ | ||
34 | $content .= ' '; |
|
35 | } |
|
36 | switch ($options['action']) { |
|
37 | case 'show': |
|
38 | $route = $this->router->generate('dtc_grid_show', ['identifier' => $id, 'id' => $this->gridSourceId]); |
|
39 | $route = htmlspecialchars($route); |
|
40 | $content .= "<button class=\"btn btn-primary grid-show\" data-route=\"$route\" data-id=\"$idHtml\""; |
|
41 | $content .= "onclick=\"dtc_grid_show(this)\">$label</button>"; |
|
42 | break; |
|
43 | case 'delete': |
|
44 | $route = $this->router->generate('dtc_grid_delete', ['identifier' => $id, 'id' => $this->gridSourceId]); |
|
45 | $route = htmlspecialchars($route); |
|
@@ 43-48 (lines=6) @@ | ||
40 | $content .= "<button class=\"btn btn-primary grid-show\" data-route=\"$route\" data-id=\"$idHtml\""; |
|
41 | $content .= "onclick=\"dtc_grid_show(this)\">$label</button>"; |
|
42 | break; |
|
43 | case 'delete': |
|
44 | $route = $this->router->generate('dtc_grid_delete', ['identifier' => $id, 'id' => $this->gridSourceId]); |
|
45 | $route = htmlspecialchars($route); |
|
46 | $content .= "<button class=\"btn btn-primary grid-delete\" data-route=\"$route\" data-id=\"$idHtml\""; |
|
47 | $content .= "onclick=\"dtc_grid_delete(this)\"><i class=\"fa fa-circle-o-notch fa-spin hidden\"></i> $label</button>"; |
|
48 | break; |
|
49 | } |
|
50 | } |
|
51 |