From 9b40244be612a6be04d4e337dc1c9862d059ef06 Mon Sep 17 00:00:00 2001 From: hardythe1 Date: Tue, 23 Dec 2014 13:32:13 +0530 Subject: added chapter links for old books & corrected a minor error for approving old books --- tbc/templates/tbc/upload-content-old.html | 23 ++++++++++++++++++----- tbc/templates/tbc/upload-content.html | 2 +- tbc/views.py | 23 +++++++++++++++++++---- 3 files changed, 38 insertions(+), 10 deletions(-) diff --git a/tbc/templates/tbc/upload-content-old.html b/tbc/templates/tbc/upload-content-old.html index 8b3c692..5922082 100644 --- a/tbc/templates/tbc/upload-content-old.html +++ b/tbc/templates/tbc/upload-content-old.html @@ -41,6 +41,14 @@ function validate_content() return true; } + {% endblock %} {% block content %} @@ -55,16 +63,21 @@ function validate_content()
{% csrf_token %} {% for i in no_notebooks %} - + {% endfor %}

-

Upload screenshots of Plots/Graphs/Charts(if any) "that you have plotted" and not from the textbook itself from any cahpter. If there are no plots/graphs/charts, then upload a screenshot of any chapter. Give proper caption for the screen shots. Only .png files are acceptable.

- {% for i in no_images %} - - +

Upload screenshots of Plots/Graphs/Charts(if any) "that you have plotted" and not from the textbook itself from any chapter. If there are no plots/graphs/charts, then upload a screenshot of any chapter. Give proper caption for the screen shots. Only .png files are acceptable.

+ {% for i in no_images %} + + + + {% endfor %}

diff --git a/tbc/templates/tbc/upload-content.html b/tbc/templates/tbc/upload-content.html index 0c187d9..56dfb69 100644 --- a/tbc/templates/tbc/upload-content.html +++ b/tbc/templates/tbc/upload-content.html @@ -67,7 +67,7 @@ function validate_content() {% endfor %}

-

Upload screenshots of Plots/Graphs/Charts(if any) "that you have plotted" and not from the textbook itself from any cahpter. If there are no plots/graphs/charts, then upload a screenshot of any chapter. Give proper caption for the screen shots. Only .png files are acceptable.

+

Upload screenshots of Plots/Graphs/Charts(if any) "that you have plotted" and not from the textbook itself from any chapter. If there are no plots/graphs/charts, then upload a screenshot of any chapter. Give proper caption for the screen shots. Only .png files are acceptable.

{% for i in no_images %}