Centre align

parent 07c37cb4
{
"python.linting.enabled": false
}
\ No newline at end of file
# -*- coding: utf-8 -*-
# Generated by Django 1.11.16 on 2018-11-26 05:28
# Generated by Django 1.11.16 on 2018-11-26 21:16
from __future__ import unicode_literals
import django.core.validators
......
......@@ -9,7 +9,7 @@ Create Test
{%block body%}
<h1> You CAN CREATE A Test HERE prof {{username}}</h1>
<h1 style="text-align:center"> You CAN CREATE A Test HERE prof {{username}}</h1>
<div class="container">
<div class="panel-default">
......
......@@ -228,7 +228,7 @@ Create Question
{%endblock%}
{%block body%}
<h3> You CAN CREATE A QUESTION HERE prof {{username}}</h3>
<h3 style="text-align:center"> You CAN CREATE A QUESTION HERE prof {{username}}</h3>
<div class="container" title="this is title">
<div class="row">
<section>
......
......@@ -20,8 +20,6 @@ Total Time :<b > {{total_time.hours}} {{total_time.minutes}} </b>
var countDownDate = new Date( {{ end_time }} );
countDownDate.setMonth(countDownDate.getMonth() - 1) ;
countDownDate.setMonth(countDownDate.getMonth() - 1) ;
countDownDate.setMonth(countDownDate.getMonth() - 1) ;
console.log(countDownDate) ;
// Update the count down every 1 second
var x = setInterval(function() {
......
......@@ -12,7 +12,7 @@ Logout
{%endblock%}
{%block body%}
<h3 class="myh3 deepshd"> You have succesfully logged out </h3>
<h3 style="text-align:center" class="myh3 deepshd"> You have succesfully logged out </h3>
<!-- <div class="container">
<centre>
<h1> You have succesfully logged out</h1>
......
......@@ -7,5 +7,5 @@ View All Question
{%endblock%}
{%block body%}
<h1> You are not authorized for this action {{username}}</h1>
<h1 style="text-align:center"> You are not authorized for this action {{username}}</h1>
{%endblock%}
\ No newline at end of file
......@@ -5,6 +5,8 @@ profile
{%block body%}
<h1 style="text-align:center">Test Successfully Recorded </h1>
{%endblock%}
\ No newline at end of file
{%extends 'base2.html'%}
{%block title%}
View personal Question
{%endblock%}
{%block body%}
<h1> You CAN VIEW all your tests HERE student {{username}}</h1>
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css">
<div class="container">
<div class="panel-default">
<div class="panel-heading">
<h3 class="panel-title">LIST OF QUESTIONS</h3>
</div>
<ul class="list-group">
<!-- <ul> -->
{%for question in questions%}
<li class="list-group-item">
<!-- <li> -->
<div class="row toggle">
<div class="col-xs-10">
{{question.question_text}}
</div>
</div>
<div>
<hr></hr>
<!-- <div class="container"> -->
<!-- <div class="fluid-row"> -->
<ul>
{%for option in question.option_details%}
<!-- <div class="col-xs-1"> -->
<li> {{option.is_answer}}
<!-- </div> -->
<!-- <div class="col-xs-5"> -->
{{option.option_text}}
<!-- </div> -->
</li>
{%endfor%}
</ul>
<!-- </div> -->
<!-- </div> -->
</div>
</li>
{%endfor%}
</ul>
</div>
</div>
{%endblock%}
\ No newline at end of file
......@@ -5,7 +5,7 @@
View personal Question
{%endblock%}
{%block body%}
<h1> You CAN VIEW all tests prof {{username}}</h1>
<h1 style="text-align:center"> You CAN VIEW all tests prof {{username}}</h1>
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css">
<div class="container">
<div class="panel-default">
......
......@@ -6,7 +6,7 @@
View all Question
{%endblock%}
{%block body%}
<h1> You CAN VIEW all questions QUESTION HERE prof {{username}}</h1>
<h1 style="text-align:center"> You CAN VIEW all questions QUESTION HERE prof {{username}}</h1>
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css">
<div class="container">
<div class="panel-default">
......
......@@ -4,7 +4,7 @@
View personal Question
{%endblock%}
{%block body%}
<h1> You CAN VIEW your tests prof {{username}}</h1>
<h1 style="text-align:center"> You CAN VIEW your tests prof {{username}}</h1>
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css">
<div class="container">
<div class="panel-default">
......
......@@ -4,7 +4,7 @@
View personal Question
{%endblock%}
{%block body%}
<h1> You CAN VIEW personal QUESTION HERE prof {{username}}</h1>
<h1 style="text-align:center"> You CAN VIEW personal QUESTION HERE prof {{username}}</h1>
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css">
<div class="container">
<div class="panel-default">
......
......@@ -163,7 +163,9 @@ def result_analysis(request,test_ID):
order by left_bin''',[test_ID])
hist = cursor.fetchall()
y = int(list(hist[-1])[0])
y=0
if hist!=[]:
y = int(list(hist[-1])[0])
hist = [ [str(str(int(x[0]))+"-"+str(int(x[0])+10)),int(x[1])] for x in hist]
......
......@@ -363,7 +363,7 @@ def result(request):
utilities.evaluate(responses,
{'username':request.session['username'], 'testID':responseObj.test_ID_id})
return HttpResponse("Result page should be here")
return studentTestHome(request)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment