diff options
Diffstat (limited to 'tbc/templates')
-rwxr-xr-x | tbc/templates/base.html | 1 | ||||
-rw-r--r-- | tbc/templates/tbc/aicte-books.html | 22 | ||||
-rw-r--r-- | tbc/templates/tbc/confirm-aicte-details.html | 19 |
3 files changed, 42 insertions, 0 deletions
diff --git a/tbc/templates/base.html b/tbc/templates/base.html index 9708a53..803ad4d 100755 --- a/tbc/templates/base.html +++ b/tbc/templates/base.html @@ -93,6 +93,7 @@ <a href="#" class="dropdown-toggle" data-toggle="dropdown">{{ user.first_name }}<b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="{% url 'tbc:SubmitProposal' %}">Submit Proposal</a></li> + <li><a href="{% url 'tbc:ListAICTE' %}">Submit AICTE Proposal</a></li> <li><a href="{% url 'tbc:SubmitSample' %}">Submit Sample Notebook</a></li> <li><a href="{% url 'tbc:SubmitCode' %}">Submit Codes</a></li> <li><a href="{% url 'tbc:UpdateBook' %}">Update Submission</a></li> diff --git a/tbc/templates/tbc/aicte-books.html b/tbc/templates/tbc/aicte-books.html new file mode 100644 index 0000000..6b0864b --- /dev/null +++ b/tbc/templates/tbc/aicte-books.html @@ -0,0 +1,22 @@ +{% extends 'base.html' %} +{% load static %} +{% block content %} + <center><h3>List of AICTE Books</h3></center> + <hr> + <div id="content-wrap"> + <table class="table table-bordered table-hover"> + <th>SR #</th> + <th>Book (click on the link to propose the book)</th> + {% for book in aicte_books %} + <tr> + <td> + {{ forloop.counter }} + </td> + <td> + <a href="{% url 'tbc:SubmitAICTEProposal' book.id %}">{{ book.title }} by {{ book.author }}, {{ book.edition }} Edition</a> + </td> + </tr> + {% endfor %} + </table> + </div> +{% endblock %} diff --git a/tbc/templates/tbc/confirm-aicte-details.html b/tbc/templates/tbc/confirm-aicte-details.html new file mode 100644 index 0000000..a13b1fb --- /dev/null +++ b/tbc/templates/tbc/confirm-aicte-details.html @@ -0,0 +1,19 @@ +{% extends 'base.html' %} +{% block content %} + <div id="content-wrap" style="max-width:600px;"> + <center> + <h3>AICTE Book Details</h3> + <hr> + <p> + Kindly verify the book details. Also, fill in the missing details & submit the proposal. + </p> + <hr> + </center> + <form id="proposal-form" action="/submit-aicte-proposal/{{ aicte_book.id }}/" method=POST enctype="multipart/form-data"> + {% csrf_token %} + {{ form.as_p }} + <hr> + <input id="proposal-form-submit" class="btn btn-primary" type=submit value=submit> + </form> + </div> +{% endblock %} |