summaryrefslogtreecommitdiff
path: root/static/website/templates/view-proposals.html
diff options
context:
space:
mode:
authorPrashant S2018-08-23 17:03:41 +0530
committerGitHub2018-08-23 17:03:41 +0530
commitb0b42e5553658fbd3aee833b555435a4401d208c (patch)
treee9fd275a3fd808f9c25a1f343210c6e997e22a38 /static/website/templates/view-proposals.html
parente5eeecc7abdce65aa81d6b68ba4304068ee1a5ca (diff)
parent756d9e437cc0e573558046d7ad2b1e629487865d (diff)
downloadSciPy2018-b0b42e5553658fbd3aee833b555435a4401d208c.tar.gz
SciPy2018-b0b42e5553658fbd3aee833b555435a4401d208c.tar.bz2
SciPy2018-b0b42e5553658fbd3aee833b555435a4401d208c.zip
Merge pull request #8 from prashantsinalkar/development
added new views
Diffstat (limited to 'static/website/templates/view-proposals.html')
-rwxr-xr-xstatic/website/templates/view-proposals.html191
1 files changed, 92 insertions, 99 deletions
diff --git a/static/website/templates/view-proposals.html b/static/website/templates/view-proposals.html
index bdb39f7..ce15a7e 100755
--- a/static/website/templates/view-proposals.html
+++ b/static/website/templates/view-proposals.html
@@ -1,149 +1,142 @@
+{% extends "base.html" %}
{% 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>
+ {% block content %}
+<section id="view_proposal" class="section view_proposal">
+ <div class="container">
+ <p>
<center>
<h2>View Proposals</h2>
</center>
- </p>
+ </p>
{% if not proposals %}
- <center>
- <h3>Proposals are no longer accepted</h3>
-
- </center>
+ <center>
+ <h3>Proposals are no longer accepted</h3>
+ <a href="{% url 'website:submitcfp' %}" class ="btn btn-info" role="button"> Submit paper </a>
+ <a href="{% url 'website:submitcfw' %}" class ="btn btn-info" role="button">Submit workshop </a>
+ </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>
+ <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>
+ <div class="table-responsive">
+ <table id ="myTable" width="100%" cellpadding="10" class="table table-striped 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%" />
+
+ <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%" />
+ <col width="15%" />
+ <col width="70%" />
+ <col width="10%" />
+ <col width="10%" />
+ <col width="20%" />
{% endif %}
- </colgroup>
+ </colgroup>
{% if user.is_superuser %}
- <th style="text-align: center;">
- </th>
- <th style="text-align: center;">Speaker
+ <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
+ <th style="text-align: center;"> Type
+ <th style="text-align: center;"> Title
{% if not user.is_superuser %}
- <th style="text-align: center;"> View
+ <th style="text-align: center;"> View
{% endif %}
{% if user.is_superuser %}
- <th style="text-align: center;">
- <center> Duration</center>
+ <th style="text-align: center;">
+ <center> Duration</center>
{% else %}
- <th style="text-align: center;"> Comments
+ <th style="text-align: center;"> Comments
{% endif %}
- <th style="text-align: center;"> Status
+ <th style="text-align: center;"> Status
{% for proposal in proposals %}
- <tr>
+ <tr>
{% if user.is_superuser %}
- <td style="text-align: center;">
+ <td style="text-align: center;">
{% if proposal.status == 'Rejected' %}
{% else %}
- <center> <input type = "checkbox" name="delete_proposal" value = {{proposal.id}}></input></center>
- </td>
+ <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>
+ <td style="text-align: center;">
+ <h3>
+ <span class="label label-primary">{{ proposal.user.first_name }} {{ proposal.user.last_name }}</span>
+ </h3>
+ </td>
{% endif %}
- <td style="text-align: center;"> {{proposal.proposal_type }} </td>
+ <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>
+ <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>
+ <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 %}" class="btn btn-warning">View</a>
+ </td>
{% endif %}
- <td style="text-align: center;">
+ <td style="text-align: center;">
{% if user.is_superuser %}
- <center>{{ proposal.duration }}
+ <center>{{ proposal.duration }}
{% if proposal.proposal_type == 'ABSTRACT' %}
Mins{% else %} Hrs {% endif %}
</center>
{% else %}
- {{proposal.comments_set.count}}
+ <span class="badge"> {{proposal.comments_set.count}}</span>
{% endif %}
- </td>
- <td style="text-align: center;">
+ </td>
+ <td style="text-align: center;">
{% if proposal.status == 'Accepted' %}
- <h5 style="color:green;">{{proposal.status}}</h5>
+ <h5 style="color:green;">{{proposal.status}}</h5>
{% elif proposal.status == 'Rejected' %}
- <h5 style="color:red;">{{proposal.status}}</h5>
+ <h5 style="color:red;">{{proposal.status}}</h5>
{% elif proposal.status == 'Commented' %}
- <h5 style="color:brown;">{{proposal.status}}</h5>
+ <h5 style="color:brown;">{{proposal.status}}</h5>
{% elif proposal.status == 'Edit' %}
{% if user.is_superuser %}
- <h5 style="color:grey;">{{proposal.status}}</h5>
+ <h5 style="color:grey;">{{proposal.status}}</h5>
{% else %}
- <a href="">{{proposal.status}}</a>
+ <a href="{% url 'website:edit_proposal' proposal.id %}" class ="btn btn-info">{{proposal.status}}</a>
{% endif %}
{% else %}
- <h5 style="color:blue;">{{proposal.status}}</h5>
+ <h5 style="color:#ff6600;">{{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>
+ </td>
+ </tr>
{% endfor %}
- </table>
- </div><br>
- </p>
-
-
+ </table>
+ </div>
+ <br>
+ <div>
+ <a href="{% url 'website:submitcfp' %}" class ="btn btn-info" role="button"> Submit paper </a>
+ <a href="{% url 'website:submitcfw' %}" class ="btn btn-info" role="button">Submit workshop </a>
+ </div>
+ </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>
+ <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>
+ </form>
{% endif %}
- </div>
-
-
- </div>
-
- </div>
- </section>
-
+ </div>
+ </div>
+ </div>
+ <div class="row" style="margin-top: 18vh;"></div>
+ </section>
{% endblock %}
- {% include 'footer.html' %}
- </body>
-