Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Twig] daisyUI form layout #60334

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: 7.4
Choose a base branch
Loading
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
layout draft
  • Loading branch information
Oviglo committed May 2, 2025
commit 8b719c37f4d81fdec2eeef836edb312b8d0509d1
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{%- block button_widget -%}
{%- set attr = attr|merge({class: (attr.class|default('btn-neutral') ~ ' btn')|trim}) -%}
{{- parent() -}}
{%- endblock button_widget %}

{%- block submit_widget -%}
{%- set attr = attr|merge({class: (attr.class|default('btn-primary'))|trim}) -%}
{{- parent() -}}
{%- endblock submit_widget %}

{% block checkbox_widget -%}
{%- set attr_class = attr_class|default(attr.class|default('')) -%}
{%- set attr_class = attr_class ~ ' checkbox' -%}
{%- endblock checkbox_widget %}

{% block radio_widget -%}
{%- set attr_class = attr_class|default(attr.class|default('')) -%}
{%- set attr_class = attr_class ~ ' radio' -%}
{%- endblock radio_widget %}

{% block select_widget -%}
{%- set attr_class = attr_class|default(attr.class|default('')) -%}
{%- set attr_class = attr_class ~ ' select' -%}
{%- endblock select_widget %}

{% block textarea_widget -%}
{% set attr = attr|merge({class: (attr.class|default('') ~ ' textarea')|trim}) %}
{{- parent() -}}
{%- endblock textarea_widget %}

{% block form_widget_simple -%}
{%- if type is not defined or type != 'hidden' %}
{%- set widget_class = ' input' %}
{% endif -%}
{{- parent() -}}
{%- endblock form_widget_simple %}
Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.