From 055efb407c3b265ffbc2ed47f1f0b5d1a29b6391 Mon Sep 17 00:00:00 2001 From: Alwin1847207 Date: Thu, 3 Oct 2019 13:51:25 +0530 Subject: Enable deleting test proposals by reviewer --- fossee_manim/forms.py | 2 +- fossee_manim/models.py | 2 + fossee_manim/send_mails.py | 1 + fossee_manim/static/css/index.css | 27 ++ fossee_manim/templates/fossee_manim/about.html | 23 +- .../templates/fossee_manim/activation.html | 95 +++---- fossee_manim/templates/fossee_manim/base.html | 93 +++---- .../templates/fossee_manim/categorical_list.html | 54 ++-- .../templates/fossee_manim/delete_proposal.html | 46 +++ .../templates/fossee_manim/edit_profile.html | 32 ++- .../templates/fossee_manim/edit_proposal.html | 181 ++++++------ fossee_manim/templates/fossee_manim/explore.html | 46 +-- fossee_manim/templates/fossee_manim/faqs.html | 195 ++++++++----- .../templates/fossee_manim/guidelines.html | 307 ++++++++++++--------- .../templates/fossee_manim/honorarium.html | 132 +++++---- fossee_manim/templates/fossee_manim/index.html | 117 ++++---- fossee_manim/templates/fossee_manim/library.html | 110 ++++---- fossee_manim/templates/fossee_manim/libraryCS.html | 20 +- .../templates/fossee_manim/libraryMath.html | 20 +- .../templates/fossee_manim/libraryPhys.html | 18 +- fossee_manim/templates/fossee_manim/login.html | 43 +-- fossee_manim/templates/fossee_manim/logout.html | 22 +- fossee_manim/templates/fossee_manim/outreach.html | 18 +- .../templates/fossee_manim/profile_updated.html | 23 +- .../templates/fossee_manim/proposal_status.html | 145 +++++----- fossee_manim/templates/fossee_manim/register.html | 52 ++-- .../templates/fossee_manim/search_results.html | 52 ++-- .../templates/fossee_manim/send_proposal.html | 82 +++--- .../templates/fossee_manim/upload_success.html | 36 ++- fossee_manim/templates/fossee_manim/video.html | 130 ++++----- .../templates/fossee_manim/view_profile.html | 124 ++++++--- fossee_manim/templates/registration/base.html | 165 +++++------ .../registration/password_change_done.html | 15 +- .../registration/password_change_form.html | 21 +- .../registration/password_reset_confirm.html | 20 +- .../registration/password_reset_done.html | 10 +- .../registration/password_reset_form.html | 22 +- fossee_manim/urls.py | 2 + fossee_manim/views.py | 202 +++++++++----- 39 files changed, 1528 insertions(+), 1177 deletions(-) create mode 100644 fossee_manim/templates/fossee_manim/delete_proposal.html diff --git a/fossee_manim/forms.py b/fossee_manim/forms.py index 69f8458..af2b96e 100644 --- a/fossee_manim/forms.py +++ b/fossee_manim/forms.py @@ -261,6 +261,7 @@ class AnimationProposal(forms.ModelForm): 'any other related information') } + class Meta: model = Animation fields = ['category', 'subcategory', 'title', 'outline', 'tags'] @@ -282,7 +283,6 @@ class CommentForm(forms.ModelForm): 'comments': forms.CharField(), } - class UploadAnimationForm(forms.ModelForm): def __init__(self, *args, **kwargs): diff --git a/fossee_manim/models.py b/fossee_manim/models.py index 273ebe6..a6f68c2 100644 --- a/fossee_manim/models.py +++ b/fossee_manim/models.py @@ -172,6 +172,8 @@ class Animation(models.Model): reviewer = models.ForeignKey(User, null=True, on_delete=models.CASCADE, related_name="%(app_label)s_%(class)s_related") outline = models.TextField() + # concepts = models.TextField() + # audience=models.TextField() status = models.CharField(max_length=255, choices=status) category = models.ForeignKey(Category, on_delete=models.CASCADE) subcategory = models.CharField(max_length=255, blank=True) diff --git a/fossee_manim/send_mails.py b/fossee_manim/send_mails.py index 363a0ec..86f4bc4 100644 --- a/fossee_manim/send_mails.py +++ b/fossee_manim/send_mails.py @@ -103,6 +103,7 @@ def send_email(request, call_on, contributor=None, key=None, proposal=None): "Congratulations! Your Animation has been Accepted!", message, SENDER_EMAIL, [contributor.profile.user.email], fail_silently=True ) + """create a table and add the status as mail send""" elif call_on == 'rejected': message = dedent("""\ Dear {0}, diff --git a/fossee_manim/static/css/index.css b/fossee_manim/static/css/index.css index 0a7895e..54bda1b 100644 --- a/fossee_manim/static/css/index.css +++ b/fossee_manim/static/css/index.css @@ -124,3 +124,30 @@ hr { background-color: #ffe0b2; border-radius: 50%; } + +.footer{ + right: 0; + left: 0; + bottom: 0; + padding: 1rem; + text-align: center; +} +a{ + color:white; +} + +a:hover{ + color:white; + background-color: gray; +} + +.navbar-toggler-icon { + display: inline-block; + width: 1.5em; + height: 1.5em; + vertical-align: middle; + content: ""; + background: no-repeat center center; + background-size: 100% 100%; + background-color: white; +} \ No newline at end of file diff --git a/fossee_manim/templates/fossee_manim/about.html b/fossee_manim/templates/fossee_manim/about.html index 13b5a01..21c55d5 100644 --- a/fossee_manim/templates/fossee_manim/about.html +++ b/fossee_manim/templates/fossee_manim/about.html @@ -1,19 +1,20 @@ {% extends 'fossee_manim/base.html' %} - {% block title %} - About - {% endblock %} +{% block title %} +About +{% endblock %} {% block content %} -
Your email is already verified, Please view your profile here
- -Your email is already verified, Please view your profile here +
+Your activation has expired please register again
-Your activation has expired please register again
Your account has been activated. Please view your profile here
- -Your account has been activated. Please view your profile here +
+The Activation Link has been sent to your email. The link expires in 24hours from the date of registration. You will be logged out automatically.
-The Activation Link has been sent to your email. The link expires in 24hours from the date + of registration. You will be logged out automatically.