Skip to content

Commit

Permalink
Pull out style css for roster-like printables
Browse files Browse the repository at this point in the history
  • Loading branch information
kkbrum committed Jan 10, 2025
1 parent 26601ae commit eee16e5
Show file tree
Hide file tree
Showing 11 changed files with 7 additions and 369 deletions.
57 changes: 0 additions & 57 deletions esp/esp/program/modules/handlers/programprintables.py
Original file line number Diff line number Diff line change
Expand Up @@ -1646,63 +1646,6 @@ def classchecklists(self, request, tl, one, two, module, extra, prog):

return render_to_response(self.baseDir()+'classchecklists.html', request, context)

@aux_call
@needs_admin
def adminbinder(self, request, tl, one, two, module, extra, prog):

if extra not in ['teacher', 'classid', 'timeblock']:
return self.goToCore(tl)
context = {'module': self}

scheditems = []


if extra == 'teacher':
teachers = sorted(self.program.teachers())
list(map(ESPUser, teachers))

scheditems = []

for teacher in teachers:
classes = [ cls for cls in teacher.getTaughtClasses()
if cls.isAccepted() and
cls.parent_program == self.program ]
for cls in classes:
scheditems.append({'teacher': teacher,
'class' : cls})

context['scheditems'] = scheditems
return render_to_response(self.baseDir()+'adminteachers.html', request, context)



if extra == 'classid':
classes = [cls for cls in self.program.classes()
if cls.isAccepted() ]

classes.sort(key=ClassSubject.idcmp)

for cls in classes:
for teacher in cls.get_teachers():
scheditems.append({'teacher': teacher,
'class' : cls})
context['scheditems'] = scheditems
return render_to_response(self.baseDir()+'adminclassid.html', request, context)


if extra == 'timeblock':
classes = sorted([cls for cls in self.program.classes()
if cls.isAccepted() ])


for cls in classes:
for teacher in cls.get_teachers():
scheditems.append({'teacher': teacher,
'cls' : cls})

context['scheditems'] = scheditems
return render_to_response(self.baseDir()+'adminclasstime.html', request, context)

@aux_call
@needs_admin
def certificate(self, request, tl, one, two, module, extra, prog):
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,27 +1,8 @@
<html>
<head>
<title>Class Rosters</title>
<style type="text/css" media="print,screen">
body { font-family: georgia; }
.classtitle { text-align: center; font-size: 15pt; font-weight: bold; font-family: georgia; padding: .3in;}
<link rel="stylesheet" type="text/css" href="/media/styles/rosters.css" media="print,screen">

.classroster { text-align: center; }
.title span { font-weight:bolder; text-decoration: underline;
font-size:16pt; }

.blocks { padding: 4px; font-size: 10pt; font-weight: bold; }
.classroom { padding: 4px; font-size: 10pt; font-weight: bold; }
.pretty {border: 1px solid black; }
.pretty td { border: 1px solid black; }
.pretty th { border: 1px solid black; }
.pretty td { vertical-align: top; }
.teachername { font-size: 9pt; }
.teachername span { border: 1px solid black; padding: 3px;
width: auto; }
.classroom { vertical-align: top; }
.blocks { vertical-align: top; }
#pagebreak {page-break-after: always; }
</style>
</head>
<body>
{% for item in scheditems %}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,26 +1,9 @@
<html>
<head>
<title>Class Check-in Checklists</title>
<link rel="stylesheet" type="text/css" href="/media/styles/rosters.css" media="print,screen">
<style type="text/css" media="print,screen">
body { font-family: georgia; }
.classtitle { text-align: center; font-size: 15pt; font-weight: bold; font-family: georgia; padding: .3in;}

.classroster { text-align: center; }
.title span { font-weight:bolder; text-decoration: underline;
font-size:16pt; }

