diff options
author | Akshen | 2019-05-20 16:22:54 +0530 |
---|---|---|
committer | Akshen | 2019-05-20 16:22:54 +0530 |
commit | 9cf34c6c91b1a8cab0738d58a369cfe74070878c (patch) | |
tree | 142fd54e420e29dfd2714340430a968c6e32d625 /fossee_manim | |
parent | 5c7b4b7c8dd0b161a92b9127234b8f89c95aa42a (diff) | |
download | FOSSEE_animations-9cf34c6c91b1a8cab0738d58a369cfe74070878c.tar.gz FOSSEE_animations-9cf34c6c91b1a8cab0738d58a369cfe74070878c.tar.bz2 FOSSEE_animations-9cf34c6c91b1a8cab0738d58a369cfe74070878c.zip |
Video upload status
Diffstat (limited to 'fossee_manim')
-rw-r--r-- | fossee_manim/templates/fossee_manim/edit_proposal.html | 1 | ||||
-rw-r--r-- | fossee_manim/templates/registration/password_reset_confirm.html | 4 | ||||
-rw-r--r-- | fossee_manim/views.py | 7 |
3 files changed, 9 insertions, 3 deletions
diff --git a/fossee_manim/templates/fossee_manim/edit_proposal.html b/fossee_manim/templates/fossee_manim/edit_proposal.html index 4cae2e7..f6e3f48 100644 --- a/fossee_manim/templates/fossee_manim/edit_proposal.html +++ b/fossee_manim/templates/fossee_manim/edit_proposal.html @@ -40,6 +40,7 @@ <label class="btn btn-info"> {{ upload_form }} <button class="btn btn-success" type="submit">Upload</button> + {{ msg }} </label> </form> {% elif proposal_form.instance.status == 'pending' and request.user.profile.position == 'contributor' %} diff --git a/fossee_manim/templates/registration/password_reset_confirm.html b/fossee_manim/templates/registration/password_reset_confirm.html index ce84fda..57542b4 100644 --- a/fossee_manim/templates/registration/password_reset_confirm.html +++ b/fossee_manim/templates/registration/password_reset_confirm.html @@ -10,8 +10,8 @@ <form method="post"> {% csrf_token %} {{ form.as_p }} - <button class= "btn" type="submit">Submit</button> - </form> + <button class= "btn btn-success" type="submit">Submit</button> + </form> {% else %} <p>This reset link is no longer valid!</p> {% endif %} diff --git a/fossee_manim/views.py b/fossee_manim/views.py index 60d2f1e..265e8ee 100644 --- a/fossee_manim/views.py +++ b/fossee_manim/views.py @@ -345,6 +345,10 @@ def edit_proposal(request, proposal_id=None): upload_form = UploadAnimationForm() categories = Category.objects.all() video = AnimationStats.objects.filter(animation=proposal_id) + if len(video)>0: + msg = ('Previously a video was uploaded for '+ video[0].animation.title) + else: + msg = ('No video uploaded') try: comments = Comment.objects.filter(animation_id=proposal_id).order_by( '-created_date' @@ -420,7 +424,8 @@ def edit_proposal(request, proposal_id=None): "comment_form": comment_form, "upload_form": upload_form, 'video': video, - 'categories': categories}) + 'categories': categories, + 'msg': msg}) def search(request): |