summaryrefslogtreecommitdiff
path: root/tbc/templates/tbc/update-code.html
diff options
context:
space:
mode:
Diffstat (limited to 'tbc/templates/tbc/update-code.html')
-rw-r--r--tbc/templates/tbc/update-code.html22
1 files changed, 22 insertions, 0 deletions
diff --git a/tbc/templates/tbc/update-code.html b/tbc/templates/tbc/update-code.html
new file mode 100644
index 0000000..cce2038
--- /dev/null
+++ b/tbc/templates/tbc/update-code.html
@@ -0,0 +1,22 @@
+{% extends 'base.html' %}
+{% block content %}
+ <div id="content-wrap" style="max-width:600px;">
+ <p>You are updating codes for the book {{ book.title }} by {{ book.author }}</p>
+ <p>Upload the corrected IPython Notebooks & screen shots.</p>
+ <form action="/submit-code/" method=POST enctype="multipart/form-data">
+ {% csrf_token %}
+ {% for chapter in chapters %}
+ <input type=text name=chapter{{forloop.counter}} value="{{ chapter.name }}">
+ <input type=file name=notebook{{forloop.counter}}>
+ {% endfor %}
+ <br>
+ <hr>
+ <p>Upload 3 screenshots from any 3 random chapters and give proper captions</p>
+ {% for screenshot in screenshots %}
+ <input type=text name=caption{{forloop.counter}} value="{{ screenshot.caption }}">
+ <input type=file name=image{{forloop.counter}}>
+ {% endfor %}
+ <center><input type=submit value=submit></center>
+ </form>
+ </div>
+{% endblock %}