
    hv	                         d dl mZ d dlmZ d dlmZ d dlmZ ddl	m
Z
mZmZ ddlmZmZmZmZ ddlmZ d	d
lmZ  G d de
ee      Z G d deee      Zy)    )forms)gettext_lazy)EntangledModelForm)settings   )MarginFormMixinPaddingFormMixinResponsiveFormMixin)AttributesFormFieldButtonGroupColoredButtonGroupTagTypeFormField)FrontendUIItem   )LISTGROUP_STATE_CHOICESc                       e Zd ZdZ G d d      Z ej                   ed      dd ed            Z e	       Z
 e       Zy)	ListGroupFormzg
    Components > "List Group" Plugin
    https://getbootstrap.com/docs/5.0/components/list-group/
    c                        e Zd ZeZdddgiZdZy)ListGroupForm.Metaconfiglist_group_flush
attributestag_typeN__name__
__module____qualname__r   modelentangled_fieldsuntangled_fields     Z/home/dcms/DCMS/lib/python3.12/site-packages/djangocms_frontend/contrib/listgroup/forms.pyMetar      s%    "
 )r#   r%   zList group flushFz:Create lists of content in a card with a flush list group.)labelinitialrequired	help_textN)r   r   r   __doc__r%   r   BooleanField_r   r   r   r   r   r"   r#   r$   r   r      sP    
) ) *u))"#PQ	 %&J!Hr#   r   c                      e Zd ZdZ G d d      Z ej                   ed      d ed            Z ej                   ed      e
j                  e
j                  z   e
j                  d	   d	   d e       
      Z ej                   ed      e
j                  ez   e
j                  d	   d	   d e ed            
      Z e       Z e       Zy)ListGroupItemFormzl
    Components > "List Group Item" Plugin
    https://getbootstrap.com/docs/5.0/components/list-group/
    c                        e Zd ZeZdg diZdZy)ListGroupItemForm.Metar   )simple_contentlist_context
list_stater   r   Nr   r"   r#   r$   r%   r0   -   s     
 )r#   r%   zOne line contentFzDList item text. Is only show if this list item has no child plugins.)r&   r(   r)   Contextr   )r&   choicesr'   r(   widgetStater3   )property)attrsN)r   r   r   r*   r%   r   	CharFieldr,   r1   ChoiceFieldr   EMPTY_CHOICECOLOR_STYLE_CHOICESr   r2   r   r   dictr3   r   r   r   r   r"   r#   r$   r.   r.   '   s    

) 
) %U__"#Z[N
 %5$$	l%%(D(DD%%a(+!#L #""j%%(??%%a(+|!<=J %&J!Hr#   r.   N)djangor   django.utils.translationr   r,   entangled.formsr   djangocms_frontendr   commonr   r	   r
   fieldsr   r   r   r   modelsr   	constantsr   r   r.   r"   r#   r$   <module>rG      sH     6 . ' L L \ \ $ ."O%8:L "4&"(*=?Q &"r#   