.blocks { padding: 4px; font-size: 10pt; font-weight: bold; }
.classroom { padding: 8px; font-size: 10pt; font-weight: bold; }
.pretty {border: 1px solid black; }
.pretty td { border: 1px solid black; }
.pretty th { border: 1px solid black; }
.pretty td { vertical-align: top; }
.teachername { font-size: 9pt; }
.teachername span { border: 1px solid black; padding: 3px;
width: auto; }
.classroom { vertical-align: top; }
.blokcs { vertical-align: top; }
#pagebreak {page-break-after: always; }
</style>
</head>
<body>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,27 +1,7 @@
<html>
<head>
<title>Class Rosters</title>
<style type="text/css" media="print,screen">
body { font-family: georgia; }
.classtitle { text-align: center; font-size: 15pt; font-weight: bold; font-family: georgia; padding: .3in;}

.classroster { text-align: center; }
.title span { font-weight:bolder; text-decoration: underline;
font-size:16pt; }

.blocks { padding: 4px; font-size: 10pt; font-weight: bold; }
.classroom { padding: 8px; font-size: 10pt; font-weight: bold; }
.pretty {border: 1px solid black; }
.pretty td { border: 1px solid black; }
.pretty th { border: 1px solid black; }
.pretty td { vertical-align: top; }
.teachername { font-size: 9pt; }
.teachername span { border: 1px solid black; padding: 3px;
width: auto; }
.classroom { vertical-align: top; }
.blokcs { vertical-align: top; }
#pagebreak {page-break-after: always; }
</style>
<link rel="stylesheet" type="text/css" href="/media/styles/rosters.css" media="print,screen">
</head>
<body>
{% for item in scheditems %}
Expand Down
33 changes: 1 addition & 32 deletions esp/templates/program/modules/programprintables/roomlist.html
Original file line number Diff line number Diff line change
@@ -1,39 +1,8 @@
<html>
<head>
<title>Room List</title>
<style type="text/css" media="print,screen">
body { font-family: georgia; }
.classtitle { text-align: center; font-size: 15pt; font-weight: bold; font-family: georgia; padding: .3in;}
<link rel="stylesheet" type="text/css" href="/media/styles/rosters.css" media="print,screen">

.classroster { text-align: center; }
.title span { font-weight:bolder; text-decoration: underline;
font-size:16pt; }

.blocks { padding: 4px; font-size: 10pt; font-weight: bold; }
.classroom { padding: 8px; font-size: 10pt; font-weight: bold; }
.pretty {border: 1px solid black; }
.pretty td { border: 1px solid black; }
.pretty th { border: 1px solid black; }
.pretty td { vertical-align: top; }
.teachername { font-size: 9pt; }
.teachername span { border: 1px solid black; padding: 3px;
width: auto; }
.classroom { vertical-align: top; }
.blokcs { vertical-align: top; }
.pretty td.oldnew { border-bottom: 0; border-top: 2px; }
.pretty td.old { border-bottom: 0;
border-top: 0;}
#pagebreak {page-break-after: always; }
.box { width: 15px; height: 15px; border: 2px solid black;
font-weight: bold; text-align: center; vertical-align: middle;
}
table.sortable thead {
background-color:#eee;
color:#666666;
font-weight: bold;
cursor: default;
}
</style>
<script src="/media/scripts/sorttable.js"></script>
</head>
<body>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,29 +1,10 @@
<html>
<head>
<title>Student Checklist</title>
<link rel="stylesheet" type="text/css" href="/media/styles/rosters.css" media="print,screen">
<style type="text/css" media="print,screen">
body { font-family: georgia; }
.classtitle { text-align: center; font-size: 15pt; font-weight: bold; font-family: georgia; padding: .3in;}

.classroster { text-align: center; }
.title span { font-weight:bolder; text-decoration: underline;
font-size:16pt; }

