
    h-                         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
 ddlmZmZmZmZmZ ddlmZ dd	lmZ d
dlmZmZmZmZ  G d dee      Z G d de
e      Zy)    )forms)gettext)EntangledModelForm   )settings)PaddingFormMixin)AttributesFormFieldButtonGroup	IconGroupTagTypeFormFieldTemplateChoiceMixin)first_choice)FrontendUIItem   )TAB_ALIGNMENT_CHOICESTAB_EFFECT_CHOICESTAB_TEMPLATE_CHOICESTAB_TYPE_CHOICESc            
          e Zd ZdZ G d d      Z ej                   ed      e e	e       ed            Z
 ej                   ed      e e	e       e ed	      
            Z ej                   ed      ej                   ez   ej                   d   d   d e             Z ej(                   ed      dd ed            Z ej                   ed      ej                   ez   d      Z e       Z e       Zy)TabFormza
    Components > "Navs - Tab" Plugin
    https://getbootstrap.com/docs/5.0/components/navs/
    c                        e Zd ZeZdg diZdZy)TabForm.Metaconfig)templatetab_typetab_alignment	tab_index
tab_effect
attributestag_typeN__name__
__module____qualname__r   modelentangled_fieldsuntangled_fields     U/home/dcms/DCMS/lib/python3.12/site-packages/djangocms_frontend/contrib/tabs/forms.pyMetar      s     	
 )r*   r,   Layoutz9This is the template that will be used for the component.)labelchoicesinitial	help_textTypetext)property)attrs)r.   r/   r0   widget	Alignmentr   F)r.   r/   r0   requiredr6   Indexr   z4Index of element to open on page load starting at 1.)r.   	min_valuer8   r1   zAnimation effect)r.   r/   r8   N)r#   r$   r%   __doc__r,   r   ChoiceField_r   r   r   r   r
   dictr   r   EMPTY_CHOICEr   r   r   IntegerFieldr   r   r   r	   r   r   r!   r)   r*   r+   r   r      s%   
) ) !u  k$12OP	H !u  i -.v!67	H &E%%n%%(==%%a(+{M #""jJK	I #"""#%%(::J
 %&J!Hr*   r   c                       e Zd ZdZ G d d      Z ej                   ed       ed      d      Z ej                   ed      d	 ed
            Z
 e       Z e       Zy)TabItemFormzf
    Components > "Navs - Tab Item" Plugin
    https://getbootstrap.com/docs/5.0/components/navs/
    c                        e Zd ZeZdg diZdZy)TabItemForm.Metar   )	tab_titletab_borderedr   r    Nr"   r)   r*   r+   r,   rD   I   s     
 )r*   r,   z	Tab titlezNew tabT)r.   r0   r8   BorderedFzAdd borders to the tab item)r.   r8   r1   N)r#   r$   r%   r;   r,   r   	CharFieldr=   rE   BooleanFieldrF   r	   r   r   r!   r)   r*   r+   rB   rB   C   sm    
	) 	)  n)I
 &5%%
m12L %&J!Hr*   rB   N)djangor   django.utils.translationr   r=   entangled.formsr    r   commonr   fieldsr	   r
   r   r   r   helpersr   modelsr   	constantsr   r   r   r   r   rB   r)   r*   r+   <module>rS      sG     1 .  & h h # $ h h3"!#5 3"l""$6 "r*   