-
-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #86 from lara-zeus/embed-forms
add docs on how to embed the form in any blade file
- Loading branch information
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
title: Embed the Form | ||
weight: 8 | ||
--- | ||
|
||
## Embed the Form | ||
|
||
to Embed the Form in any blade page, simply use: | ||
|
||
```html | ||
<livewire:bolt.fill-form slug="feedback" /> | ||
``` | ||
|
||
and [this](https://demo.larazeus.com/embed) is how the form look in an empty page. | ||
|
||
### Compiling assets | ||
* make sure to include all the assets needed to render the form, | ||
* take a look at creating [custom themes](https://filamentphp.com/docs/2.x/admin/appearance#building-themes) for Filament. | ||
* also you must include zeus assets, the [frontend.css](https://github.com/lara-zeus/core/blob/main/resources/css/frontend.css) and [frontend.js](https://github.com/lara-zeus/core/blob/main/resources/js/filament.js) | ||
|
||
or you can simply include the pre compiled files from zeus core: | ||
|
||
```html | ||
<link rel="stylesheet" href="{{ asset('vendor/zeus/frontend.css') }}"> | ||
<script src="{{ asset('vendor/zeus/app.js') }}" defer></script> | ||
``` |