def change_forum_options(request): return noscript(request, **{ 'title': _("Change options"), 'message': _("To change forum options enable JavaScript."), }) form = ChangeForumOptionsForm(instance=request.user) if request.method == 'POST': form = ChangeForumOptionsForm(request.POST, instance=request.user) if form.is_valid(): form.save() message = _("Your forum options have been changed.") messages.success(request, message) return redirect('misago:usercp_change_forum_options') return render(request, 'misago/usercp/change_forum_options.html', {'form': form})
def change_forum_options(request): return noscript( request, **{ 'title': _("Change options"), 'message': _("To change forum options enable JavaScript."), }) form = ChangeForumOptionsForm(instance=request.user) if request.method == 'POST': form = ChangeForumOptionsForm(request.POST, instance=request.user) if form.is_valid(): form.save() message = _("Your forum options have been changed.") messages.success(request, message) return redirect('misago:usercp_change_forum_options') return render(request, 'misago/usercp/change_forum_options.html', {'form': form})
def form(request, form_name): return noscript(request, **{ 'title': _("Options"), 'message': _("To change options enable JS."), })
def activation_noscript(request, user_id=None, token=None): return noscript(request, **{ 'title': _("Activate your account"), 'message': _("To activate your account enable JavaScript."), })
def test_noscript(request): return noscript(request, **request.POST)
def activation_noscript(request, user_id=None, token=None): return noscript( request, **{ 'title': _("Activate your account"), 'message': _("To activate your account enable JavaScript."), })
def form(request, form_name, token=None): return noscript( request, **{ 'title': _("Options"), 'message': _("To change options enable JavaScript."), })
def forgotten_password_noscript(request, user_id=None, token=None): return noscript( request, **{ 'title': _("Change forgotten password"), 'message': _("To change forgotten password enable JavaScript."), })
def forgotten_password_noscript(request, user_id=None, token=None): return noscript( request, **{"title": _("Change forgotten password"), "message": _("To change forgotten password enable JavaScript.")} )
def form(request, form_name, token=None): return noscript(request, **{ 'title': _("Options"), 'message': _("To change options enable JavaScript."), })