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
74b49c59
Commit
74b49c59
authored
Nov 26, 2018
by
NARRA SURAJ
Browse files
Options
Browse Files
Download
Plain Diff
merge conflict resolved
parents
1f16e090
157e55ef
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
5 deletions
+9
-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
No files found.
ARFA/ARFA_app/static/ARFA_app/QuestionImages/Q2sp4.png
deleted
100644 → 0
View file @
1f16e090
14.5 KB
ARFA/ARFA_app/static/ARFA_app/QuestionImages/darth.png
0 → 100644
View file @
74b49c59
41.9 KB
ARFA/ARFA_app/templates/ARFA_app/create_question.html
View file @
74b49c59
...
...
@@ -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>
...
...
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