diff options
author | komalsheth286 | 2016-11-16 12:51:48 +0530 |
---|---|---|
committer | komalsheth286 | 2016-11-16 12:51:48 +0530 |
commit | ff764c34183f3a2ee619068a406737c640b249f2 (patch) | |
tree | c5fa3259852d09925cddea56ce6341dcfe787e2e /website/templates | |
parent | cc5284a3ed78d4840a9365ca24bdd91e3fa9c77c (diff) | |
download | SciPy2016-ff764c34183f3a2ee619068a406737c640b249f2.tar.gz SciPy2016-ff764c34183f3a2ee619068a406737c640b249f2.tar.bz2 SciPy2016-ff764c34183f3a2ee619068a406737c640b249f2.zip |
Attachment is made Optional
Diffstat (limited to 'website/templates')
-rwxr-xr-x | website/templates/abstract-details.html | 2 | ||||
-rwxr-xr-x | website/templates/comment-abstract.html | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/website/templates/abstract-details.html b/website/templates/abstract-details.html index 42c5d59..daacdbe 100755 --- a/website/templates/abstract-details.html +++ b/website/templates/abstract-details.html @@ -54,7 +54,7 @@ <p><b>Prerequisite: </b> {{ proposal.prerequisite }}</p> {% endif%} <p><b>Date Created: </b> {{ proposal.date_created }}</p> - {% if proposal.attachment.url %} + {% if url %} <p><b>Attachment: </b> <a href="{{ url }}" class="btn btn-info" target="_blank">{{filename}}</a></p> {% endif %} diff --git a/website/templates/comment-abstract.html b/website/templates/comment-abstract.html index 27b1837..992ae91 100755 --- a/website/templates/comment-abstract.html +++ b/website/templates/comment-abstract.html @@ -60,7 +60,7 @@ {% if proposal.prerequisite %} <p><b>Prerequisite: </b> {{ proposal.prerequisite }}</p> {% endif%} - {% if proposal.attachment.url %} + {% if url %} <b>Attachment: </b> <a href="{{ url }}" class="btn btn-info" target="_blank">{{ filename }}</a> {% endif %} <p><b>Date Created: </b> {{ proposal.date_created }}</p> @@ -111,7 +111,7 @@ {% endfor %} <form action="{% url 'website:comment_abstract' proposal.id %}" method='POST' enctype="multipart/form-data"> {% csrf_token %} - <textarea rows="5" cols="100" id="comment" class= "comment" name="comment" placeholder = "Add commnet here..."></textarea><br> + <textarea rows="5" cols="100" id="comment" class= "comment" name="comment" placeholder = "Add commnet here..."></textarea><br/> <input class="button special" style="background:#d44727" type="submit" value="Comment"> </form> |