| 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_automations/views/__pycache__/ |
Upload File : |
o
hͦh� � @ s^ d Z ddlmZ ddlmZ ddlmZ ddlmZ ddl
mZmZ ddl
mZ ddlmZ dd lmZ dd
lmZ eedd�eed
�dd�G dd� dej���Zeedd�eed
�dd�G dd� dej���Zeedd�eed�dd�G dd� dej���Zeedd�eed
�dd�G dd� dej���Zeedd�eed
�dd�G dd� dej���ZdS )z#
horilla_automations/views/cbvs.py
� )�messages)�reverse_lazy)�method_decorator)�gettext_lazy)�login_required�permission_required)�models)�AutomationFilter)�AutomationForm)�views�dispatch)�namez&horilla_automation.view_mailautomationc @ s. e Zd ZdZed�Zed�ZdZdgZdZ dS )�AutomationSectionViewz
AutomationSectionView
zmail-automations-nav�mail-automations-list-view�
listContainerz/automation/automation.jsz%horilla_automations/section_view.htmlN)
�__name__�
__module__�__qualname__�__doc__r �nav_url�view_url�view_container_id�script_static_paths�
template_name� r r �./var/www/erp/horilla_automations/views/cbvs.pyr s �r c s6 e Zd ZdZd � fdd�Zed�Zed�ZdZ � Z
S )
�AutomationNavViewz
AutomationNavView
�returnNc s( t � j|i |�� dtd�� d�| _d S )Nz
hx-get="zcreate-automationz�"
hx-target="#genericModalBody"
data-target="#genericModal"
data-toggle="oh-modal-toggle"
)�super�__init__r �create_attrs)�self�args�kwargs�� __class__r r r . s �zAutomationNavView.__init__�Automationsr z#listContainer)r N)r r r r r �_trans� nav_titler �
search_url�search_swap_target�
__classcell__r r r$ r r % s r z(horilla_automation.change_mailautomationc sN e Zd ZdZeZejZe d�Z
dZ� fdd�Zdede
jf� fdd �Z� ZS )
�AutomationFormViewz
AutomationFormView
zNew Automationz(horilla_automations/automation_form.htmlc s0 t � �� }tjjj| jd d��� }||d<