
    si                        d 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 ddlmZ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 ddlmZ ddlmZ  eed       e ed      d       G d de                    Z eed       e ed      d       G d de                    Zej?                  dej@                  dddejB                  dddejD                  dddejF                  dddejH                  dddejJ                  dddejL                  d dd!ejO                         d"dd# ejN                         ddd$ejP                  d%dg
&        ej>                  d$ejR                  d%dg&       y')(z=
This page handles the cbv methods for canidate profile page
    )method_decorator)gettext_lazy)EmployeeProfileView)settings)login_required)HorillaListViewHorillaProfileView)CandidateTaskFilter)CandidateTask)CandidateMailLogTabList)all_manager_can_enter)CandidateFilter)	Candidate)viewsdispatch)namezrecruitment.view_candidate)permc                       e Zd ZdZeZeZdZdZ	 e
d      dej                   ddd e
d	      dej                   d
dddgZy)CandidateProfileViewz
    Candidate ProfileView
    zcandidate-view-individualcand_idEdit/zimages/ui/edit_btn.pngzy
                        onclick="
                        window.location.href='{get_update_url}' "
                    )titlesrcattrszView candidate self trackingzimages/ui/exit-outline.svgz:recruitment.cbv.accessibility.view_candidate_self_trackingzf
                href="{get_self_tracking_url}"
                class="oh-dropdown__link"
            )r   r   accessibilityr   N)__name__
__module____qualname____doc__r   modelr   filter_classpush_urlkey_name_r   
STATIC_URLactions     E/var/www/python-projects/worksol/recruitment/cbv/candidate_profile.pyr   r      sw    
 E"L*HH vYx**++AB	
 56x**++EFY		
Gr)   r   c                   f     e Zd ZdZdZeZdZeZ	dZ
dZdgZ fdZg dZdd	iZ fd
Zd fd	Z xZS )CandidateProfileTasksz
    CandidateProfileTasks
    zonboarding/empty_task.htmlFselectedInstanceIdsstatusc                     t         |          xsU | j                  j                  j                  j
                  j                  | j                  d         j                         S )Npk)candidate__candidate_id__pk)	superbulk_update_accessibilityrequestuseremployee_getonboardingstage_setfilterkwargsexists)self	__class__s    r*   r3   z/CandidateProfileTasks.bulk_update_accessibilityK   sU    G-/ ||  --AAHH,0KK,= I fh		
r)   ))Taskonboarding_task_id__task_title)Status
status_col)zModified By(modified_by__employee_get__get_full_name%modified_by__employee_get__get_avatarr@   z(
        style="width:180px!important;"
c                 Z    t        |   di | | j                  j                  | _        y )Nr(   )r2   __init__r4   path
search_url)r;   r9   r<   s     r*   rD   zCandidateProfileTasks.__init__c   s$    "6",,++r)   c                     t        |   ||g|i |j                  | j                  d         | _        | j                  S )Nr0   )candidate_id__pk)r2   get_querysetr8   r9   queryset)r;   rJ   filteredargsr9   r<   s        r*   rI   z"CandidateProfileTasks.get_querysetg   sO    G "H?/3?7=?VT[[%6V7 	
 }}r)   )NF)r   r   r   r    custom_empty_templater   r!   show_filter_tagsr
   r"   filter_selectedselected_instances_key_idbulk_update_fieldsr3   columnsheader_attrsrD   rI   __classcell__)r<   s   @r*   r,   r,   8   sb    
 9E&LO 5
G 	 L, r)   r,   Aboutz6recruitment.cbv.accessibility.if_manager_accessibility)r   viewr   ResumeSurvey	DocumentsNotesHistoryRatingz2recruitment.cbv.accessibility.rating_accessibility
Onboardingz6recruitment.cbv.accessibility.onboarding_accessibilityzMail LogzScheduled InterviewszDrecruitment.cbv.accessibility.empl_scheduled_interview_accessibility)tabsN)*r    django.utils.decoratorsr   django.utils.translationr   r%   employee.cbv.employee_profiler   horillar   horilla_views.cbv_methodsr   horilla_views.generic.cbv.viewsr   r	   onboarding.filtersr
   onboarding.modelsr   "recruitment.cbv.candidate_mail_logr   recruitment.cbv_decoratorsr   recruitment.filtersr   recruitment.modelsr   recruitment.viewsr   r   r,   add_tabcandidate_about_tabcandidate_resume_tabcandidate_survey_tabcandidate_document_request_tabadd_notecandidate_history_tabcandidate_rating_tabas_viewcandidate_interview_tabscheduled_interview_tabr(   r)   r*   <module>rw      s   5 6 =  4 O 2 + F < / ( # .z2;<:-  3> .z2;<:1O 1 31h    --U	
 ..U	
 ..U	
 !88U	
 NNU	
 //U	
 ..Q	
 ")113U	
  3+335U		
 ,11c	
_4
  6r     ,11c	

r)   