0.2.2 feedback_form in js

This commit is contained in:
SDE
2023-12-09 19:33:03 +03:00
parent 02eb295acc
commit bc69d92ef7
2 changed files with 6 additions and 4 deletions

View File

@@ -18,16 +18,15 @@ def get_inter_Dict(user, context_Dict):
if fb_block:
form_name = fb_block.name
from .forms import FeedbackForm
feedback_form = FeedbackForm()
if form_name:
from .forms import FeedbackForm
feedback_form = FeedbackForm()
feedback_form.initial = {'form_name': form_name}
Dict.update({'feedback_form': feedback_form})
Dict.update({
'sections': sections,
'logo': get_logo_url(),
'feedback_form': feedback_form,
})
# from SubscribesApp.funcs import get_cur_user_subscribe
# user_subscribe = get_cur_user_subscribe(user)

View File

@@ -64,6 +64,9 @@ def get_content_for_section_ajax(request):
from .funcs import get_section_views_Dict
Dict.update(get_section_views_Dict(section))
from GeneralApp.funcs import get_inter_Dict
Dict.update(get_inter_Dict(request.user, Dict))
html = render_to_string('pages/content/c_section_content.html', Dict, request=request)
res_Dict = {