示例#1
0
    def get_context_data(self, **kwargs):
        context = super().get_context_data(**kwargs)

        context['visa_status_objects'] = get_objects_as_choices(VisaStatus)
        context['cv_templates'] = get_objects_as_choices(CVTemplate)
        context['employees'] = get_objects_as_choices(Employee)
        context['locations'] = get_objects_as_choices(Location)
        context['nationalities'] = get_objects_as_choices(Nationality)
        return context
示例#2
0
    def get_context_data(self, **kwargs):
        context = super().get_context_data(**kwargs)

        context['locations'] = get_objects_as_choices(Location)
        context['industries'] = get_objects_as_choices(Industry)
        context['employees'] = get_objects_as_choices(Employee)

        context['label_meeting_arranged'] = settings.CLIENTS_MEETING_ARRANGED
        context['label_notes'] = settings.CLIENTS_NOTES
        return context
示例#3
0
    def get_context_data(self, **kwargs):
        context = super().get_context_data(**kwargs)

        job = self.kwargs['job_pk']
        job = Job.objects.get(pk=job)

        context['candidates'] = get_objects_as_choices(Candidate)
        context['status_objects'] = get_objects_as_choices(Status)
        context['employees'] = get_objects_as_choices(Employee)
        context['cv_sources'] = get_objects_as_choices(Board)
        context['job'] = job
        return context
示例#4
0
    def get_context_data(self, **kwargs):
        context = super().get_context_data(**kwargs)

        context['clients'] = get_objects_as_choices(Client)
        context['locations'] = get_objects_as_choices(Location)

        # Job Status
        status_objects = JobStatus.objects.values()
        status_objects = [status for status in status_objects]
        context['job_status_objects'] = json.dumps(status_objects)

        context['employees'] = get_objects_as_choices(Employee)
        return context
示例#5
0
    def get_context_data(self, **kwargs):
        context = super().get_context_data(**kwargs)

        status_choices = [{'value': data[0], 'text': data[1]}
                          for data in Interview.STATUS_CHOICES]
        status_choices = json.dumps(status_choices)

        context['modes'] = get_objects_as_choices(InterviewMode)
        context['status_choices'] = status_choices
        context['job_candidate'] = self.object.job_candidate
        context['employees'] = get_objects_as_choices(Employee)
        context['form_mode'] = 'Edit'
        return context
示例#6
0
    def get_context_data(self, **kwargs):
        context = super().get_context_data(**kwargs)

        # filter by reference number
        context['q'] = self.search
        context['employee'] = self.employee
        context['employees'] = get_objects_as_choices(Employee)
        return context
示例#7
0
 def get_context_data(self):
     context = super().get_context_data()
     context['owners'] = get_objects_as_choices(Employee)
     context['owners_query'] = self.owners
     context['visa_status_choices'] = get_objects_as_choices(VisaStatus)
     context['visa_status_query'] = self.visa_status
     context['search_languages'] = self.languages
     context['search_nationalities'] = self.nationalities
     context['search_is_male'] = self.is_male
     context['search_age_range'] = self.age_range
     context['search_name'] = self.name
     context['search_positions'] = self.positions
     context[
         'search_current_previous_company'] = self.current_previous_company
     context['search_notice_period'] = self.notice_period
     context['search_current_salary'] = self.current_salary
     context['search_expected_salary'] = self.expected_salary
     return context
示例#8
0
    def get_context_data(self, **kwargs):
        context = super().get_context_data(**kwargs)

        employees = get_objects_as_choices(Employee)
        locations = get_objects_as_choices(Location)

        try:
            default_candidate_owner = self.request.user.as_employee
            context['default_candidate_owner'] = default_candidate_owner
        except Exception as e:
            context['default_candidate_owner'] = ''

        context['employees'] = employees
        context['locations'] = locations

        for f in self.populatable_fields:
            field_name = 'q_{}'.format(f)
            context[field_name] = getattr(self, field_name, '')
        return context
示例#9
0
    def get_context_data(self, **kwargs):
        context = super().get_context_data(**kwargs)

        if self.object.is_paid:
            is_paid = 'true'
        else:
            is_paid = 'false'

        context['is_paid'] = is_paid
        context['mode'] = 'Edit'
        context['employees'] = get_objects_as_choices(Employee)
        return context
示例#10
0
    def get_context_data(self, **kwargs):
        context = super().get_context_data(**kwargs)

        context['mode'] = 'New'
        context['employees'] = get_objects_as_choices(Employee)
        return context
示例#11
0
    def get_context_data(self, **kwargs):
        context = super().get_context_data(**kwargs)

        context['clients'] = get_objects_as_choices(Client)
        return context
示例#12
0
    def get_context_data(self, **kwargs):
        context = super().get_context_data(**kwargs)

        context['candidates'] = get_objects_as_choices(Candidate)
        context['job'] = self.job
        return context
示例#13
0
 def get_context_data(self, **kwargs):
     context = super().get_context_data(**kwargs)
     context['q'] = self.search
     context['employees'] = get_objects_as_choices(Employee)
     context['employee'] = self.assoc_consult
     return context
示例#14
0
 def get_context_data(self, **kwargs):
     context = super().get_context_data(**kwargs)
     context['bd_person'] = self.bd_person
     context['employees'] = get_objects_as_choices(Employee)
     return context
示例#15
0
 def get_context_data(self, **kwargs):
     context = super().get_context_data(**kwargs)
     context['locations'] = get_objects_as_choices(Location)
     context['industries'] = get_objects_as_choices(Industry)
     return context