| 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 : |
o
hͦh � @ s� d Z ddlmZ ddlmZ ddlmZ ddlmZ ddl m
Z
ddlmZ
ddlmZmZ G d d
� d
ej�ZG dd� dej�Zd
S )z
forms.py
� )�Mapping)�Any)�forms)� ErrorList��render_to_string)�gettext_lazy)�AuditTag�HorillaAuditInfoc s� e Zd ZdZejded�d�Zejejdddd�d �ded
�d�Z ej
ded�d�Zeje
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 highlightzUpdation tag)�querysetr r
�returnNc sh t � j|i |�� i | _| jd jj�ddi� | jd jj�ddi� | jd jj�dd d
d�� d S )N�
history_titler r �history_highlight�stylez
display:block�history_tagszoh-select oh--dynamic-select-2z
width:100%�auditDynamicTag)r r zdata-ajax-name)�super�__init__�initial�fieldsr r �update)�self�args�kwargs�� __class__� �#/var/www/erp/horilla_audit/forms.pyr $ s ��zHistoryForm.__init__c O s d| i}t d|�}|S )zS
Render the form fields as HTML table rows with Bootstrap styling.
�formz$horilla_audit/horilla_audit_log.htmlr )r"