Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
widget_father when can i be on my own i have the hello world to see
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
father when can i be on my own i have the hello world to see
widget_father when can i be on my own i have the hello world to see
Commits
76ecb59b
Verified
Commit
76ecb59b
authored
May 23, 2022
by
Angelo Esteban
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "changed name of templates DetailView to assignment_detail and ListView to assignment_list"
This reverts commit
72d6f916
.
parent
72d6f916
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
21 deletions
+33
-21
DetailView.html
assignments/templates/assignments/DetailView.html
+0
-0
ListView.html
assignments/templates/assignments/ListView.html
+33
-0
assignment_form.html
assignments/templates/assignments/assignment_form.html
+0
-21
No files found.
assignments/templates/assignments/
assignment_detail
.html
→
assignments/templates/assignments/
DetailView
.html
View file @
76ecb59b
File moved
assignments/templates/assignments/ListView.html
0 → 100644
View file @
76ecb59b
{% extends 'base.html' %}
{% load static %}
{% block styles %}
<link
rel=
"stylesheet"
href=
"{% static 'assignments/css/style.css' %}"
>
{% endblock %}
{% block title %}Assignments{% endblock %}
{% block header %}Assignments Per Course{% endblock %}
{% block content %}
<p
id=
"table-caption"
>
List of courses:
</p>
{% if all_courses.count == 0 %}
<p
id=
"no-courses"
>
No courses found.
</p>
{% else %}
{% for course in all_courses %}
<ul
class=
"table"
>
<li><strong>
{{course.code}} {{course.title}} {{course.section}}
</strong></li>
<ul
class=
"subtable"
>
{% if course.assignment_set.all.count == 0 %}
<li>
No assignments found.
</li>
{% else %}
{% for assignment in course.assignment_set.all %}
<a
class=
"table-links"
href=
'{{request.path}}{{assignment.pk}}/details'
><li
class=
"assignment-name"
>
{{assignment.name}}
</li></a>
{% endfor %}
{% endif %}
</ul>
</ul>
<div
class=
"table-gutter"
></div>
{% endfor %}
{% endif %}
{% endblock %}
\ No newline at end of file
assignments/templates/assignments/assignment_form.html
deleted
100644 → 0
View file @
72d6f916
<!-- homepage/widgetuser_form.html -->
{% extends 'base.html' %}
{% load static %}
{% block title %}Create Assignment{% endblock %}
{% block styles %}
<link
rel=
"stylesheet"
href=
"{% static 'assignments/css/style.css' %}"
>
{% endblock %}
{% block header %}
New Assignment
{% endblock %}
{% block content %}
<form
enctype=
"multipart/form-data"
method=
"post"
>
{% csrf_token %}
{{ form.as_p }}
<input
type=
"submit"
value=
"Save Assignment"
>
</form>
{% endblock %}
\ No newline at end of file
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