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
72d6f916
Verified
Commit
72d6f916
authored
May 23, 2022
by
Angelo Esteban
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changed name of templates DetailView to assignment_detail and ListView to assignment_list
parent
9ad6ee12
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
33 deletions
+21
-33
ListView.html
assignments/templates/assignments/ListView.html
+0
-33
assignment_detail.html
assignments/templates/assignments/assignment_detail.html
+0
-0
assignment_form.html
assignments/templates/assignments/assignment_form.html
+21
-0
No files found.
assignments/templates/assignments/ListView.html
deleted
100644 → 0
View file @
9ad6ee12
{% 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/
DetailView
.html
→
assignments/templates/assignments/
assignment_detail
.html
View file @
72d6f916
File moved
assignments/templates/assignments/assignment_form.html
0 → 100644
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
Angelo Esteban
@angelo.esteban
mentioned in commit
76ecb59b
·
May 23, 2022
mentioned in commit
76ecb59b
mentioned in commit 76ecb59bc243aa10774b7b27bdfdca33402c9dea
Toggle commit list
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