.blocks { padding: 4px; font-size: 10pt; font-weight: bold; }
.classroom { padding: 8px; font-size: 10pt; font-weight: bold; }
.pretty {border: 1px solid black; }
.pretty td { border: 1px solid black; }
.pretty th { border: 1px solid black; }
.pretty td { vertical-align: top; }
.teachername { font-size: 9pt; }
.teachername span { border: 1px solid black; padding: 3px;
width: auto; }
.classroom { vertical-align: top; }
.blokcs { vertical-align: top; }
.pretty td.oldnew { border-bottom: 0; border-top: 2px; }
.pretty td.old { border-bottom: 0;
border-top: 0;}
#pagebreak {page-break-after: always; }
.box { width: 15px; height: 15px; border: 2px solid black;
font-weight: bold; text-align: center; vertical-align: middle;
}
Expand Down
34 changes: 1 addition & 33 deletions esp/templates/program/modules/programprintables/studentlist.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,39 +3,7 @@
<html>
<head>
<title>Student List</title>
<style type="text/css" media="print,screen">
body { font-family: georgia; }
.classtitle { text-align: center; font-size: 15pt; font-weight: bold; font-family: georgia; padding: .3in;}

.classroster { text-align: center; }
.title span { font-weight:bolder; text-decoration: underline;
font-size:16pt; }

.blocks { padding: 4px; font-size: 10pt; font-weight: bold; }
.classroom { padding: 8px; font-size: 10pt; font-weight: bold; }
.pretty {border: 1px solid black; }
.pretty td { border: 1px solid black; }
.pretty th { border: 1px solid black; }
.pretty td { vertical-align: top; }
.teachername { font-size: 9pt; }
.teachername span { border: 1px solid black; padding: 3px;
width: auto; }
.classroom { vertical-align: top; }
.blokcs { vertical-align: top; }
.pretty td.oldnew { border-bottom: 0; border-top: 2px; }
.pretty td.old { border-bottom: 0;
border-top: 0;}
#pagebreak {page-break-after: always; }
.box { width: 15px; height: 15px; border: 2px solid black;
font-weight: bold; text-align: center; vertical-align: middle;
}
table.sortable thead {
background-color:#eee;
color:#666666;
font-weight: bold;
cursor: default;
}
</style>
<link rel="stylesheet" type="text/css" href="/media/styles/rosters.css" media="print,screen">
<script src="/media/scripts/sorttable.js"></script>
</head>
<body>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,39 +3,7 @@
<html>
<head>
<title>Student List</title>
<style type="text/css" media="print,screen">
body { font-family: georgia; }
.classtitle { text-align: center; font-size: 15pt; font-weight: bold; font-family: georgia; padding: .3in;}

.classroster { text-align: center; }
.title span { font-weight:bolder; text-decoration: underline;
font-size:16pt; }

.blocks { padding: 4px; font-size: 10pt; font-weight: bold; }
.classroom { padding: 8px; font-size: 10pt; font-weight: bold; }
.pretty {border: 1px solid black; }
.pretty td { border: 1px solid black; }
.pretty th { border: 1px solid black; }
.pretty td { vertical-align: top; }
.teachername { font-size: 9pt; }
.teachername span { border: 1px solid black; padding: 3px;
width: auto; }
.classroom { vertical-align: top; }
.blokcs { vertical-align: top; }
.pretty td.oldnew { border-bottom: 0; border-top: 2px; }
.pretty td.old { border-bottom: 0;
border-top: 0;}
#pagebreak {page-break-after: always; }
.box { width: 15px; height: 15px; border: 2px solid black;
font-weight: bold; text-align: center; vertical-align: middle;
}
table.sortable thead {
background-color:#eee;
color:#666666;
font-weight: bold;
cursor: default;
}
</style>
<link rel="stylesheet" type="text/css" href="/media/styles/rosters.css" media="print,screen">
<script src="/media/scripts/sorttable.js"></script>
</head>
<body>
Expand Down
Loading

0 comments on commit eee16e5

Please sign in to comment.