summaryrefslogtreecommitdiff
path: root/fossee_manim
diff options
context:
space:
mode:
Diffstat (limited to 'fossee_manim')
-rw-r--r--fossee_manim/templates/fossee_manim/edit_proposal.html1
-rw-r--r--fossee_manim/templates/registration/password_reset_confirm.html4
-rw-r--r--fossee_manim/views.py7
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):