diff options
Diffstat (limited to 'website/templates')
-rw-r--r-- | website/templates/ajax-books.html | 10 | ||||
-rw-r--r-- | website/templates/ajax-chapters.html | 10 | ||||
-rw-r--r-- | website/templates/ajax-contributor.html | 21 | ||||
-rw-r--r-- | website/templates/ajax-examples.html | 10 | ||||
-rw-r--r-- | website/templates/bug-form.html | 27 | ||||
-rw-r--r-- | website/templates/index.html | 129 | ||||
-rw-r--r-- | website/templates/node-about.html | 9 | ||||
-rw-r--r-- | website/templates/node-contact.html | 9 | ||||
-rw-r--r-- | website/templates/node-invitation.html | 8 |
9 files changed, 233 insertions, 0 deletions
diff --git a/website/templates/ajax-books.html b/website/templates/ajax-books.html new file mode 100644 index 0000000..cf12559 --- /dev/null +++ b/website/templates/ajax-books.html @@ -0,0 +1,10 @@ +{% if books %} +<label>Book: </label> +<select id="books"> + <option value="">Select Book</option> +{% for book in books %} + <option value="{{ book.id }}">{{ book.book }} (by {{ book.author }})</option> +{% endfor %} +</select> +{% endif %} +<a href="#" class="extra-link" id="download-book">Download Book</a> diff --git a/website/templates/ajax-chapters.html b/website/templates/ajax-chapters.html new file mode 100644 index 0000000..5f39ba5 --- /dev/null +++ b/website/templates/ajax-chapters.html @@ -0,0 +1,10 @@ +{% if chapters %} +<label>Chapter: </label> +<select id="chapters"> + <option value="">Select Chapter</option> +{% for chapter in chapters %} + <option value="{{ chapter.id }}">{{ chapter.number }} - {{ chapter.name }}</option> +{% endfor %} +</select> +{% endif %} +<a href="#" class="extra-link" id="download-chapter">Download Chapter</a> diff --git a/website/templates/ajax-contributor.html b/website/templates/ajax-contributor.html new file mode 100644 index 0000000..a3ab2dc --- /dev/null +++ b/website/templates/ajax-contributor.html @@ -0,0 +1,21 @@ +<h6><u>Contributor details</u></h6> +<table> + <tbody> + <tr> + <td>Contributor name</td> + <td>{{ proposal.full_name }}</td> + </tr> + <tr> + <td>Mentor</td> + <td>{{ proposal.faculty }}</td> + </tr> + <tr> + <td>Book Reviewer</td> + <td>{{ proposal.reviewer }}</td> + </tr> + <tr> + <td>College</td> + <td>{{ proposal.university }}</td> + </tr> + </tbody> +</table> diff --git a/website/templates/ajax-examples.html b/website/templates/ajax-examples.html new file mode 100644 index 0000000..f95bf7a --- /dev/null +++ b/website/templates/ajax-examples.html @@ -0,0 +1,10 @@ +{% if examples %} +<label>Example: </label> +<select id="examples"> + <option value="">Select Example</option> +{% for example in examples %} + <option value="{{ example.id }}">{{ example.number }} - {{ example.caption }}</option> +{% endfor %} +</select> +{% endif %} +<a href="#" class="extra-link" id="download-example">Download Example</a> diff --git a/website/templates/bug-form.html b/website/templates/bug-form.html new file mode 100644 index 0000000..d27911a --- /dev/null +++ b/website/templates/bug-form.html @@ -0,0 +1,27 @@ +<form id="bug-form" action="" method="POST" accept-charset="utf-8"> {% csrf_token %} + {{ form.example }} + <div id="non-field-errors"> + </div> + <div id="id_issue_wrapper" class="wrapper"> + <label>Type of issue:</label> + {{ form.issue }} + </div> + + <div id="id_description_wrapper" class="wrapper"> + <label>Description:</label> + {{ form.description }} + </div> + + <div id="id_notify_wrapper" class="wrapper"> + <label>{{ form.notify }} I want to be notified.</label> + </div> + + <div id="id_email_wrapper" class="wrapper"> + <span id="email-wrapper"> + {{ form.email.errors }} + <label>Email:</label> + {{ form.email }} + </span> + </div> + <input type="submit" id="bug-form-submit"> +</form> diff --git a/website/templates/index.html b/website/templates/index.html new file mode 100644 index 0000000..88abbf8 --- /dev/null +++ b/website/templates/index.html @@ -0,0 +1,129 @@ +{% load static %} +{% load dajaxice_templatetags %} +<html> + <head> + <title>Scilab on Cloud</title> + <link href="{% static 'website/css/base.css' %}" rel="stylesheet"/> + <link href="{% static 'website/css/codemirror.css' %}" rel="stylesheet"/> + <link href="{% static 'website/css/fullscreen.css'%}" rel="stylesheet"/> + <link href="{% static 'website/css/monokai.css' %}" rel="stylesheet"/> + <link href="{% static 'website/css/main.css' %}" rel="stylesheet"/> + {% dajaxice_js_import %} + </head> + <body> + <div id="header-wrapper"> + <div id="header-inner"> + <div id="topbar"> + <img id="home-logo" src="{% static 'website/images/home-logo.png' %}"> + <span id="title"> + Scilab on Cloud + </span> + <div id="navlinks"> + <ul> + <li><a class="node" data-key="about" href="#">About</a></li> + <li><a class="node" data-key="invitation" href="#">Invitation</a></li> + <li><a class="node" data-key="contact" href="#">Contact Us</a></li> + <img id="scilab-logo" src="{% static 'website/images/scilab-logo.png'%}" width="100px"> + </ul> + <div class="clearfix"></div> + </div> <!-- /#navlinks --> + </div> <!-- /#topbar --> + </div> <!-- /#header-inner --> + </div> <!-- /#header-wrapper --> + <div id="content-wrapper"> + <div id="content-inner"> + <div id="selectors"> + <div id="category-wrapper"> + <label>Category: </label> + <select id="categories"> + <option value="">Select Category</option> + <option value="10">Analog Electronics</option> + <option value="3">Chemical Engineering</option> + <option value="12">Computer Programming</option> + <option value="2">Control Theory & Control Systems</option> + <option value="7">Digital Communications</option> + <option value="11">Digital Electronics</option> + <option value="8">Electrical Technology</option> + <option value="1">Fluid Mechanics</option> + <option value="9">Mathematics & Pure Science</option> + <option value="5">Mechanical Engineering</option> + <option value="6">Signal Processing</option> + <option value="4">Thermodynamics</option> + <option value="13">Others</option> + </select> + <a href="#" class="extra-link" id="contributor">+Contributor</a> + </div> + <div id="books-wrapper"></div> + <div id="chapters-wrapper"></div> + <div id="examples-wrapper"></div> + </div> + <div id="content"> + <div id="input"> + <label> + Scilab Code + <span id="controls"> + <a href="#" id="toggle-code"> + <img src="{% static 'website/images/icon-toggle.png'%}"> + </a> + <a href="#" id="fullscreen-code"> + <img src="{% static 'website/images/icon-fullscreen.png'%}"> + </a> + </span> <!-- /#controls --> + </label> + <form> + <textarea id="code" placeholder="Write a new code or select existing from above category..."></textarea> + </form> + </div><!-- /#input --> + <a id="execute" class="button"><span id="execute-inner">Execute</span></a> + + <div id="output"> + <label> + Result + <span id="controls"> + <a href="#" id="toggle-result"> + <img src="{% static 'website/images/icon-toggle.png'%}"> + </a> + <a href="#" id="fullscreen-result"> + <img src="{% static 'website/images/icon-fullscreen.png'%}"> + </a> + </span> <!-- /#controls --> + </label> + <textarea id="result"></textarea> + </div> <!-- /#output --> + <a id="bug" class="button">Report bug / Give Feedback</a> + + <div id="credits"> + <small> + Disclaimer: Scilab is a trademark of Inria + (registered at the INPI for France and the rest of the World) + and Scilab Enterprises is granted exclusive rights for + Scilab Trademark. + </small> + Copyright IIT Bombay + </div> <!-- /#credits --> + </div> <!-- /#content --> + </div> <!-- /#content-inner --> + </div> <!-- /#content-wrapper --> + + <div id="plotbox-wrapper"> + <div id="plotbox"></div> + </div> <!-- /#plotbox-wrapper --> + + <div id="databox-wrapper"> + <div id="databox"></div> + </div> <!-- /#databox-wrapper --> + + <div id="bug-form-wrapper"> + </div> <!-- /#databox-wrapper --> + + <script src="{% static 'website/js/jquery-1.10.2.min.js' %}"></script> + <script src="{% static '/static/dajax/jquery.dajax.core.js' %}"></script> + <script src="{% static 'website/js/codemirror.js'%}"></script> + <script src="{% static 'website/js/javascript.js'%}"></script> + <script src="{% static 'website/js/fullscreen.js'%}"></script> + <script src="{% static 'website/js/placeholder.js'%}"></script> + <script src="{% static 'website/js/lightbox_me.js'%}"></script> + <script src="{% static 'website/js/cloud.js'%}"></script> + {% csrf_token %} + </body> +</html> diff --git a/website/templates/node-about.html b/website/templates/node-about.html new file mode 100644 index 0000000..eff52c9 --- /dev/null +++ b/website/templates/node-about.html @@ -0,0 +1,9 @@ +<h6><u>About Scilab on GARUDA Cloud.</u></h6> +<p> + Scilab on Cloud facilitates execution of the codes for particular example(s) + online. The results can then be verified with the solved example(s) from the + textbook. It is also possible to change the values of the variables and in fact, + the code itself, and execute it. In addition to the given examples, one can also + copy and paste (or) write a new code in the input box provided and execute the + same. <a href="http://scilab.in/scilab-on-cloud" target="_blank">Read more..</a> +</p> diff --git a/website/templates/node-contact.html b/website/templates/node-contact.html new file mode 100644 index 0000000..a938b25 --- /dev/null +++ b/website/templates/node-contact.html @@ -0,0 +1,9 @@ +<h6><u>Send us your valuable suggestions and feedback that shall enable us to enhance our work.</u></h6> +<p> + If you wish to contribute to our activities such as <b>Lab Migration, Textbook + Companion, SciLinks, Scilab on Cloud, Scilab on Aakash,</b> please write to + <a href="mailto: contact@scilab.in">contact@scilab.in</a>. + For feedback on Lab Migration (or) Textbook Companion, + <a href="http://scilab.in/feedbacks">click here</a>. +</p> + diff --git a/website/templates/node-invitation.html b/website/templates/node-invitation.html new file mode 100644 index 0000000..65ed8f5 --- /dev/null +++ b/website/templates/node-invitation.html @@ -0,0 +1,8 @@ +<h6><u>Contribute to Scilab Textbook Companion Project / Scilab on GARUDA Cloud.</u></h6> +<p> + The FOSSEE team has created a submission portal that allows the code for + each example to be uploaded individually. The Textbook Companion Project aims + to port solved examples from standard textbooks using an open source software + system, such as Scilab. + <a href="http://scilab.in/Textbook_Companion_Project" target="_blank">Read more..</a> +</p> |