-
Notifications
You must be signed in to change notification settings - Fork 33
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 #353 from DissNik/2.0
UI form component
- Loading branch information
Showing
10 changed files
with
163 additions
and
8 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
11 changes: 11 additions & 0 deletions
11
resources/views/examples/components/form/index-buttons.blade.php
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,11 @@ | ||
<x-moonshine::form> | ||
<x-moonshine::form.input | ||
name="title" | ||
placeholder="Title" | ||
value="" | ||
/> | ||
<x-slot:buttons><!-- [tl! focus:start] --> | ||
<x-moonshine::form.button type="reset">Cancel</x-moonshine::form.button> | ||
<x-moonshine::form.button class="btn-primary">Submit</x-moonshine::form.button> | ||
</x-slot:buttons><!-- [tl! focus:end] --> | ||
</x-moonshine::form> |
3 changes: 3 additions & 0 deletions
3
resources/views/examples/components/form/index-error-name.blade.php
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,3 @@ | ||
<x-moonshine::form raw error name="my-form"><!-- [tl! focus] --> | ||
// form elements | ||
</x-moonshine::form><!-- [tl! focus] --> |
3 changes: 3 additions & 0 deletions
3
resources/views/examples/components/form/index-error.blade.php
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,3 @@ | ||
<x-moonshine::form raw error><!-- [tl! focus] --> | ||
// form elements | ||
</x-moonshine::form><!-- [tl! focus] --> |
3 changes: 3 additions & 0 deletions
3
resources/views/examples/components/form/index-precognitive.blade.php
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,3 @@ | ||
<x-moonshine::form precognitive><!-- [tl! focus] --> | ||
// form elements | ||
</x-moonshine::form><!-- [tl! focus] --> |
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,3 @@ | ||
<x-moonshine::form raw><!-- [tl! focus] --> | ||
// form elements | ||
</x-moonshine::form><!-- [tl! focus] --> |
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
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