
    h                     ^    d dl mZ d dlmZ d dlmZ d dlmZ  G d d      Z	 G d de      Z
y	)
    )gettext_lazy)EntangledModelFormMixin)AttributesFormField)insert_fieldsc                   6     e Zd Z ed      ddZd fd	Z xZS )AttributesMixinzbAdvanced settings lets you add html attributes to render this element. Use them wisely and rarely.)collapse
attributes)descriptionclassesc                     | j                   j                  }dt        |dd      v rdgng }|j                  d       t	        t
        |   ||      |t        d      | j                  d      S )Ntag_typeuntangled_fields r
   zAdvanced settings)	blockname
blockattrsposition)	form_metagetattrappendr   superget_fieldsets_
block_attr)selfrequestobjmetafields	__class__s        T/home/dcms/DCMS/lib/python3.12/site-packages/djangocms_frontend/common/attributes.pyr   zAttributesMixin.get_fieldsets   sj    yy!+wt=OQS/T!T*Z\l#G!'3/+,
 	
    )N)__name__
__module____qualname__r   r   r   __classcell__)r"   s   @r#   r   r      s$    p

	J

 

r$   r   c                   .    e Zd Z G d d      Z e       Zy)AttributesFormMixinc                       e Zd ZddgiZy)AttributesFormMixin.Metaconfigr
   N)r%   r&   r'   entangled_fieldsr   r$   r#   Metar,   !   s    
r$   r/   N)r%   r&   r'   r/   r   r
   r   r$   r#   r*   r*       s    
 
 %&Jr$   r*   N)django.utils.translationr   r   entangled.formsr   djangocms_frontend.fieldsr   djangocms_frontend.helpersr   r   r*   r   r$   r#   <module>r4      s(    6 3 9 4
 
0'1 'r$   