
    h{                     v    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 d dlmZ d dlmZ  G d d	e      Zy
)    )forms)gettext_lazy)EntangledModelForm)AttributesFormFieldColoredButtonGroupTagTypeFormField)first_choice)FrontendUIItem)COLOR_STYLE_CHOICESc                   .   e Zd ZdZ G d d      Z ej                   ed      d ej                  ddi      	      Z	 ej                   ed
      e ee       e             Z ej                   ed      dd ed            Z e       Z e       Zy)	BadgeFormz]
    Components > "Badge" Plugin
    https://getbootstrap.com/docs/5.0/components/badge/
    c                       e Zd ZeZdg diZy)BadgeForm.Metaconfig)
badge_textbadge_contextbadge_pills
attributesN)__name__
__module____qualname__r
   modelentangled_fields     V/home/dcms/DCMS/lib/python3.12/site-packages/djangocms_frontend/contrib/badge/forms.pyMetar      s     
r   r   z
Badge text   classzjs-prepopulate-selected-text)attrs)label
max_lengthwidgetContext)r!   choicesinitialr#   zPills styleFzActivates the pills style.)r!   r&   required	help_textN)r   r   r   __doc__r   r   	CharField_	TextInputr   ChoiceFieldr   r	   r   r   BooleanFieldr   r   r   r   tag_typer   r   r   r   r      s    
	
 	
 !oug/M%NOJ
 &E%%	l#01!#	M %%$$01	K %&J!Hr   r   N)djangor   django.utils.translationr   r+   entangled.formsr   djangocms_frontend.fieldsr   r   r   djangocms_frontend.helpersr	   djangocms_frontend.modelsr
   djangocms_frontend.settingsr   r   r   r   r   <module>r7      s*     6 . _ _ 3 4 ;#"" #"r   