Example #1
0
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})
Example #2
0
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})
Example #3
0
def form(request, form_name):
    return noscript(request, **{
        'title': _("Options"),
        'message': _("To change options enable JS."),
    })
Example #4
0
def activation_noscript(request, user_id=None, token=None):
    return noscript(request, **{
        'title': _("Activate your account"),
        'message': _("To activate your account enable JavaScript."),
    })
Example #5
0
def test_noscript(request):
    return noscript(request, **request.POST)
Example #6
0
def activation_noscript(request, user_id=None, token=None):
    return noscript(
        request, **{
            'title': _("Activate your account"),
            'message': _("To activate your account enable JavaScript."),
        })
Example #7
0
def form(request, form_name, token=None):
    return noscript(
        request, **{
            'title': _("Options"),
            'message': _("To change options enable JavaScript."),
        })
Example #8
0
def forgotten_password_noscript(request, user_id=None, token=None):
    return noscript(
        request, **{
            'title': _("Change forgotten password"),
            'message': _("To change forgotten password enable JavaScript."),
        })
Example #9
0
def test_noscript(request):
    return noscript(request, **request.POST)
Example #10
0
def forgotten_password_noscript(request, user_id=None, token=None):
    return noscript(
        request,
        **{"title": _("Change forgotten password"), "message": _("To change forgotten password enable JavaScript.")}
    )
Example #11
0
def form(request, form_name, token=None):
    return noscript(request, **{
        'title': _("Options"),
        'message': _("To change options enable JavaScript."),
    })