From d84267b8555a09e1500f839835439142d6c6fc95 Mon Sep 17 00:00:00 2001 From: Sashi20 Date: Mon, 9 Sep 2019 15:40:24 +0530 Subject: Update keynote speaker details, poster --- static/website/templates/home.html | 93 +++++++++------------------- static/website/templates/view-proposals.html | 10 +-- website/admin.py | 6 +- website/views.py | 6 +- 4 files changed, 38 insertions(+), 77 deletions(-) diff --git a/static/website/templates/home.html b/static/website/templates/home.html index 3828d45..0b201c2 100644 --- a/static/website/templates/home.html +++ b/static/website/templates/home.html @@ -65,33 +65,32 @@ - + - --> +
@@ -195,39 +195,6 @@ {% endfor %} -

@@ -325,7 +292,7 @@

- +
@@ -552,7 +519,7 @@

- +
@@ -572,7 +539,7 @@ data-image="{% static 'website/bootstrap-css/assets/images/photos/photos-10.jpg' %}" data-target="#image-gallery"> Scipy 2018 @@ -581,7 +548,7 @@ data-image="{% static 'website/bootstrap-css/assets/images/photos/photos-4.jpg' %}" data-target="#image-gallery"> Scipy 2018 @@ -590,7 +557,7 @@ data-image="{% static 'website/bootstrap-css/assets/images/photos/photos-2.jpg' %}" data-target="#image-gallery"> Scipy 2018 @@ -600,7 +567,7 @@ data-image="{% static 'website/bootstrap-css/assets/images/photos/photos-3.jpg' %}" data-target="#image-gallery"> Scipy 2018 @@ -609,7 +576,7 @@ data-image="{% static 'website/bootstrap-css/assets/images/photos/photos-1.jpg' %}" data-target="#image-gallery"> Scipy 2018 @@ -618,7 +585,7 @@ data-image="{% static 'website/bootstrap-css/assets/images/photos/photos-5.jpg' %}" data-target="#image-gallery"> Scipy 2018 @@ -627,7 +594,7 @@ data-image="{% static 'website/bootstrap-css/assets/images/photos/photos-6.jpg' %}" data-target="#image-gallery"> Scipy 2018 @@ -636,7 +603,7 @@ data-image="{% static 'website/bootstrap-css/assets/images/photos/photos-7.jpg' %}" data-target="#image-gallery"> Scipy 2018 @@ -645,7 +612,7 @@ data-image="{% static 'website/bootstrap-css/assets/images/photos/photos-8.jpg' %}" data-target="#image-gallery"> Scipy 2018 @@ -654,7 +621,7 @@ data-image="{% static 'website/bootstrap-css/assets/images/photos/photos-9.jpg' %}" data-target="#image-gallery"> Scipy 2018 @@ -663,7 +630,7 @@ data-image="{% static 'website/bootstrap-css/assets/images/photos/photos-11.jpg' %}" data-target="#image-gallery"> Scipy 2018 diff --git a/static/website/templates/view-proposals.html b/static/website/templates/view-proposals.html index 73cda7a..6f7f0a8 100755 --- a/static/website/templates/view-proposals.html +++ b/static/website/templates/view-proposals.html @@ -8,15 +8,7 @@

View Proposals

- {% if not proposals %} -
-

You have not submitted any proposal

- -
- {% else %} - {% if user.is_superuser %} + {% if user.is_superuser %} diff --git a/website/admin.py b/website/admin.py index d60a729..85a4b7e 100644 --- a/website/admin.py +++ b/website/admin.py @@ -1,5 +1,5 @@ from django.contrib import admin -from .models import CFP, RegistrationDetail +from .models import CFP, RegistrationDetail, Proposal class CFPAdmin(admin.ModelAdmin): list_display = ['start_date','end_date','date_of_announcement'] @@ -7,5 +7,9 @@ class CFPAdmin(admin.ModelAdmin): class RegistrationDetailAdmin(admin.ModelAdmin): list_display = ['registration_type', 'start_date', 'end_date', 'registration_ticket','registration_description'] +class ProposalAdmin(admin.ModelAdmin): + list_display = ['title', 'email', 'phone'] + admin.site.register(CFP, CFPAdmin) admin.site.register(RegistrationDetail, RegistrationDetailAdmin) +admin.site.register(Proposal, ProposalAdmin) diff --git a/website/views.py b/website/views.py index ced25c1..2a93c36 100644 --- a/website/views.py +++ b/website/views.py @@ -42,10 +42,8 @@ def index(request): context = {} registration_details = RegistrationDetail.objects.all() context['registration_details'] = registration_details - # regular_dates = ImportantDate.objects.get(category='Regular') - # context['regular_dates'] = regular_dates - # lite_dates = ImportantDate.objects.get(category='Lite') - # context['lite_dates'] = lite_dates + cfp_dates = CFP.objects.get(id=1) + context['cfp_dates'] = cfp_dates template = loader.get_template('index.html') return HttpResponse(template.render(context, request)) -- cgit