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_automations/views/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/erp/horilla_automations/views/__pycache__/cbvs.cpython-310.pyc
o

hͦh��@s^dZddlmZddlmZddlmZddlmZ	ddl
mZmZddl
mZddlmZdd	lmZdd
lmZeedd�eed
�dd�Gdd�dej���Zeedd�eed
�dd�Gdd�dej���Zeedd�eed�dd�Gdd�dej���Zeedd�eed
�dd�Gdd�dej���Zeedd�eed
�dd�Gdd�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.eZdZdZed�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�rr�./var/www/erp/horilla_automations/views/cbvs.pyrs�rcs6eZdZdZd	�fdd�Zed�Zed�ZdZ	�Z
S)
�AutomationNavViewz
    AutomationNavView
    �returnNcs(t�j|i|��dtd��d�|_dS)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__rrr.s�zAutomationNavView.__init__�Automationsrz#listContainer)rN)rrrrr�_trans�	nav_titler�
search_url�search_swap_target�
__classcell__rrr$rr%s	rz(horilla_automation.change_mailautomationcsNeZdZdZeZejZe	d�Z
dZ�fdd�Zdede
jf�fdd	�Z�ZS)
�AutomationFormViewz
    AutomationFormView
    zNew Automationz(horilla_automations/automation_form.htmlcs0t���}tjjj|jdd���}||d<|S)N�pk)r-�instance)r�get_form_kwargsr�MailAutomation�objects�filterr#�first)r!r#r.r$rrr/Js
z"AutomationFormView.get_form_kwargs�formrcsF|��rd}|jjrd}|��t�|jt|��|��St	��
|�S)NzNew automation addedzAutomation updated)�is_validr.r-�saver�success�requestr'�HttpResponser�
form_valid)r!r4�messager$rrr:QszAutomationFormView.form_valid)rrrrr
�
form_classrr0�modelr'�new_display_titlerr/rr9r:r+rrr$rr,<s r,c@sNeZdZdZdZejZed�Z	e
Zdddd�dd	d
d�gZddiZ
gd
�ZdS)�AutomationListViewz
    AutomationListView
    z�
            hx-get="{detailed_url}?instance_ids={ordered_ids}"
            hx-target="#genericModalBody"
            data-toggle="oh-modal-toggle"
            data-target="#genericModal"
        r�Edit�create-outlinea
                class="oh-btn oh-btn--light-bkg w-100"
                hx-get="{edit_url}?instance_ids={ordered_ids}"
                hx-target="#genericModalBody"
                data-target="#genericModal"
                data-toggle="oh-modal-toggle"
            ��action�icon�attrs�Delete�
trash-outlinez�
            class="oh-btn oh-btn--light-bkg w-100 tex-danger"
            onclick="
                event.stopPropagation();
                confirm('Do you want to delete the automation?','{delete_url}')
            "
            rCzstyle='width:100px;'))�Title�title��Modelr=)z
Email Mapping�get_mail_to_displayN)rrrr�	row_attrsrr0r=rr)r	�filter_class�actions�header_attrs�columnsrrrrr?]s"���r?c@sFeZdZdZejZdZdddd�Zgd�Z	ddd	d
�ddd
d
�gZ
dS)�AutomationDetailedViewz 
    AutomationDetailedView
    z
Detailed ViewrI�
get_avatar)rI�subtitle�avatar)rJ)zMail Templates�
mail_template)zMail TorL)zMail Cc�get_mail_cc_display)�Trigger�trigger_displayr@rAz�
            hx-get="{edit_url}?instance_ids={ordered_ids}"
            hx-target="#genericModalBody"
            data-toggle="oh-modal-toggle"
            data-target="#genericModal"
            class="oh-btn oh-btn--info w-50"
            rBrFrGz�
            class="oh-btn oh-btn--danger w-50"
            onclick="
                confirm('Do you want to delete the automation?','{delete_url}')
            "
            N)rrrrrr0r=rI�header�bodyrOrrrrrR�s$�	���rRN)r�django.contribr�django.urlsr�django.utils.decoratorsr�django.utils.translationrr'�horilla.decoratorsrr�horilla_automationsr�horilla_automations.filtersr	�horilla_automations.formsr
�horilla_views.generic.cbvr�HorillaSectionViewr�HorillaNavViewr�HorillaFormViewr,�HorillaListViewr?�HorillaDetailedViewrRrrrr�<module>sF
�
�
�
�
0�

Youez - 2016 - github.com/yon3zu
LinuXploit