File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ Let's say we want to create a simple ```moderate.blade.php``` button. This butto
106
106
- Create the ``` resources\views\vendor\backpack\crud\buttons\moderate.blade.php ``` file:
107
107
``` php
108
108
@if ($crud->hasAccess('update'))
109
- <a href =" {{ url($crud->route.'/'.$entry->getKey().'/moderate') }} " class =" btn btn-xs btn-default" ><i class =" fa fa -ban" ></i > Moderate</a >
109
+ <a href =" {{ url($crud->route.'/'.$entry->getKey().'/moderate') }} " class =" btn btn-xs btn-default" ><i class =" la la -ban" ></i > Moderate</a >
110
110
@endif
111
111
```
112
112
- Add the new route, next to ``` UserCrudController ``` 's route (most likely inside ``` routes/backpack/custom.php ``` ):
@@ -143,7 +143,7 @@ In your ```Article``` model:
143
143
``` php
144
144
public function openGoogle($crud = false)
145
145
{
146
- return '<a class =" btn btn-sm btn-link" target =" _blank" href =" http://google.com?q='.urlencode($this->text).'" data-toggle =" tooltip" title =" Just a demo custom button." ><i class =" fa fa -search" ></i > Google it</a >';
146
+ return '<a class =" btn btn-sm btn-link" target =" _blank" href =" http://google.com?q='.urlencode($this->text).'" data-toggle =" tooltip" title =" Just a demo custom button." ><i class =" la la -search" ></i > Google it</a >';
147
147
}
148
148
```
149
149
@@ -162,7 +162,7 @@ The steps would be:
162
162
``` php
163
163
@if ($crud->hasAccess('create'))
164
164
<a href =" javascript:void(0)" onclick =" importTransaction(this)" data-route =" {{ url($crud->route.'/import') }}" class =" btn btn-sm btn-link" data-button-type =" import" >
165
- <span class =" ladda-label" ><i class =" fa fa -plus" ></i > Import {{ $crud->entity_name }}</span >
165
+ <span class =" ladda-label" ><i class =" la la -plus" ></i > Import {{ $crud->entity_name }}</span >
166
166
</a >
167
167
@endif
168
168
You can’t perform that action at this time.
0 commit comments