This repository has been archived by the owner on Sep 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
6 changed files
with
96 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
from django.contrib import admin | ||
from .models import * | ||
|
||
admin.site.register(Topic) | ||
admin.site.register(Type) | ||
|
||
class SnippetAdmin(admin.ModelAdmin): | ||
change_list_template = 'admin/questions/login.html' | ||
|
||
|
||
admin.site.register(Topic, SnippetAdmin) | ||
admin.site.register(Type, SnippetAdmin) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
{% extends "admin/login.html" %} | ||
{% load i18n static %} | ||
|
||
{% load static %} | ||
|
||
{% block footer %} | ||
<style> | ||
#footer { | ||
text-align: center; | ||
padding: 2rem; | ||
background: #eee; | ||
font-family: monospace; | ||
font-weight: 400; | ||
font-size: 1rem; | ||
/* color: #333; */ | ||
} | ||
</style> | ||
<div id="footer"> | ||
Qujini Question Paper Generator | ||
</div> | ||
{% endblock %} | ||
{% block script %} | ||
|
||
|
||
<script src="{% static 'questions/js/login-extra.js' %}"></script> | ||
{% endblock %} | ||
|
||
|
||
<!-- //new start --> | ||
{% block branding %} | ||
<style> | ||
body.login { | ||
/* background: #ffc107; */ | ||
min-height: 100vh; | ||
align-items: center; | ||
justify-content: center; | ||
display: flex; | ||
} | ||
|
||
.login #header { | ||
height: auto; | ||
padding: 1rem; | ||
/* background: #222; */ | ||
} | ||
|
||
.login #branding { | ||
width: 100%; | ||
} | ||
|
||
.login .head { | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
} | ||
|
||
.login #container { | ||
/* background: #fff; */ | ||
border: none; | ||
border-radius: 4px; | ||
box-shadow: 2px 3px 5px #333; | ||
overflow: hidden; | ||
width: 50vw; | ||
margin: 0; | ||
max-width: 400px; | ||
} | ||
|
||
.login .submit-row { | ||
display: flex; | ||
justify-content: center; | ||
padding: 2.5rem 0; | ||
} | ||
|
||
.login .submit-row input { | ||
/* background: #ffc107; */ | ||
/* color: black; */ | ||
display: block; | ||
width: 100%; | ||
} | ||
</style> | ||
|
||
<div class="head"> | ||
<img class="brand_img" src="{% static 'questions/logo_light.png' %}" style="height: 5rem;" alt="logo"> | ||
</div> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
Django==2.2.1 | ||
django-ckeditor==5.7.1 | ||
pytz==2019.1 | ||
sqlparse==0.3.0 | ||
|
||
sqlparse==0.3.0 |