diff options
author | Prashant S | 2018-08-16 14:54:58 +0530 |
---|---|---|
committer | GitHub | 2018-08-16 14:54:58 +0530 |
commit | 5fc9c374d7139d8364519a9f28f07be645d62eeb (patch) | |
tree | 7d48d9bbd7d72e4ddf2607fb987dc2cdee5a5419 /static/website/templates/view-proposals.html | |
parent | 9674af451d6ede8fc3a3ee1527eb8ac2f1a61cb2 (diff) | |
parent | ae12447a47f7298bb411a1d4191e8d3dcf975e01 (diff) | |
download | SciPy2018-5fc9c374d7139d8364519a9f28f07be645d62eeb.tar.gz SciPy2018-5fc9c374d7139d8364519a9f28f07be645d62eeb.tar.bz2 SciPy2018-5fc9c374d7139d8364519a9f28f07be645d62eeb.zip |
Merge pull request #7 from prashantsinalkar/master
added submit cfp
Diffstat (limited to 'static/website/templates/view-proposals.html')
-rwxr-xr-x | static/website/templates/view-proposals.html | 149 |
1 files changed, 149 insertions, 0 deletions
diff --git a/static/website/templates/view-proposals.html b/static/website/templates/view-proposals.html new file mode 100755 index 0000000..bdb39f7 --- /dev/null +++ b/static/website/templates/view-proposals.html @@ -0,0 +1,149 @@ +{% load static %} +<!DOCTYPE html> +<html lang="en"> +{% include 'header.html' %} +<body data-spy="scroll" data-target="#site-nav"> +<div class="se-pre-con"></div> + + {% include 'navbar.html' %} + {% block content %} + <section id="view_proposal" class="section view_proposal"> + <div class="container"> + <p> + <center> + <h2>View Proposals</h2> + </center> + </p> + {% if not proposals %} + <center> + <h3>Proposals are no longer accepted</h3> + + </center> + {% else %} + {% if user.is_superuser %} + <div style="float:right"><input type="submit" id="dump" class ="btn btn-info" value="Export as csv" name="dump"/></div> + <br> + {% endif %} + <form action="{% url 'website:status_change' %}" method="post" onsubmit="return confirm('Are You Sure?');"> + {% csrf_token %} + <p> + <div class="table-responsive"> + <table id = "myTable" width="100%" cellpadding="10" class="table-bordered table-hover tablesorter"> + <colgroup> + {% if user.is_superuser %} + <col width="15%" /> + <col width="20%" /> + <col width="10%" /> + <col width="30%" /> + <col width="10%" /> + <col width="10%" /> + {% else %} + <col width="15%" /> + <col width="70%" /> + <col width="10%" /> + <col width="10%" /> + <col width="20%" /> + {% endif %} + </colgroup> + {% if user.is_superuser %} + <th style="text-align: center;"> + </th> + <th style="text-align: center;">Speaker + {% endif %} + <th style="text-align: center;"> Type + <th style="text-align: center;"> Title + {% if not user.is_superuser %} + <th style="text-align: center;"> View + {% endif %} + {% if user.is_superuser %} + <th style="text-align: center;"> + <center> Duration</center> + {% else %} + <th style="text-align: center;"> Comments + {% endif %} + <th style="text-align: center;"> Status + {% for proposal in proposals %} + <tr> + {% if user.is_superuser %} + <td style="text-align: center;"> + {% if proposal.status == 'Rejected' %} + {% else %} + <center> <input type = "checkbox" name="delete_proposal" value = {{proposal.id}}></input></center> + </td> + {% endif %} + <td style="text-align: center;"> + {{ proposal.user.get_full_name}} + </td> + {% endif %} + <td style="text-align: center;"> {{proposal.proposal_type }} </td> + {% if user.is_superuser %} + <td style="white-space: nowrap; text-overflow:ellipsis; overflow: hidden; max-width:.5px;"><a title="Title : {{proposal.title}}, Tags: {{proposal.tags}}" 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 style="text-align: center;"><a href="{% url 'website:abstract_details' proposal.id %}">View</a> </td> + {% endif %} + <td style="text-align: center;"> + {% if user.is_superuser %} + <center>{{ proposal.duration }} + {% if proposal.proposal_type == 'ABSTRACT' %} + Mins{% else %} Hrs {% endif %} + </center> + {% else %} + {{proposal.comments_set.count}} + {% endif %} + </td> + <td style="text-align: center;"> + {% if proposal.status == 'Accepted' %} + <h5 style="color:green;">{{proposal.status}}</h5> + {% elif proposal.status == 'Rejected' %} + <h5 style="color:red;">{{proposal.status}}</h5> + {% elif proposal.status == 'Commented' %} + <h5 style="color:brown;">{{proposal.status}}</h5> + {% elif proposal.status == 'Edit' %} + {% if user.is_superuser %} + <h5 style="color:grey;">{{proposal.status}}</h5> + {% else %} + <a href="">{{proposal.status}}</a> + {% endif %} + {% else %} + <h5 style="color:blue;">{{proposal.status}}</h5> + {% endif %} + </td> + <!-- + <div> + {% if not user.is_superuser and type == 'ABSTRACT' %} + <a href="{% url 'website:submitcfw' %}" class ="btn btn-info" role="button">Submit workshop </a> + {% elif not user.is_superuser and type == 'WORKSHOP' %} + <a href="{% url 'website:submitcfp' %}" class ="btn btn-info" role="button"> Submit paper </a> + {% elif not user.is_superuser%} + {% endif %} + </div>--> + </tr> + {% endfor %} + </table> + </div><br> + </p> + + + {% if user.is_superuser %} + <input type="submit" id="delete" class ="btn btn-info" value="Delete" name="delete"/> + <center> + <input type="submit" id="accept" class ="btn btn-info" value="Accept" name="accept"/> + <input type="submit" id="rejected" class ="btn btn-info" value="Reject" name="reject"/> + <input type="submit" id="resubmit" class ="btn btn-info" value="Resubmit" name="resubmit"/> + </center> + {% endif %} + </form> + {% endif %} + </div> + + + </div> + + </div> + </section> + + {% endblock %} + {% include 'footer.html' %} + </body> + |