Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
ARFA
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
ARFA
ARFA
Commits
157e55ef
Commit
157e55ef
authored
Nov 26, 2018
by
Rahul-chunduru
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improved create_question
parent
f7db8450
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
5 deletions
+11
-5
ARFA/ARFA_app/static/ARFA_app/QuestionImages/Q2sp4.png
ARFA/ARFA_app/static/ARFA_app/QuestionImages/Q2sp4.png
+0
-0
ARFA/ARFA_app/static/ARFA_app/QuestionImages/darth.png
ARFA/ARFA_app/static/ARFA_app/QuestionImages/darth.png
+0
-0
ARFA/ARFA_app/templates/ARFA_app/create_question.html
ARFA/ARFA_app/templates/ARFA_app/create_question.html
+9
-5
ARFA/ARFA_app/templates/ARFA_app/studentTestHome.html
ARFA/ARFA_app/templates/ARFA_app/studentTestHome.html
+2
-0
No files found.
ARFA/ARFA_app/static/ARFA_app/QuestionImages/Q2sp4.png
deleted
100644 → 0
View file @
f7db8450
14.5 KB
ARFA/ARFA_app/static/ARFA_app/QuestionImages/darth.png
0 → 100644
View file @
157e55ef
41.9 KB
ARFA/ARFA_app/templates/ARFA_app/create_question.html
View file @
157e55ef
...
...
@@ -75,7 +75,7 @@ function prevTab(elem) {
var
check
=
document
.
createElement
(
"
input
"
);
var
check_ans
=
document
.
createElement
(
"
label
"
);
check_ans
.
for
=
"
c
"
+
x
;
check_ans
.
innerHTML
=
"
Is this an / the answer?
"
check_ans
.
innerHTML
=
"
Is this an / the answer?
"
;
check
.
type
=
"
checkbox
"
;
check
.
className
=
"
form-control
"
;
check
.
name
=
"
c
"
+
x
;
...
...
@@ -110,8 +110,8 @@ function prevTab(elem) {
var
qtext
=
document
.
getElementById
(
'
qtext
'
).
value
;
question_data
[
'
subject_ID
'
]
=
subject
.
value
;
question_data
[
'
question_text
'
]
=
qtext
;
console
.
log
(
question_data
[
'
question_text
'
])
;
console
.
log
(
question_data
[
'
subject_ID
'
]
)
;
question_data
[
'
difficulty_set
'
]
=
document
.
getElementById
(
'
diff
'
).
value
;
console
.
log
(
question_data
)
;
document
.
getElementById
(
'
l2
'
).
click
()
;
}
...
...
@@ -228,7 +228,7 @@ Create Question
{%endblock%}
{%block body%}
<h3
style=
"text-align:center"
>
You CAN CREATE A QUESTION HERE prof {{username}}
</h3>
<h3
style=
"text-align:center"
>
Create a question here
</h3>
<div
class=
"container"
title=
"this is title"
>
<div
class=
"row"
>
<section>
...
...
@@ -288,6 +288,10 @@ Create Question
<label>
Question Text
</label>
<textarea
class=
"form-control"
rows=
"6"
id=
"qtext"
></textarea>
</div>
<div
class=
"form-group col-lg-4"
>
<label
style=
"margin-right:20px"
>
Specify question difficulty
</label>
<input
type=
"number"
name=
"quantity"
min=
"1"
max=
"10"
placeholder=
"5"
value=
"5"
id=
"diff"
>
</div>
</div>
<div
class=
"tab-pane"
role=
"tabpanel"
id=
"step2"
>
<h3>
Step 2 - Add some options
</h3>
...
...
@@ -308,7 +312,7 @@ Create Question
<p>
Drop images in the order you want to display
</p>
<ul
class=
"list-inline pull-right"
>
<li><button
type=
"button"
class=
"btn btn-default prev-step"
onclick=
"document.getElementById('l2').click() ; "
>
Previous
</button></li>
<
li><button
type=
"button"
class=
"btn btn-default next-step"
onclick=
"document.getElementById('l4').click() ;"
>
Skip
</button></li
>
<
!-- <li><button type="button" class="btn btn-default next-step" onclick="document.getElementById('l4').click() ;">Skip</button></li> --
>
<li><button
align=
"left"
type=
"button"
class=
"btn btn-primary"
id=
"addsubjectiveque"
onclick=
"intend_to_add_img() ; post()"
>
Add an image
</button></li>
<li><button
type=
"button"
class=
"btn btn-primary btn-info-full next-step"
onclick=
"post()"
>
Post Question
</button></li>
</ul>
...
...
ARFA/ARFA_app/templates/ARFA_app/studentTestHome.html
View file @
157e55ef
...
...
@@ -17,9 +17,11 @@ My Tests
<ul
class=
"list-group"
>
{% for t in activeTests %}
<div
class=
"row"
style=
"margin-bottom: 10px; margin-top: 5px"
>
<div
style=
"float: left; margin-left: 20px"
>
<p><i>
Test Id
</i>
<b>
{{t.test_ID}}
</b></p>
<p><i>
Test Name
</i>
<b>
{{t.test_name}}
</b>
</p>
</div>
</div>
<div
style=
"float:right"
>
<form
method=
"POST"
action=
"loadStudentTest"
>
{% csrf_token %}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment