| @@ 5-23 (lines=19) @@ | ||
| 2 | ||
| 3 | namespace Boduch\Grid\Components; |
|
| 4 | ||
| 5 | class DeleteButton extends RowAction |
|
| 6 | { |
|
| 7 | /** |
|
| 8 | * @return string |
|
| 9 | */ |
|
| 10 | public function render() |
|
| 11 | { |
|
| 12 | return (string) $this->tag( |
|
| 13 | 'a', |
|
| 14 | (string) $this->tag('i', '', ['class' => 'fa fa-trash-o']), |
|
| 15 | [ |
|
| 16 | 'href' => $this->buildActionUrl($this->data), |
|
| 17 | 'class' => 'btn btn-danger btn-xs', |
|
| 18 | 'title' => __('Delete'), |
|
| 19 | 'data-toggle' => 'modal' |
|
| 20 | ] |
|
| 21 | ); |
|
| 22 | } |
|
| 23 | } |
|
| 24 | ||
| @@ 5-18 (lines=14) @@ | ||
| 2 | ||
| 3 | namespace Boduch\Grid\Components; |
|
| 4 | ||
| 5 | class EditButton extends RowAction |
|
| 6 | { |
|
| 7 | /** |
|
| 8 | * @return string |
|
| 9 | */ |
|
| 10 | public function render() |
|
| 11 | { |
|
| 12 | return (string) $this->tag( |
|
| 13 | 'a', |
|
| 14 | (string) $this->tag('i', '', ['class' => 'fa fa-edit']), |
|
| 15 | ['href' => $this->buildActionUrl($this->data), 'class' => 'btn btn-default btn-xs', 'title' => __('Edit')] |
|
| 16 | ); |
|
| 17 | } |
|
| 18 | } |
|
| 19 | ||
| @@ 5-18 (lines=14) @@ | ||
| 2 | ||
| 3 | namespace Boduch\Grid\Components; |
|
| 4 | ||
| 5 | class ShowButton extends RowAction |
|
| 6 | { |
|
| 7 | /** |
|
| 8 | * @return string |
|
| 9 | */ |
|
| 10 | public function render() |
|
| 11 | { |
|
| 12 | return (string) $this->tag( |
|
| 13 | 'a', |
|
| 14 | (string) $this->tag('i', '', ['class' => 'fa fa-eye']), |
|
| 15 | ['href' => $this->buildActionUrl($this->data), 'class' => 'btn btn-default btn-xs', 'title' => __('Show')] |
|
| 16 | ); |
|
| 17 | } |
|
| 18 | } |
|
| 19 | ||