Exemple #1
0
    def get_context_data(self, **kwargs):
        context = super(ContactFormView, self).get_context_data(**kwargs)
        context['project_list'] = Project.objects.all()[:3]
        context['service_list'] = service_list = Service.objects.filter(is_home=True)
        context['service_main'] = Service.objects.get(is_main=True)
        context['post_list'] = Post.objects.all()
        context['review_list'] = Review.objects.all()
        context['partner_list'] = Partner.objects.all()
        context['page_list'] = Page.objects.all()
        context['config'] = get_site_config(self.request)

        config = get_site_config(self.request)
        context['title'] = config.site_name
        context['description'] = config.site_description
        return context
Exemple #2
0
def calc(context, request):
    config = get_site_config(request)
    performer_profile = config.account.performer_of_account
    return {
        'config': config,
        'performer_profile': performer_profile,
        'request': request,
    }
Exemple #3
0
def home_contact_form(context, request):
    config = get_site_config(request)
    form = SubscribeForm()
    return {
        'config': config,
        'form': form,
        'request': request,
    }
Exemple #4
0
def measure_form(context, request):
    config = get_site_config(request)
    performer_profile = config.account.performer_of_account
    form = MeasureForm()
    return {
        'config': config,
        'performer_profile': performer_profile,
        'form': form,
        'request': request,
    }
Exemple #5
0
def footer(context, request):
    config = get_site_config(request)
    project_list = Project.objects.order_by('created_at')[:3]
    post_list = Post.objects.order_by('created_at')[:3]
    page_list = Page.objects.order_by('created_at')[:3]
    return {
        'config': config,
        'request': request,
        'project_list': project_list,
        'post_list': post_list,
        'page_list': page_list
    }
Exemple #6
0
def top_menu(context, request):
    config = get_site_config(request)
    return {
        'config': config,
        'request': request,
    }