Changed donations.html table style, Added pagination to donations list view. Hiding donate now button if the user is logged in and already has a donation.Handled the case when an user has not donations yet in donations.html view. Fixed bug on donation signup

This commit is contained in:
Levi 2016-08-03 00:50:33 -05:00
commit 5fce858923
8 changed files with 34 additions and 6 deletions

View file

@ -5,6 +5,7 @@ from . import views
from .views import ContactView, IndexView, AboutView
urlpatterns = [
url(_(r'^$'), IndexView.as_view(), name='contact'),
url(_(r'contact/?$'), ContactView.as_view(), name='contact'),
url(_(r'supporters/?$'), views.supporters, name='supporters'),
url(r'calendar_api/(?P<month>\d+)/(?P<year>\d+)?$', views.CalendarApi.as_view(),name='calendar_api_1'),

View file

@ -20,6 +20,7 @@ from membership.models import Calendar as CalendarModel
import json
from django.contrib.auth import logout
class CalendarApi(View):
def get(self,request,month,year):
calendar = BookCalendar(request.user,requested_month=month).formatmonth(int(year),int(month))