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
ec0b83f5
Verified
Commit
ec0b83f5
authored
May 11, 2022
by
Angelo Esteban
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added templates for ListView and DetailView
parent
6bd4b3c8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
47 additions
and
0 deletions
+47
-0
DetailView.html
assignments/templates/assignments/DetailView.html
+23
-0
ListView.html
assignments/templates/assignments/ListView.html
+24
-0
No files found.
assignments/templates/assignments/DetailView.html
0 → 100644
View file @
ec0b83f5
{% extends 'base.html' %}
{% block styles %}
{% load static %}
<link
rel=
"stylesheet"
type=
"text/css"
href=
"{% static 'css/style.css' %}"
>
{% endblock %}
{% block title %}
{{assignment.name}}
{% endblock %}
{% block content %}
<h2>
Assignment Details
</h2>
Course: {{assignment.course.code}} {{assignment.course.title}} {{assignment.course.section}}
<br>
Name: {{assignment.name}}
<br>
Description: {% if assignment.description != None and assignment.description != '' %}{{ assignment.description }}{% else %}No description provided.{% endif %}
<br>
Perfect score: {{assignment.max_points}}
<br>
Passing score: {{assignment.passing_score}}
<br>
Image:
<br>
{% endblock %}
\ No newline at end of file
assignments/templates/assignments/ListView.html
0 → 100644
View file @
ec0b83f5
{% extends 'base.html' %}
{% block styles %}
{% load static %}
<link
rel=
"stylesheet"
type=
"text/css"
href=
"{% static 'css/style.css' %}"
>
{% endblock %}
{% block title %}Assignments{% endblock %}
{% block content %}
<h1>
Assignments Per Course
</h1>
<p>
List of courses:
</p>
<ul>
{% for course in all_courses %}
<li>
{{course.code}} {{course.title}} {{course.section}}
</li>
<ul>
{% for assignment in course.assignment_set.all %}
<a
href=
'{{request.path}}{{assignment.pk}}/details'
><li>
{{assignment.name}}
</li></a>
{% endfor %}
</ul>
{% endfor %}
</ul>
{% 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