-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2f880b8
commit d277c82
Showing
6 changed files
with
79 additions
and
42 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
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
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
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 |
---|---|---|
@@ -1,18 +1,10 @@ | ||
<.header> | ||
New Item | ||
<:subtitle>Use this form to manage item records in your database.</:subtitle> | ||
</.header> | ||
|
||
<.simple_form :let={f} for={@changeset} action={~p"/items"}> | ||
<.error :if={@changeset.action}> | ||
Oops, something went wrong! Please check the errors below. | ||
</.error> | ||
<.input field={{f, :text}} type="text" label="text" /> | ||
<.input field={{f, :person_id}} type="number" label="person_id" /> | ||
<.input field={{f, :status}} type="number" label="status" /> | ||
<.input | ||
field={{f, :text}} | ||
type="text" | ||
placeholder="what needs to be done?" | ||
/> | ||
<:actions> | ||
<.button>Save Item</.button> | ||
<.button style="display:none">Save Item</.button> | ||
</:actions> | ||
</.simple_form> | ||
|
||
<.back navigate={~p"/items"}>Back to items</.back> |