diff options
author | Komal Sheth | 2016-10-03 14:47:58 +0530 |
---|---|---|
committer | GitHub | 2016-10-03 14:47:58 +0530 |
commit | 02468df1ad032a91305b617fe6c598ac2f8924ce (patch) | |
tree | a2dd73bfcd268a5e6f209b709cd2c783ebebb3b2 | |
parent | 744dc869fe8f462c029fd18817b9ac3e424af4c2 (diff) | |
parent | 741d1fed4b96ffdfa000f01ce9ba2813a971f6c2 (diff) | |
download | SciPy2016-02468df1ad032a91305b617fe6c598ac2f8924ce.tar.gz SciPy2016-02468df1ad032a91305b617fe6c598ac2f8924ce.tar.bz2 SciPy2016-02468df1ad032a91305b617fe6c598ac2f8924ce.zip |
Merge pull request #14 from FOSSEE/Home_page
Status buttons removed from COmment page
-rwxr-xr-x | website/templates/comment-abstract.html | 4 | ||||
-rwxr-xr-x | website/views.py | 20 |
2 files changed, 12 insertions, 12 deletions
diff --git a/website/templates/comment-abstract.html b/website/templates/comment-abstract.html index c842215..3bb6824 100755 --- a/website/templates/comment-abstract.html +++ b/website/templates/comment-abstract.html @@ -115,14 +115,14 @@ <input class="button special" style="background:#d44727" type="submit" class="button" value="Comment"> </form> - <form action="{% url 'website:status' proposal.id %}" method='POST'>{% csrf_token %} + <!-- <form action="{% url 'website:status' proposal.id %}" method='POST'>{% csrf_token %} <input type="submit" class="button special" style="background:green" value="Accept" name="accept"/> <input type="submit" class="button special" style="background:red "value="Reject" name="reject"/> <input type="submit" class="button special" style="background:grey "value="Resubmit" name="resubmit"/> </form> - + --> </section> </div> </div> diff --git a/website/views.py b/website/views.py index 8dd0da1..8505716 100755 --- a/website/views.py +++ b/website/views.py @@ -154,7 +154,7 @@ def submitcfp(request): subject = "SciPy India 2016 – Talk Proposal Submission Acknowledgment" to = (social_user.email, "scipy@fossee.in") text_content = 'Dear'+ social_user.first_name+',Thank you for showing interest & submitting a talk proposal at SciPy India 2016 conference for the talk titled '+ request.POST['title']+'.\nReviewal of the proposals will start once the CFP closes.\n\nYou will be notified regarding comments/selection/rejection of your talk via email.\n' - html_content = 'Visit this <a herf = "http://scipy.in/2016/view-abstracts/"> link </a> to view status of your submission.<br> Thank You ! <br><br>Regards,<br><a herf = “http://scipy.in/2016>SciPy</a> India 2016,<br>FOSSEE - IIT Bombay.' + html_content = render_to_string('Visit this <a herf = "http://scipy.in/2016/view-abstracts/"> link </a> to view status of your submission.<br> Thank You ! <br><br>Regards,<br><a herf = “http://scipy.in/2016>SciPy</a> India 2016,<br>FOSSEE - IIT Bombay.') email = EmailMultiAlternatives( subject,text_content, sender_email, to, @@ -376,7 +376,7 @@ def comment_abstract(request, proposal_id = None): Dear {0}, <br><br> There is a comment posted on your proposal for the workshop titled {1}.<br> Once we receive your response, you will be notified regarding further comments/acceptance/ rejection of your talk/workshop via email. - Visit this <a herf = "{2}"> link </a>to view comments on your submission.<br><br> + Visit this {2} link to view comments on your submission.<br><br> Thank You ! <br><br>Regards,<br>SciPy India 2016,<br>FOSSEE - IIT Bombay. """.format( proposal.user.first_name, @@ -448,14 +448,14 @@ def status(request, proposal_id= None): subject = "SciPy India 2016 - Talk Proposal Rejected" message = """Dear """+proposal.user.first_name+""", We regret to inform you that your proposal for the talk titled '"""+ proposal.title+ """' as not been shortlisted.<br> - You may register and attend the conference by clicking <a herf= http://scipyindia2016.doattend.com/> here</a> + You may register and attend the conference by clicking http://scipyindia2016.doattend.com/. \n\nThank You ! \n\nRegards,\nSciPy India 2016,\nFOSSEE - IIT Bombay""" elif proposal.proposal_type == 'WORKSHOP': subject = "SciPy India 2016 - Workshop Proposal Rejected" message = """Dear """+proposal.user.first_name+""", We regret to inform you that your proposal for the workshop titled '"""+ proposal.title+ """' as not been shortlisted.<br> - You may register and attend the conference by clicking <a herf= http://scipyindia2016.doattend.com/> here</a> - \n\n Thank You ! \n\nRegards,\nSciPy India 2016,\nFOSSEE - IIT Bombay""" + You may register and attend the conference by clicking http://scipyindia2016.doattend.com/. + \n\nThank You ! \n\nRegards,\nSciPy India 2016,\nFOSSEE - IIT Bombay""" send_mail(subject, message, sender_email, to) context.update(csrf(request)) elif 'resubmit' in request.POST: @@ -582,7 +582,7 @@ def status_change(request): message = """Dear """+proposal.user.first_name+""", We regret to inform you that your proposal for the workshop titled '"""+ proposal.title+ """'as not been shortlisted.<br> You may register and attend the conference by clicking http://scipyindia2016.doattend.com/ - \n\n Thank You ! \n\nRegards,\nSciPy India 2016,\nFOSSEE - IIT Bombay""" + \n\nThank You ! \n\nRegards,\nSciPy India 2016,\nFOSSEE - IIT Bombay""" send_mail(subject, message, sender_email, to) context.update(csrf(request)) proposals = Proposal.objects.all() @@ -601,8 +601,8 @@ def status_change(request): message = """ Dear {0}, <br><br> Thank you for showing interest & submitting a talk proposal at SciPy India 2016 conference for the talk titled "{1}". You are requested to submit this talk proposal once again.<br> - You will be notified regarding comments/selection/rejection of your talk/workshop via email. - Visit this <a herf = "{2}"> link </a>to view comments on your submission.<br><br> + You will be notified regarding comments/selection/rejection of your talk via email. + Visit this {2} link to view comments on your submission.<br><br> Thank You ! <br><br>Regards,<br>SciPy India 2016,<br>FOSSEE - IIT Bombay. """.format( proposal.user.first_name, @@ -613,8 +613,8 @@ def status_change(request): subject = "SciPy India 216 - Workshop Proposal Resubmission" message = """ Thank you for showing interest & submitting a workshop proposal at SciPy India 2016 conference for the workshop titled "{1}". You are requested to submit this talk proposal once again.<br> - You will be notified regarding comments/selection/rejection of your talk/workshop via email. - Visit this <a herf = "{2}"> link </a>to view comments on your submission.<br><br> + You will be notified regarding comments/selection/rejection of your workshop via email. + Visit this {2} link to view comments on your submission.<br><br> Thank You ! <br><br>Regards,<br>SciPy India 2016,<br>FOSSEE - IIT Bombay. """.format( proposal.user.first_name, |