-
Notifications
You must be signed in to change notification settings - Fork 221
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
question numbering in survey response display
- Loading branch information
Showing
4 changed files
with
29 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -252,3 +252,11 @@ label { | |
height: 50px; | ||
} | ||
|
||
ol.survey-questions { | ||
margin-left: 0px; | ||
} | ||
|
||
.q-item { | ||
margin-left: 60px; | ||
} | ||
|
Empty file.
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,16 @@ | ||
from django import template | ||
|
||
register = template.Library() | ||
|
||
class CounterNode(template.Node): | ||
|
||
def __init__(self): | ||
self.count = 0 | ||
|
||
def render(self, context): | ||
self.count += 1 | ||
return self.count | ||
|
||
@register.tag | ||
def counter(parser, token): | ||
return CounterNode() |
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