diff options
author | komalsheth286 | 2016-10-05 15:01:38 +0530 |
---|---|---|
committer | komalsheth286 | 2016-10-05 15:01:38 +0530 |
commit | 3e24d6cf23dcb49b853bcc8d77c4b4e4ef684169 (patch) | |
tree | ffdb3f0a357a92fc50321f9e44b78ef12ecf3aea | |
parent | d1312be1555c8cb0d372acd7bac28cb6ad051a3d (diff) | |
download | SciPy2016-3e24d6cf23dcb49b853bcc8d77c4b4e4ef684169.tar.gz SciPy2016-3e24d6cf23dcb49b853bcc8d77c4b4e4ef684169.tar.bz2 SciPy2016-3e24d6cf23dcb49b853bcc8d77c4b4e4ef684169.zip |
resubmit redirection to proposal table
-rwxr-xr-x | website/templates/view-abstracts.html | 2 | ||||
-rwxr-xr-x | website/views.py | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/website/templates/view-abstracts.html b/website/templates/view-abstracts.html index 6a9a72b..619657d 100755 --- a/website/templates/view-abstracts.html +++ b/website/templates/view-abstracts.html @@ -103,7 +103,7 @@ You have not submitted any proposal. To submit proposal click <a href="{% url 'w <td> {{proposal.proposal_type }} </td> {% if user.is_superuser %} - <td ><a href="{% url 'website:comment_abstract' proposal.id %}">{{proposal.title }}</a> </td> + <td style="white-space: nowrap; text-overflow:ellipsis; overflow: hidden; max-width:.5px;"><a href="{% url 'website:comment_abstract' proposal.id %}">{{proposal.title }}</a> </td> {% else %} <td style="white-space: nowrap; text-overflow:ellipsis; overflow: hidden; max-width:.5px;"> {{proposal.title}}</td> <td ><a href="{% url 'website:abstract_details' proposal.id %}">View</a> </td> diff --git a/website/views.py b/website/views.py index 96fa6bb..48242c7 100755 --- a/website/views.py +++ b/website/views.py @@ -280,7 +280,9 @@ def edit_proposal(request, proposal_id = None): proposal.status = 'Resubmitted' data.save() context.update(csrf(request)) - return render(request, 'cfp.html') + proposals = Proposal.objects.filter(user = user).order_by('status') + context['proposals'] = proposals + return render(request, 'view-abstracts.html', context) else: context['user'] = user context['form'] = form |