Update pages title

This commit is contained in:
papi 2023-12-30 21:35:22 +03:00
parent eb80b6a191
commit 4b4e235100
53 changed files with 76 additions and 71 deletions

View File

@ -3,5 +3,8 @@
"[html]": {
"editor.formatOnSave": false
},
"liveSassCompile.settings.includeItems": ["**/static/css/style.scss"]
"liveSassCompile.settings.includeItems": ["**/static/css/style.scss"],
"[python]": {
"editor.defaultFormatter": "ms-python.black-formatter"
}
}

View File

@ -145,7 +145,9 @@ def profile_single(request, id):
@login_required
@admin_required
def admin_panel(request):
return render(request, "setting/admin_panel.html", {})
return render(
request, "setting/admin_panel.html", {"title": request.user.get_full_name}
)
# ########################################################
@ -170,7 +172,7 @@ def profile_update(request):
request,
"setting/profile_info_change.html",
{
"title": "Setting | DjangoSMS",
"title": "Setting",
"form": form,
},
)
@ -223,7 +225,7 @@ def staff_add_view(request):
form = StaffAddForm()
context = {
"title": "Lecturer Add | DjangoSMS",
"title": "Lecturer Add",
"form": form,
}
@ -250,7 +252,7 @@ def edit_staff(request, pk):
request,
"accounts/edit_lecturer.html",
{
"title": "Edit Lecturer | DjangoSMS",
"title": "Edit Lecturer",
"form": form,
},
)
@ -264,7 +266,7 @@ class LecturerListView(ListView):
def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
context["title"] = "Lecturers | DjangoSMS"
context["title"] = "Lecturers"
return context
@ -314,7 +316,7 @@ def student_add_view(request):
return render(
request,
"accounts/add_student.html",
{"title": "Add Student | DjangoSMS", "form": form},
{"title": "Add Student", "form": form},
)
@ -339,7 +341,7 @@ def edit_student(request, pk):
request,
"accounts/edit_student.html",
{
"title": "Edit-profile | DjangoSMS",
"title": "Edit-profile",
"form": form,
},
)
@ -359,7 +361,7 @@ class StudentListView(ListView):
def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
context["title"] = "Students | DjangoSMS"
context["title"] = "Students"
return context

View File

@ -15,7 +15,7 @@ from .models import *
def home_view(request):
items = NewsAndEvents.objects.all().order_by("-updated_date")
context = {
"title": "News & Events | DjangoSMS",
"title": "News & Events",
"items": items,
}
return render(request, "app/index.html", context)
@ -39,7 +39,7 @@ def post_add(request):
request,
"app/post_add.html",
{
"title": "Add Post | DjangoSMS",
"title": "Add Post",
"form": form,
},
)
@ -65,7 +65,7 @@ def edit_post(request, pk):
request,
"app/post_add.html",
{
"title": "Edit Post | DjangoSMS",
"title": "Edit Post",
"form": form,
},
)

View File

@ -38,7 +38,7 @@ def program_view(request):
request,
"course/program_list.html",
{
"title": "Programs | DjangoSMS",
"title": "Programs",
"programs": programs,
},
)
@ -64,7 +64,7 @@ def program_add(request):
request,
"course/program_add.html",
{
"title": "Add Program | DjangoSMS",
"title": "Add Program",
"form": form,
},
)
@ -112,7 +112,7 @@ def program_edit(request, pk):
return render(
request,
"course/program_add.html",
{"title": "Edit Program | DjangoSMS", "form": form},
{"title": "Edit Program", "form": form},
)
@ -179,7 +179,7 @@ def course_add(request, pk):
request,
"course/course_add.html",
{
"title": "Add Course | DjangoSMS",
"title": "Add Course",
"form": form,
"program": pk,
"users": users,
@ -210,7 +210,7 @@ def course_edit(request, slug):
request,
"course/course_add.html",
{
"title": "Edit Course | DjangoSMS",
"title": "Edit Course",
# 'form': form, 'program': pk, 'course': pk
"form": form,
},
@ -264,7 +264,7 @@ class CourseAllocationFormView(CreateView):
def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
context["title"] = "Assign Course | DjangoSMS"
context["title"] = "Assign Course"
return context
@ -275,7 +275,7 @@ def course_allocation_view(request):
request,
"course/course_allocation_view.html",
{
"title": "Course Allocations | DjangoSMS",
"title": "Course Allocations",
"allocated_courses": allocated_courses,
},
)
@ -297,7 +297,7 @@ def edit_allocated_course(request, pk):
return render(
request,
"course/course_allocation_form.html",
{"title": "Edit Course Allocated | DjangoSMS", "form": form, "allocated": pk},
{"title": "Edit Course Allocated", "form": form, "allocated": pk},
)
@ -334,7 +334,7 @@ def handle_file_upload(request, slug):
return render(
request,
"upload/upload_file_form.html",
{"title": "File Upload | DjangoSMS", "form": form, "course": course},
{"title": "File Upload", "form": form, "course": course},
)
@ -391,7 +391,7 @@ def handle_video_upload(request, slug):
return render(
request,
"upload/upload_video_form.html",
{"title": "Video Upload | DjangoSMS", "form": form, "course": course},
{"title": "Video Upload", "form": form, "course": course},
)

