diff options
author | hardythe1 | 2015-01-30 16:48:48 +0530 |
---|---|---|
committer | hardythe1 | 2015-01-30 16:48:48 +0530 |
commit | 1e20ab1e7155f4fc577f6c561085445766f73415 (patch) | |
tree | 9d816bcd83d9b8e28afa3f13fb27f544ede53ca6 /tbc | |
parent | 1407dcdee0659e1aa5fa229627b6603c93abed35 (diff) | |
download | Python-TBC-Interface-1e20ab1e7155f4fc577f6c561085445766f73415.tar.gz Python-TBC-Interface-1e20ab1e7155f4fc577f6c561085445766f73415.tar.bz2 Python-TBC-Interface-1e20ab1e7155f4fc577f6c561085445766f73415.zip |
message to user after successful code updation
Diffstat (limited to 'tbc')
-rwxr-xr-x | tbc/templates/base.html | 9 | ||||
-rwxr-xr-x | tbc/views.py | 4 |
2 files changed, 12 insertions, 1 deletions
diff --git a/tbc/templates/base.html b/tbc/templates/base.html index edbb92c..9e7ae28 100755 --- a/tbc/templates/base.html +++ b/tbc/templates/base.html @@ -265,6 +265,15 @@ </center> <div class="clearfix"></div> {% endif %} + {% if bookupdate %} + <center> + <div class="alert" style="width:400px;height:25px;"> + <a class="close" data-dismiss="alert" href="#">×</a> + <p>Thank You ! Codes have been updated successfully !</p> + </div> + </center> + <div class="clearfix"></div> + {% endif %} <div class="row-fluid"> <h3 style='float: left;margin-left: 50px; display: inline-block;'>Recent Submissions</h3> <div style="float:right; margin-right: 50px; width: 400px;"> diff --git a/tbc/views.py b/tbc/views.py index 37891a4..a64b044 100755 --- a/tbc/views.py +++ b/tbc/views.py @@ -114,6 +114,8 @@ def Home(request): context['sample_notebook'] = True if 'cannot_submit_sample' in request.GET: context['cannot_submit_sample'] =True + if 'bookupdate' in request.GET: + context['bookupdate'] =True books = Book.objects.filter(approved=True).order_by("-id")[0:6] for book in books: @@ -807,7 +809,7 @@ def SubmitCode(request): curr_proposal.save() add_log(user, curr_book, CHANGE, 'Codes & Screenshots Resubmitted', curr_proposal.id) - return HttpResponseRedirect('/') + return HttpResponseRedirect('/?bookupdate=done') if request.method == 'POST': for i in range(1, curr_book.no_chapters+1): chapter = Chapters() |