-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(form): add support for select multiple with correct marshaller
- Loading branch information
Showing
11 changed files
with
168 additions
and
54 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,13 @@ | ||
FROM golang:bullseye | ||
|
||
# Install dependencies | ||
RUN apt-get update && apt-get install -y \ | ||
build-essential \ | ||
libpq-dev \ | ||
postgresql-client \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN go install github.com/cortesi/modd/cmd/modd@latest | ||
|
||
# Set the Current Working Directory inside the container | ||
WORKDIR /app |
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,7 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [] | ||
} |
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,9 +1,28 @@ | ||
|
||
[Test_Form_Rendering - 1] | ||
<form action="POST" action="" encoding=""> | ||
<label for="name"class="block text-gray-700 text-sm font-bold mb-2">name</label> | ||
<input name="name" type="text" value="John Doe" id="name" class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline" placeholder="Enter the name" required readonly autofocus size="10" maxlength="100" minlength="10" max="100" min="10" step="10" pattern="^[a-z]+$" autocomplete="on"> | ||
|
||
|
||
|
||
<label for="email"class="block text-gray-700 text-sm font-bold mb-2">email</label> | ||
<input name="email" type="email" value="[email protected]" id="email" class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline" max="" min=""> | ||
|
||
|
||
|
||
<label for="date"class="block text-gray-700 text-sm font-bold mb-2">date</label> | ||
<input name="date" type="date" value="2022-04-01" id="date" class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline" max="" min=""> | ||
|
||
|
||
|
||
</form> | ||
--- | ||
|
||
[Test_Form_Rendering_Error - 1] | ||
<form action="POST" action="" encoding=""> | ||
<label for="position"class="block text-gray-700 text-sm font-bold mb-2">position</label> | ||
1 | ||
<input name="position" type="int" value="1" id="position" class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline" max="" min=""> | ||
<input name="position" type="int" value="1" id="position" class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline" max="" min=""> | ||
<span>The position</span> | ||
|
||
|
||
|
@@ -13,35 +32,11 @@ | |
[Test_Form_Rendering_Error - 2] | ||
<form action="POST" action="" encoding=""> | ||
<label for="position"class="block text-gray-700 text-sm font-bold mb-2">position</label> | ||
foo | ||
<input name="position" type="int" value="foo" id="position" class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline" max="" min=""> | ||
<input name="position" type="int" value="foo" id="position" class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline" max="" min=""> | ||
<span>The position</span> | ||
<li class="text-red-500 text-xs italic" style="" >value does not match the expected type</li> | ||
<li class="text-red-500 text-xs italic" style="" >the value is not a valid email</li> | ||
|
||
|
||
</form> | ||
--- | ||
|
||
[Test_Form_Rendering - 1] | ||
<form action="POST" action="" encoding=""> | ||
<label for="name"class="block text-gray-700 text-sm font-bold mb-2">name</label> | ||
John Doe | ||
<input name="name" type="text" value="John Doe" id="name" class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline" placeholder="Enter the name" required readonly autofocus size="10" maxlength="100" minlength="10" max="100" min="10" step="10" pattern="^[a-z]+$" autocomplete="on"> | ||
|
||
|
||
|
||
<label for="email"class="block text-gray-700 text-sm font-bold mb-2">email</label> | ||
[email protected] | ||
<input name="email" type="email" value="[email protected]" id="email" class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline" max="" min=""> | ||
|
||
|
||
|
||
<label for="date"class="block text-gray-700 text-sm font-bold mb-2">date</label> | ||
2022-04-01 | ||
<input name="date" type="date" value="2022-04-01" id="date" class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline" max="" min=""> | ||
|
||
|
||
|
||
</form> | ||
--- |
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
Oops, something went wrong.