View File

@ -91,7 +91,7 @@ def add_score_for(request, id):
.filter(course__semester=current_semester)
)
context = {
"title": "Submit Score | DjangoSMS",
"title": "Submit Score",
"courses": courses,
"course": course,
# "myclass": myclass,

View File

@ -1,5 +1,5 @@
{% extends 'base.html' %}
{% block title %}{{ title }}{% endblock title %}
{% block title %}{{ title }} | Learning management system{% endblock title %}
{% load crispy_forms_tags %}
{% load static %}

View File

@ -1,5 +1,5 @@
{% extends 'base.html' %}
{% block title %}{{ title }}{% endblock title %}
{% block title %}{{ title }} | Learning management system{% endblock title %}
{% load crispy_forms_tags %}
{% load static %}

View File

@ -1,5 +1,5 @@
{% extends 'base.html' %}
{% block title %}{{ title }}{% endblock title %}
{% block title %}{{ title }} | Learning management system{% endblock title %}
{% load crispy_forms_tags %}
{% load static %}

View File

@ -1,5 +1,5 @@
{% extends 'base.html' %}
{% block title %}{{ title }}{% endblock title %}
{% block title %}{{ title }} | Learning management system{% endblock title %}
{% load crispy_forms_tags %}
{% load static %}

View File

@ -1,5 +1,5 @@
{% extends 'base.html' %}
{% block title %}{{ title }}{% endblock title %}
{% block title %}{{ title }} | Learning management system{% endblock title %}
{% block content %}

View File

@ -1,5 +1,5 @@
{% extends 'base.html' %}
{% block title %}{{ title }}{% endblock title %}
{% block title %}{{ title }} | Learning management system{% endblock title %}
{% load crispy_forms_tags %}
{% load static %}

View File

@ -1,5 +1,5 @@
{% extends 'base.html' %}
{% block title %} {{ title }} | DjangoSMS{% endblock title %}
{% block title %} {{ title }} | Learning management system{% endblock title %}
{% load static %}
{% load i18n %}

View File

@ -1,5 +1,5 @@
{% extends 'base.html' %}
{% block title %} {{ title }} | DjangoSMS{% endblock title %}
{% block title %} {{ title }} | Learning management system{% endblock title %}
{% load static %}
{% load i18n %}
{% block content %}

View File

@ -1,5 +1,5 @@
{% extends 'base.html' %}
{% block title %}{{ title }}{% endblock title %}
{% block title %}{{ title }} | Learning management system{% endblock title %}
{% block content %}

View File

@ -1,5 +1,5 @@
{% extends 'base.html' %}
{% block title %} Dashboard | Ezod System {% endblock title %}
{% block title %} Dashboard | Learning management system {% endblock title %}
{% load static %}
{% block header %}

View File

@ -1,5 +1,5 @@
{% extends 'base.html' %}
{% block title %}{{ title }}{% endblock title %}
{% block title %}{{ title }} | Learning management system{% endblock title %}
{% load static %}
{% block content %}

View File

@ -1,5 +1,5 @@
{% extends 'base.html' %}
{% block title %}{{ title }}{% endblock title %}
{% block title %}{{ title }} | Learning management system{% endblock title %}
{% load crispy_forms_tags %}
{% load static %}

View File

@ -1,5 +1,5 @@
{% extends 'base.html' %}
{% block title %}{{ title }}{% endblock title %}
{% block title %}{{ title }} | Learning management system{% endblock title %}
{% block content %}

View File

@ -1,5 +1,5 @@
{% extends 'base.html' %}
{% block title %}{{ title }}{% endblock title %}
{% block title %}{{ title }} | Learning management system{% endblock title %}
{% load crispy_forms_tags %}
{% load static %}

View File

@ -1,5 +1,5 @@
{% extends 'base.html' %}
{% block title %}{{ title }}{% endblock title %}
{% block title %}{{ title }} | Learning management system{% endblock title %}
{% block content %}

View File

@ -1,5 +1,5 @@
{% extends 'base.html' %}
{% block title %}{{ title }}{% endblock title %}
{% block title %}{{ title }} | Learning management system{% endblock title %}
{% load crispy_forms_tags %}
{% load static %}

View File

@ -1,5 +1,5 @@
{% extends 'base.html' %}
{% block title %}{{ title }}{% endblock title %}
{% block title %}{{ title }} | Learning management system{% endblock title %}
{% load crispy_forms_tags %}
{% load static %}

View File

@ -1,5 +1,5 @@
{% extends 'base.html' %}
{% block title %}{{ title }}{% endblock title %}
{% block title %}{{ title }} | Learning management system{% endblock title %}
{% load crispy_forms_tags %}
{% load static %}

View File

@ -1,5 +1,5 @@
{% extends 'base.html' %}
{% block title %}{{ title }}{% endblock title %}
{% block title %}{{ title }} | Learning management system{% endblock title %}
{% block content %}
<div id="input-nav"><a href="{% url 'home' %}" class="primary1">Home</a> Allocation list</div>

View File

@ -1,5 +1,5 @@
{% extends 'base.html' %}
{% block title %}{{ title }}{% endblock title %}
{% block title %}{{ title }} | Learning management system{% endblock title %}
{% load static %}
{% load crispy_forms_tags %}

View File

@ -1,5 +1,5 @@
{% extends 'base.html' %}
{% block title %}{{ title }} | DjangoSMS{% endblock title %}
{% block title %}{{ title }} | Learning management system{% endblock title %}
{% load static %}
{% block content %}

View File

@ -1,5 +1,5 @@
{% extends 'base.html' %}
{% block title %}{{ title }}{% endblock title %}
{% block title %}{{ title }} | Learning management system{% endblock title %}
{% load crispy_forms_tags %}
{% load static %}

View File

@ -1,5 +1,5 @@
{% extends 'base.html' %}
{% block title %}{{ title }}{% endblock title %}
{% block title %}{{ title }} | Learning management system{% endblock title %}
{% block content %}
<div id="input-nav"><a href="{% url 'home' %}" class="primary1">Home</a> Programs</div>

View File

@ -1,5 +1,5 @@
{% extends 'base.html' %}
{% block title %} {{ title }} | DjangoSMS{% endblock title %}
{% block title %} {{ title }} | Learning management system{% endblock title %}
{% load static %}
{% block content %}

View File

@ -1,5 +1,5 @@
{% extends 'base.html' %}
{% block title %} My Courses | DjangoSMS{% endblock title %}
{% block title %} My Courses | Learning management system{% endblock title %}
{% load static %}
{% block content %}

View File

@ -1,7 +1,7 @@
{% extends "base.html" %}
{% load i18n %}
{% block title %} {% trans "Progress Page" %} {% endblock %}
{% block title %} {% trans "Progress Page" %} | Learning management system {% endblock %}
{% block description %} {% trans "User Progress Page" %} {% endblock %}
{% block content %}

View File

@ -2,7 +2,7 @@
{% load i18n%}
{% block title %} {{ quiz.title }} {% endblock %}
{% block title %} {{ quiz.title }} | Learning management system {% endblock %}
{% block description %} {{ quiz.title }} - {{ quiz.description }} {% endblock %}
{% block content %}

View File

@ -1,5 +1,5 @@
{% extends 'base.html' %}
{% block title %}{{ title }}{% endblock title %}
{% block title %}{{ title }} | Learning management system{% endblock title %}
{% load i18n %}
{% load static %}

View File

@ -1,7 +1,7 @@
{% extends 'base.html' %}
{% load i18n %}
{% block title %}
{% trans "Result of" %} {{ sitting.quiz.title }} {% trans "for" %} {{ sitting.user }}
{% trans "Result of" %} {{ sitting.quiz.title }} {% trans "for" %} {{ sitting.user }} | Learning management system
{% endblock %}
{% block content %}

View File

@ -1,6 +1,6 @@
{% extends 'base.html' %}
{% load i18n %}
{% block title %}{% trans "All Quizzes" %}{% endblock %}
{% block title %}{% trans "All Quizzes" %} | Learning management system{% endblock %}
{% block content %}
<div class="container">

View File

@ -1,5 +1,5 @@
{% extends 'registration/registration_base.html' %}
{% block title %}DjangoSMS - Login{% endblock title %}
{% block title %}Dj Learning Management System - Login{% endblock title %}
{% load crispy_forms_tags %}
{% block content %}

View File

@ -1,5 +1,5 @@
{% extends 'registration/registration_base.html' %}
{% block title %}Password Reset | DjangoSMS{% endblock title %}
{% block title %}Password Reset | Learning management system{% endblock title %}
{% load crispy_forms_tags %}
{% block content %}
<div id="login">

View File

@ -1,5 +1,5 @@
{% extends 'registration/registration_base.html' %}
{% block title %}Password Reset Complete | DjangoSMS{% endblock title %}
{% block title %}Password Reset Complete | Learning management system{% endblock title %}
{% load crispy_forms_tags %}
{% block content %}

View File

@ -1,5 +1,5 @@
{% extends 'registration/registration_base.html' %}
{% block title %}New Password | DjangoSMS{% endblock title %}
{% block title %}New Password | Learning management system{% endblock title %}
{% load crispy_forms_tags %}
{% block content %}

View File

@ -1,5 +1,5 @@
{% extends 'registration/registration_base.html' %}
{% block title %}Email Sent | DjangoSMS{% endblock title %}
{% block title %}Email Sent | Learning management system{% endblock title %}
{% load crispy_forms_tags %}
{% block content %}

View File

@ -1,5 +1,5 @@
{% extends 'registration/registration_base.html' %}
{% block title %} Register - DjangoSMS {% endblock title %}
{% block title %} Register | Learning management system {% endblock title %}
{% load crispy_forms_tags %}
{% block content %}

View File

@ -4,7 +4,7 @@
{% load quiz_tags %}
{% block title %} {{ quiz.title}} {% endblock %}
{% block title %} {{ quiz.title}} | Learning management system {% endblock %}
{% block description %} {% trans "Quiz Results for" %} {{ quiz.title }} {% endblock %}
{% block content %}

View File

@ -1,5 +1,5 @@
{% extends 'base.html' %}
{% block title %}{{ title }}{% endblock title %}
{% block title %}{{ title }} | Learning management system{% endblock title %}
{% load static %}
{% block content %}

View File

@ -1,5 +1,5 @@
{% extends 'base.html' %}
{% block title %}{{ title }}{% endblock title %}
{% block title %}{{ title }} | Learning management system{% endblock title %}
{% load static %}
{% block content %}

View File

@ -1,5 +1,5 @@
{% extends 'base.html' %}
{% block title %}{{ title }}{% endblock title %}
{% block title %}{{ title }} | Learning management system{% endblock title %}
{% block content %}

View File

@ -1,5 +1,5 @@
{% extends 'base.html' %}
{% block title %}{{ title }}{% endblock title %}
{% block title %}{{ title }} | Learning management system{% endblock title %}
{% block content %}

View File

@ -1,5 +1,5 @@
{% extends "base.html" %}
{% block title %}Search result for {{ query }} | DjangoSMS{% endblock title %}
{% block title %}Search result for {{ query }} | Learning management system{% endblock title %}
{% load class_name %}

View File

@ -1,5 +1,5 @@
{% extends 'base.html' %}
{% block title %}{{ title }}{% endblock title %}
{% block title %}{{ title }} | Learning management system{% endblock title %}
{% load crispy_forms_tags %}
{% load static %}

View File

@ -1,5 +1,5 @@
{% extends 'base.html' %}
{% block title %}{{ title }}{% endblock title %}
{% block title %}{{ title }} | Learning management system{% endblock title %}
{% load crispy_forms_tags %}
{% load static %}

View File

@ -1,5 +1,5 @@
{% extends 'base.html' %}
{% block title %}{{ title }}{% endblock title %}
{% block title %}{{ title }} | Learning management system{% endblock title %}
{% load crispy_forms_tags %}
{% load static %}

View File

@ -1,5 +1,5 @@
{% extends 'base.html' %}
{% block title %}{{ title }}{% endblock title %}
{% block title %}{{ title }} | Learning management system{% endblock title %}
{% load crispy_forms_tags %}
{% block content %}

View File

@ -1,5 +1,5 @@
{% extends 'base.html' %}
{% block title %}{{ title }}{% endblock title %}
{% block title %}{{ title }} | Learning management system{% endblock title %}
{% load crispy_forms_tags %}
{% block content %}

View File

@ -1,5 +1,5 @@
{% extends 'base.html' %}
{% block title %}{{ video.title }} | DjangoSMS{% endblock title %}
{% block title %}{{ video.title }} | Learning management system{% endblock title %}
{% load static %}
{% block content %}