create empty manage account view
parent
0ef5c112db
commit
bde8e98518
|
@ -0,0 +1,15 @@
|
|||
{% extends "basedocumentation.html" %}
|
||||
{% block title %}Your Unglue.it Account{% endblock %}
|
||||
{% block doccontent %}
|
||||
<h2>Your Pledges</h2>
|
||||
|
||||
<h2>Your Payment Info</h2>
|
||||
|
||||
<h2> Other Account Management Tools </h2>
|
||||
<ul>
|
||||
<li>Want to <a href="{% url auth_password_change %}">change your password</a>?</li>
|
||||
<li>Want to <a href="/accounts/edit/">change your username or email address</a>?</li>
|
||||
</ul>
|
||||
{% endblock %}
|
||||
|
||||
|
|
@ -10,7 +10,7 @@ from regluit.core.feeds import SupporterWishlistFeed
|
|||
from regluit.core.models import Campaign
|
||||
from regluit.frontend.views import GoodreadsDisplayView, LibraryThingView, PledgeView, PledgeCompleteView, PledgeCancelView, PledgeRechargeView, FAQView
|
||||
from regluit.frontend.views import CampaignListView, WorkListView, UngluedListView, InfoPageView, InfoLangView, DonationView, FundPledgeView
|
||||
from regluit.frontend.views import NonprofitCampaign, DonationCredit, PledgeModifiedView
|
||||
from regluit.frontend.views import NonprofitCampaign, DonationCredit, PledgeModifiedView, ManageAccount
|
||||
|
||||
urlpatterns = patterns(
|
||||
"regluit.frontend.views",
|
||||
|
@ -18,6 +18,7 @@ urlpatterns = patterns(
|
|||
url(r"^landing/$", "home", {'landing': True}, name="landing"),
|
||||
url(r"^next/$", "next", name="next"),
|
||||
url(r"^supporter/(?P<supporter_username>[^/]+)/$", "supporter", {'template_name': 'supporter.html'}, name="supporter"),
|
||||
url(r"^accounts/manage/$", login_required(ManageAccount.as_view()), name="manage_account"),
|
||||
url(r"^search/$", "search", name="search"),
|
||||
url(r"^privacy/$", TemplateView.as_view(template_name="privacy.html"),
|
||||
name="privacy"),
|
||||
|
|
|
@ -1446,7 +1446,9 @@ def edit_user(request):
|
|||
return HttpResponseRedirect(reverse('home')) # Redirect after POST
|
||||
return render(request,'registration/user_change_form.html', {'form': form,'emailform': emailform})
|
||||
|
||||
|
||||
class ManageAccount(TemplateView):
|
||||
template_name="manage_account.html"
|
||||
|
||||
def search(request):
|
||||
q = request.GET.get('q', None)
|
||||
page = int(request.GET.get('page', 1))
|
||||
|
|
Loading…
Reference in New Issue