From 11fd1c8467433465a8bc6ca7a831f97cc0f4edb1 Mon Sep 17 00:00:00 2001 From: hardythe1 Date: Thu, 9 Oct 2014 16:06:35 +0530 Subject: removed no of chapters while submitting the proposal --- tbc/templates/base.html | 3 +-- tbc/templates/tbc/confirm-aicte-details.html | 2 ++ tbc/templates/tbc/confirm-details.html | 11 ++++++++++ tbc/templates/tbc/review-proposal.html | 6 +++--- tbc/templates/tbc/submit-proposal.html | 6 ++++++ tbc/templates/tbc/submit-sample.html | 9 ++++---- tbc/templates/tbc/update-book.html | 2 +- tbc/urls.py | 2 +- tbc/views.py | 32 +++++++++++----------------- 9 files changed, 42 insertions(+), 31 deletions(-) create mode 100644 tbc/templates/tbc/confirm-details.html diff --git a/tbc/templates/base.html b/tbc/templates/base.html index 9f1607a..ec9806a 100755 --- a/tbc/templates/base.html +++ b/tbc/templates/base.html @@ -101,8 +101,7 @@ diff --git a/tbc/templates/tbc/confirm-aicte-details.html b/tbc/templates/tbc/confirm-aicte-details.html index e26c453..e8ab88b 100644 --- a/tbc/templates/tbc/confirm-aicte-details.html +++ b/tbc/templates/tbc/confirm-aicte-details.html @@ -24,6 +24,8 @@ $( document ).ready(function() { title = document.getElementById('id_title').readOnly = true; author = document.getElementById('id_author').readOnly = true; publisher_place = document.getElementById('id_publisher_place').readOnly = true; + $('#id_no_chapters').hide(); + $('label[for="id_no_chapters"]').hide(); }); {% endblock %} diff --git a/tbc/templates/tbc/confirm-details.html b/tbc/templates/tbc/confirm-details.html new file mode 100644 index 0000000..26007ea --- /dev/null +++ b/tbc/templates/tbc/confirm-details.html @@ -0,0 +1,11 @@ +{% extends 'base.html' %} +{% block content %} +
+
+ {% csrf_token %} + {{ form.as_table }} +
+ +
+
+{% endblock %} diff --git a/tbc/templates/tbc/review-proposal.html b/tbc/templates/tbc/review-proposal.html index f4ab9b3..9c6aca9 100644 --- a/tbc/templates/tbc/review-proposal.html +++ b/tbc/templates/tbc/review-proposal.html @@ -62,9 +62,9 @@ {% endfor %}
- Status: + {% ifequal proposal.proposal.status "samples" %} - Sample notebook phase + Status: Sample notebook phase {% endifequal %}
Book Accepted/Alloted: {{ proposal.proposal.accepted.title }}
@@ -78,7 +78,7 @@ {% endif %} {% endifequal %} {% ifequal proposal.proposal.status "sample disapproved" %} -
Samples have been disapproved. Contributor has not resubmitted sample notebook yet.
+ Status: Samples have been disapproved. Contributor has not resubmitted sample notebook yet. {% endifequal %} {% endfor %} diff --git a/tbc/templates/tbc/submit-proposal.html b/tbc/templates/tbc/submit-proposal.html index 1da0e22..167fa5a 100644 --- a/tbc/templates/tbc/submit-proposal.html +++ b/tbc/templates/tbc/submit-proposal.html @@ -5,6 +5,7 @@ {% csrf_token %} {% for form in book_forms %}

Book Preference {{ forloop.counter }}

+ {{ form.errors }} {{ form.as_p }} {% endfor %}
@@ -69,5 +70,10 @@ e.preventDefault(); }); }); + $( document ).ready(function() { + $('input[id="id_no_chapters"]').hide(); + $('label[for="id_no_chapters"]').hide(); + }); + {% endblock %} diff --git a/tbc/templates/tbc/submit-sample.html b/tbc/templates/tbc/submit-sample.html index 404ede5..322c339 100644 --- a/tbc/templates/tbc/submit-sample.html +++ b/tbc/templates/tbc/submit-sample.html @@ -2,9 +2,10 @@ {% block script %}