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
Showing
12 changed files
with
67 additions
and
57 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
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
24 changes: 12 additions & 12 deletions
24
resources/views/vendor/statamic/forms/fields/checkboxes.antlers.html
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,20 +1,20 @@ | ||
<div | ||
class="flex | ||
{{ inline | ||
? 'space-x-4' | ||
: 'flex-col space-y-4' | ||
<div | ||
class="flex | ||
{{ inline | ||
? 'space-x-4' | ||
: 'flex-col space-y-4' | ||
}}" | ||
> | ||
{{ foreach:options as="value|label" }} | ||
<label class="inline-flex items-center"> | ||
<input | ||
class="mr-2 rounded border-neutral text-primary focus-visible:ring focus-visible:ring-primary motion-safe:transition" | ||
type="checkbox" | ||
name="{{ handle }}[]" | ||
value="{{ value }}" | ||
<input | ||
class="mr-2 rounded border-neutral text-primary focus-visible:ring focus-visible:ring-primary motion-safe:transition" | ||
type="checkbox" | ||
name="{{ handle }}[]" | ||
value="{{ value }}" | ||
{{ old | in_array:value ?= checked }} | ||
> | ||
{{ trans key="{ label }" }} | ||
{{ trans :key="label" }} | ||
</label> | ||
{{ /foreach:options }} | ||
</div> | ||
</div> |
24 changes: 12 additions & 12 deletions
24
resources/views/vendor/statamic/forms/fields/radio.antlers.html
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,20 +1,20 @@ | ||
<div | ||
class="flex | ||
{{ inline | ||
? 'space-x-4' | ||
: 'flex-col space-y-4' | ||
<div | ||
class="flex | ||
{{ inline | ||
? 'space-x-4' | ||
: 'flex-col space-y-4' | ||
}}" | ||
> | ||
{{ foreach:options as="value|label" }} | ||
<label class="inline-flex items-center"> | ||
<input | ||
class="mr-2 border-neutral text-primary focus-visible:border-primary focus-visible:ring focus-visible:ring-primary motion-safe:transition" | ||
type="radio" | ||
name="{{ handle }}" | ||
value="{{ value }}" | ||
<input | ||
class="mr-2 border-neutral text-primary focus-visible:border-primary focus-visible:ring focus-visible:ring-primary motion-safe:transition" | ||
type="radio" | ||
name="{{ handle }}" | ||
value="{{ value }}" | ||
{{ old === value ?= "checked" }} | ||
> | ||
{{ trans key="{ label }" }} | ||
{{ trans :key="label" }} | ||
</label> | ||
{{ /foreach:options }} | ||
</div> | ||
</div> |
16 changes: 8 additions & 8 deletions
16
resources/views/vendor/statamic/forms/fields/select.antlers.html
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,21 +1,21 @@ | ||
{{# Bind custom error classses when there is a validation error with the field. #}} | ||
<select | ||
class="w-full rounded border-neutral focus-visible:border-primary focus-visible:ring focus-visible:ring-primary motion-safe:transition" | ||
<select | ||
class="w-full rounded border-neutral focus-visible:border-primary focus-visible:ring focus-visible:ring-primary motion-safe:transition" | ||
:class="{ 'border-red-600 focus-visible:border-red-600': errors.{{ handle }} }" | ||
name="{{ handle }}{{ multiple ?= "[]" }}" | ||
{{ multiple ?= "multiple" }} | ||
name="{{ handle }}{{ multiple ?= "[]" }}" | ||
{{ multiple ?= "multiple" }} | ||
> | ||
{{ unless multiple }} | ||
<option value>{{ trans key="Please select..." }}</option> | ||
{{ /unless }} | ||
{{ foreach:options as="value|label" }} | ||
<option | ||
value="{{ value }}" | ||
<option | ||
value="{{ value }}" | ||
{{ if old|in_array:value or old === value }} | ||
selected | ||
{{ /if }} | ||
> | ||
{{ trans key="{ label }" }} | ||
{{ trans :key="label" }} | ||
</option> | ||
{{ /foreach:options }} | ||
</select> | ||
</select> |