403Webshell
Server IP : 65.108.144.40  /  Your IP : 216.73.217.165
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux ubuntu-8gb-hel1-1 5.15.0-173-generic #183-Ubuntu SMP Fri Mar 6 13:29:34 UTC 2026 x86_64
User : dev ( 1000)
PHP Version : 8.2.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/erp/horilla_audit/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/erp/horilla_audit/__pycache__/forms.cpython-310.pyc
o

hͦh�@s�dZddlmZddlmZddlmZddlmZddl	m
Z
ddlmZ
ddlmZmZGd	d
�d
ej�ZGdd�dej�Zd
S)z

forms.py
�)�Mapping)�Any)�forms)�	ErrorList��render_to_string)�gettext_lazy)�AuditTag�HorillaAuditInfocs�eZdZdZejded�d�Zejejdddd�d	�ded
�d�Z	ej
ded�d�Zeje
j��ded
�d�Zd�fdd�Zdd�Z�ZS)�HistoryFormz
    HistoryForm
    FzUpdation title)�required�labelz
Enter text�oh-input w-100�2)�placeholder�class�rows��attrszUpdation description)�widgetrr
zUpdation highlightzUpdation tag)�querysetrr
�returnNcsht�j|i|��i|_|jdjj�ddi�|jdjj�ddi�|jdjj�dd	d
d��dS)N�
history_titlerr�history_highlight�stylez
display:block�history_tagszoh-select oh--dynamic-select-2z
width:100%�auditDynamicTag)rrzdata-ajax-name)�super�__init__�initial�fieldsrr�update)�self�args�kwargs��	__class__��#/var/www/erp/horilla_audit/forms.pyr$s��zHistoryForm.__init__cOsd|i}td|�}|S)zS
        Render the form fields as HTML table rows with Bootstrap styling.
        �formz$horilla_audit/horilla_audit_log.htmlr)r"r#r$�context�
table_htmlr'r'r(�as_history_modal1s
zHistoryForm.as_history_modal)rN)�__name__�
__module__�__qualname__�__doc__r�	CharField�_r�Textarea�history_description�BooleanFieldr�ModelMultipleChoiceFieldr	�objects�allrrr,�
__classcell__r'r'r%r(rs$
����
rcs$eZdZgd�Z�fdd�Z�ZS)�HistoryTrackingFieldsForm)	�id�employee_idr7�mobile�contract_end_date�additional_info�is_from_onboarding�is_directly_converted�
experiencecsbddlm}tt��j|i|���fdd�|j��D�}tj|dtj	ddd�d	�d
��j
d<dS)Nr)�EmployeeWorkInformationcs.g|]}t|d�r|j�jvr|j|jf�qS)�verbose_name)�hasattr�name�excluded_fieldsrD)�.0�field�r"r'r(�
<listcomp>Ks�
�z6HistoryTrackingFieldsForm.__init__.<locals>.<listcomp>Fz/oh-select oh-select-2 select2-hidden-accessiblez
height:270px;)rrr)�choicesrr�tracking_fields)�employee.modelsrCrr:r�_meta�
get_fieldsr�MultipleChoiceField�SelectMultipler )r"r#r$�model�
field_choicesr%rJr(rGs
����z"HistoryTrackingFieldsForm.__init__)r-r.r/rGrr9r'r'r%r(r::sr:N)r0�collections.abcr�typingr�djangor�django.forms.utilsr�django.template.loaderr�django.utils.translationrr2�horilla_audit.modelsr	r
�Formrr:r'r'r'r(�<module>s*

Youez - 2016 - github.com/yon3zu
LinuXploit