Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
midterm_princessgabi
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
Ysabella Panghulan
midterm_princessgabi
Commits
21eac579
Commit
21eac579
authored
May 13, 2023
by
Caryn Lopez-Go
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added css formatting
parent
420da923
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
69 additions
and
43 deletions
+69
-43
assignment.css
...rincessgabi/assignments/static/assignments/assignment.css
+0
-0
assignments.css
...incessgabi/assignments/static/assignments/assignments.css
+14
-0
assignment-add.html
...abi/assignments/templates/assignments/assignment-add.html
+15
-7
assignment-details.html
...assignments/templates/assignments/assignment-details.html
+16
-7
assignment-edit.html
...bi/assignments/templates/assignments/assignment-edit.html
+15
-7
assingments.html
...ssgabi/assignments/templates/assignments/assingments.html
+0
-19
__init__.cpython-310.pyc
.../widget_princessgabi/__pycache__/__init__.cpython-310.pyc
+0
-0
settings.cpython-310.pyc
.../widget_princessgabi/__pycache__/settings.cpython-310.pyc
+0
-0
urls.cpython-310.pyc
...gabi/widget_princessgabi/__pycache__/urls.cpython-310.pyc
+0
-0
wsgi.cpython-310.pyc
...gabi/widget_princessgabi/__pycache__/wsgi.cpython-310.pyc
+0
-0
settings.py
widget_princessgabi/widget_princessgabi/settings.py
+9
-3
No files found.
widget_princessgabi/assignments/static/assignments/assignment.css
deleted
100644 → 0
View file @
420da923
widget_princessgabi/assignments/static/assignments/assignments.css
0 → 100644
View file @
21eac579
body
{
height
:
100vh
;
background-color
:
#E9E3FE
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
}
.event-content
{
margin-top
:
auto
;
padding
:
2rem
;
border-radius
:
0.5rem
;
background-color
:
white
}
widget_princessgabi/assignments/templates/assignments/assignment-add.html
View file @
21eac579
{% extends 'base.html' %}
{% extends 'base.html' %}
{% load static %}
{% block stylesheets %}
<link
rel=
"stylesheet"
type=
"text/css"
href=
"{% static 'stylesheets/forms.css' %}"
>
{% endblock %}
{% block title %}Add Assignment{% endblock %}
{% block title %}Add Assignment{% endblock %}
{% block header %}Add a new assignment:{% endblock %}
{% block header %}
<h1>
Add a new assignment:
</h1>
{% endblock %}
{% block content %}
{% block body %}
<form
method=
"POST"
>
{% block content %}
{% csrf_token %}
<div
class=
"form"
>
{{ form.as_p }}
<form
method=
"POST"
>
<input
type=
"SUBMIT"
value=
"Save New Assignment"
>
{% csrf_token %}
</form>
{{ form }}
<input
type=
"SUBMIT"
value=
"Save New Assignment"
>
</form>
</div>
{% endblock %}
{% endblock %}
{% endblock %}
\ No newline at end of file
widget_princessgabi/assignments/templates/assignments/assignment-details.html
View file @
21eac579
{% extends 'base.html' %}
{% extends 'base.html' %}
{% load static %}
{% block stylesheets %}
<link
rel=
"stylesheet"
type=
"text/css"
href=
"{% static 'assignments/assignments.css' %}"
>
<link
rel=
"stylesheet"
href=
"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"
>
{% endblock %}
{% block title %}{{ assignment.name }}{% endblock %}
{% block title %}{{ assignment.name }}{% endblock %}
{% block heading %}{{ assignment.name }}{% endblock %}
{% block heading %}
<h1>
{{ assignment.name }}
</h1>
{% endblock %}
{% block content %}
{% block body %}
<p>
<div
class=
"assignments-content"
>
{% block content %}
<div
class=
"details"
>
<h4>
{{ assignment.course.code }} {{ assignment.course.title }} - {{ assignment.course.section }}
<br>
{{ assignment.course.code }} {{ assignment.course.title }} - {{ assignment.course.section }}
<br>
Description: {{ assignment.description }}
<br>
Description: {{ assignment.description }}
<br>
Perfert Score: {{ assignment.perfect_score }}
<br>
Perfert Score: {{ assignment.perfect_score }}
<br>
Passing Score: {{ assignment.passing_score }}
Passing Score: {{ assignment.passing_score }}
</p>
</h4>
<a
href=
"{% url 'assignments:assignment-edit' assignment.id %}"
>
<a
href=
"{% url 'assignments:assignment-edit' assignment.id %}"
class=
"edit-btn"
><i
class=
"fa fa-edit"
></i>
Edit Assignment
</a>
<button>
Edit Assignment
</button>
</div>
</a><br>
{% endblock %}
</div>
{% endblock %}
{% endblock %}
\ No newline at end of file
widget_princessgabi/assignments/templates/assignments/assignment-edit.html
View file @
21eac579
{% extends 'base.html' %}
{% extends 'base.html' %}
{% load static %}
{% block stylesheets %}
<link
rel=
"stylesheet"
type=
"text/css"
href=
"{% static 'stylesheets/forms.css' %}"
>
{% endblock %}
{% block title %}Edit Assignment{% endblock %}
{% block title %}Edit Assignment{% endblock %}
{% block header %}Edit Assignment:{% endblock %}
{% block header %}
<h1>
Edit Assignment:
</h1>
{% endblock %}
{% block content %}
{% block body %}
<form
method=
"POST"
>
{% block content %}
{% csrf_token %}
<div
class=
"form"
>
{{ form.as_p }}
<form
method=
"POST"
action=
""
>
<input
type=
"SUBMIT"
value=
"Save Changes to Assignment"
>
{% csrf_token %}
</form>
{{ form }}
<input
type=
"SUBMIT"
value=
"Save Changes to Assignment"
>
</form>
</div>
{% endblock %}
{% endblock %}
{% endblock %}
\ No newline at end of file
widget_princessgabi/assignments/templates/assignments/assingments.html
deleted
100644 → 0
View file @
420da923
{% extends 'base.html' %}
{% block title %}Widget's Assignments{% endblock %}
{% block heading %}Welcome to Widget's Assignments{% endblock %}
{% block content %}
<ul>
{% for assignment in assignments %}
<li>
<a
href=
"{ assignment.get_absolute_url }"
></a>
</li>
{% endfor %}
<a
href=
"{% url 'add-assignment' assignment.id %}"
>
<button>
{{ assignment.title }}
</button>
</a><br>
</ul>
<a
href=
"{% url 'dashboard:dashboard' %}"
>
Dashboard
</a><br>
<a
href=
"{% url 'announcements:announcements' %}"
>
Announcements
</a><br>
<a
href=
"{% url 'forum:forum' %}"
>
Forum
</a><br>
<a
href=
"{% url 'calendar:calendar' %}"
>
Calendar
</a>
{% endblock %}
\ No newline at end of file
widget_princessgabi/widget_princessgabi/__pycache__/__init__.cpython-310.pyc
0 → 100644
View file @
21eac579
File added
widget_princessgabi/widget_princessgabi/__pycache__/settings.cpython-310.pyc
0 → 100644
View file @
21eac579
File added
widget_princessgabi/widget_princessgabi/__pycache__/urls.cpython-310.pyc
0 → 100644
View file @
21eac579
File added
widget_princessgabi/widget_princessgabi/__pycache__/wsgi.cpython-310.pyc
0 → 100644
View file @
21eac579
File added
widget_princessgabi/widget_princessgabi/settings.py
View file @
21eac579
...
@@ -35,14 +35,17 @@ ALLOWED_HOSTS = []
...
@@ -35,14 +35,17 @@ ALLOWED_HOSTS = []
# Application definition
# Application definition
INSTALLED_APPS
=
[
INSTALLED_APPS
=
[
'widget_calendar.apps.WidgetCalendarConfig'
,
'assignments.apps.AssignmentsConfig'
,
'assignments.apps.AssignmentsConfig'
,
'forum.apps.ForumConfig'
,
'announcementboard.apps.AnnouncementboardConfig'
,
'dashboard.apps.DashboardConfig'
,
'django.contrib.admin'
,
'django.contrib.admin'
,
'django.contrib.auth'
,
'django.contrib.auth'
,
'django.contrib.contenttypes'
,
'django.contrib.contenttypes'
,
'django.contrib.sessions'
,
'django.contrib.sessions'
,
'django.contrib.messages'
,
'django.contrib.messages'
,
'django.contrib.staticfiles'
,
'django.contrib.staticfiles'
,
'django_rename_app'
,
]
]
MIDDLEWARE
=
[
MIDDLEWARE
=
[
...
@@ -60,7 +63,7 @@ ROOT_URLCONF = 'widget_princessgabi.urls'
...
@@ -60,7 +63,7 @@ ROOT_URLCONF = 'widget_princessgabi.urls'
TEMPLATES
=
[
TEMPLATES
=
[
{
{
'BACKEND'
:
'django.template.backends.django.DjangoTemplates'
,
'BACKEND'
:
'django.template.backends.django.DjangoTemplates'
,
'DIRS'
:
[],
'DIRS'
:
[
os
.
path
.
join
(
BASE_DIR
),
'templates'
],
'APP_DIRS'
:
True
,
'APP_DIRS'
:
True
,
'OPTIONS'
:
{
'OPTIONS'
:
{
'context_processors'
:
[
'context_processors'
:
[
...
@@ -124,7 +127,10 @@ USE_TZ = True
...
@@ -124,7 +127,10 @@ USE_TZ = True
# https://docs.djangoproject.com/en/3.2/howto/static-files/
# https://docs.djangoproject.com/en/3.2/howto/static-files/
STATIC_URL
=
'/static/'
STATIC_URL
=
'/static/'
STATICFILES_DIRS
=
[
BASE_DIR
/
"static"
,
'widget_calendar/static/widget_calendar'
,
]
# Default primary key field type
# Default primary key field type
# https://docs.djangoproject.com/en/3.2/ref/settings/#default-auto-field
# https://docs.djangoproject.com/en/3.2/ref/settings/#default-auto-field
...
...
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