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
1d76ca5d
Commit
1d76ca5d
authored
Nov 26, 2018
by
SANCHIT JAIN
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added date time picker
parent
582642c8
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
236 deletions
+7
-236
ARFA/ARFA_app/forms.py
ARFA/ARFA_app/forms.py
+5
-1
ARFA/ARFA_app/migrations/0001_initial.py
ARFA/ARFA_app/migrations/0001_initial.py
+0
-232
ARFA/ARFA_app/migrations/__init__.py
ARFA/ARFA_app/migrations/__init__.py
+0
-0
ARFA/ARFA_app/models.py
ARFA/ARFA_app/models.py
+1
-1
ARFA/ARFA_app/templates/ARFA_app/create_Test.html
ARFA/ARFA_app/templates/ARFA_app/create_Test.html
+1
-2
No files found.
ARFA/ARFA_app/forms.py
View file @
1d76ca5d
...
...
@@ -31,5 +31,9 @@ VISIBILITY_CHOICES= ('1980', '1981', '1982')
class
TestForm
(
forms
.
ModelForm
):
class
Meta
:
model
=
Test
model
=
Test
widgets
=
{
'expected_time_for_completion'
:
forms
.
TimeInput
(
attrs
=
{
'type'
:
'time'
}),
'start_time'
:
forms
.
DateInput
(
attrs
=
{
'type'
:
'datetime-local'
}),
}
exclude
=
[
'test_ID'
,
'ownership'
]
\ No newline at end of file
ARFA/ARFA_app/migrations/0001_initial.py
deleted
100644 → 0
View file @
582642c8
This diff is collapsed.
Click to expand it.
ARFA/ARFA_app/migrations/__init__.py
deleted
100644 → 0
View file @
582642c8
ARFA/ARFA_app/models.py
View file @
1d76ca5d
...
...
@@ -30,7 +30,7 @@ class Test(models.Model):
visibility_student
=
models
.
CharField
(
max_length
=
20
)
ownership
=
models
.
CharField
(
max_length
=
20
)
expected_time_for_completion
=
models
.
DurationField
(
blank
=
True
)
start_time
=
models
.
DateTimeField
(
auto_now
=
False
,
auto_now_add
=
False
)
start_time
=
models
.
DateTimeField
(
auto_now
=
False
,
auto_now_add
=
False
,
blank
=
False
)
max_marks
=
models
.
IntegerField
(
null
=
True
)
# class TestQuestions(models.Model):
...
...
ARFA/ARFA_app/templates/ARFA_app/create_Test.html
View file @
1d76ca5d
...
...
@@ -8,7 +8,6 @@ Create Test
{%endblock%}
{%block body%}
<h1>
You CAN CREATE A Test HERE prof {{username}}
</h1>
...
...
@@ -21,7 +20,7 @@ Create Test
<!-- <ul> -->
<form
method=
"POST"
action=
"create_Test"
>
{% csrf_token %}
{{ TestForm }}
{{ TestForm
.as_p
}}
{{TestForm.errors}}
{{TestForm.non_field_errors}}
{%for question in questions%}
...
...
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