Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
midterm_robo_mommy
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Raul Jarod Conanan
midterm_robo_mommy
Commits
337d3793
Commit
337d3793
authored
May 14, 2023
by
Lance Dominic B. Santuyo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Edited the HTML templates for Assignments to use CSS
parent
97ce07ae
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
46 additions
and
30 deletions
+46
-30
assignment-add.html
...mmy/assignments/templates/assignments/assignment-add.html
+7
-5
assignment-details.html
...assignments/templates/assignments/assignment-details.html
+5
-5
assignment-edit.html
...my/assignments/templates/assignments/assignment-edit.html
+7
-5
assignments.html
..._mommy/assignments/templates/assignments/assignments.html
+27
-15
No files found.
widget_robo_mommy/assignments/templates/assignments/assignment-add.html
View file @
337d3793
{% extends 'base.html' %}
{% block content %}
<title>
Add Assignment
</title>
{% block title %} Add Assignment {% endblock %}
<h1>
Add a new assignment:
</h1>
{% block header %} Add a new assignment: {% endblock %}
{% block content %}
<form
action=
""
method=
POST
>
{% csrf_token %}
{{ form.as_p }}
<input
type=
"submit"
value=
"Save New Assignment"
>
</form>
{%
endblock content
%}
{%
endblock
%}
widget_robo_mommy/assignments/templates/assignments/assignment-details.html
View file @
337d3793
{% extends 'base.html' %}
{% block content %}
<title>
{{ assignment.name }}
</title>
{% block title %} {{ assignment.name }} {% endblock %}
<h1>
{{ assignment.name }}
</h1>
{% block header %} {{ assignment.name }} {% endblock %}
{% block content %}
<p>
{{ assignment.course.code }} {{ assignment.course.title }}-{{ assignment.course.section }}
<br><br>
Description: {{ assignment.description }}
<br>
...
...
@@ -12,6 +12,6 @@
Passing Score: {{ assignment.passing_score }}
<br>
</p>
<li>
<a
href=
"{{ assignment.get_update_url }}"
>
Edit Assignment
</a>
<a
href=
"{{ assignment.get_update_url }}"
class=
"item"
>
Edit Assignment
</a>
</li>
{% endblock %}
widget_robo_mommy/assignments/templates/assignments/assignment-edit.html
View file @
337d3793
{% extends 'base.html' %}
{% block content %}
<title>
Edit Assignment
</title>
{% block title %} Edit Assignment {% endblock %}
<h1>
Edit Assignment.
</h1>
{% block header %} Edit Assignment: {% endblock %}
{% block content %}
<form
action=
""
method=
POST
>
{% csrf_token %}
{{ form.as_p }}
<input
type=
"submit"
value=
"Save Changes to Assignment"
>
</form>
{%
endblock content
%}
{%
endblock
%}
widget_robo_mommy/assignments/templates/assignments/assignments.html
View file @
337d3793
{% extends 'base.html' %}
{% block content %}
<title>
Widget's Assignments
</title>
{% block title %} Widget's Assignments {% endblock %}
<h1>
Welcome to Widget's Assignments!
</h1>
{% block header %} Welcome to Widget's Assignments! {% endblock %}
{% block content %}
<div
id =
"object_container"
>
<ul
id =
"object_list"
>
{% for assignment in assignments %}
<a
href=
"{{ assignment.pk }}/details/
"
>
{{ assignment.name }}
</a><br>
<a
href=
"{{ assignment.pk }}/details/"
class=
"item
"
>
{{ assignment.name }}
</a><br>
{% endfor %}
<br>
<li>
<a
href=
"add/"
class=
"item"
>
New Assignment
</a>
</li>
</ul>
</div>
{% endblock %}
<a
href=
"add/"
><button
value=
"click here"
>
New Assignment
</button></a><br><br>
<a
href=
"/Dashboard/"
>
Dashboard
</a><br>
<a
href=
"/announcements/"
>
Announcements
</a><br>
<a
href=
"/forum/"
>
Forum
</a><br>
<a
href=
"/widget_Calendar/"
>
Calendar
</a><br>
{% endblock content %}
{% block navbar %}
<div
id =
"navbar"
>
<a
href =
"/dashboard/"
>
Dashboard
</a>
<a
href=
"/announcements/"
>
Announcements
</a>
<a
href =
"/forum/"
>
Forum
</a>
<a
href =
"/widget_Calendar/"
>
Calendar
</a>
</div>
{% 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