[6.x]: Control Panel settings form doesn't offer field toggle option
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 45/100
Línea de trabajo
Start by reading the Craft 6 backend Form API and the Inertia CP Form page mentioned in the issue, then compare their field and grouping options with the previous Twig form example. Done means determining whether the API can express a lightswitch that toggles a settings group, and what change would provide that behavior if it cannot.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
What happened?
Description
A Control Panel settings form built using Craft 6's backend Form API (CraftCms\Cms\Form\Form) and rendered through the Inertia CP Form page.
Previously:
{{ forms.lightswitchField({
label: "Enable Something",
name: 'enableSomething',
on: settings.enableSomething,
toggle: '#custom-something-settings',
}) }}
<div id="custom-something-settings" class="{{ not settings.enableSomething ? 'hidden' }}">
{{ forms.textField({
label: "Additional Setting",
name: 'additionalSetting',
value: settings.additionalSetting,
}) }}
</div>
Currently, I don't think there is an equivalent like:
Field::make('Enable Something', Lightswitch::make('settings.enableSomething')
->toggle('custom-something-settings')),
Group::make('custom-something-settings', [
Field::make('Additional Setting', Text::make('settings.additionalSetting')),
]),
Craft CMS version
6.0.0-alpha.19
PHP version
No response
Operating system and version
No response
Database type and version
No response
Image driver and version
No response
Installed plugins and versions
- Lenguaje dominante
- PHP
- Estrellas
- 3.6k
- Forks
- 712
- Merge medio
- 13 h 5 min
- PR fusionados (30 d)
- 328
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de craftcms/cms
-
bug repo:cms
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
craftcms/cms#20248 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bug repo:cms
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
craftcms/cms#20205 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
[6.x]: Element index View menu: sort direction buttons only update after the table has loadedAbiertobug repo:cms
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
craftcms/cms#20203 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
[5.x]: Moving an asset with “Replace it” throws TypeError: volumeUid must be of type string, null givenPosiblemente ocupada @i-just la tomó hace 5 días. Abiertobug repo:cms
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
craftcms/cms#20128 · 2 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
bug repo:cms
Dificultad 4/5 1-2 días Aptitud para principiantes 55/100
craftcms/cms#20226 · 1 comentario · 1 reacción ·
Los mantenedores suelen responder en 1 día
Todos los issues de craftcms/cms
Issues similares
-
jira-created
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 2 días
-
enhancement
Dificultad 1/5 Menos de una hora Aptitud para principiantes 78/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
grokability/snipe-it#19996 ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 1/5 Menos de una hora Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
Add a dark themeAbiertogood first issue laravel-appointment-reminders
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100